kaitai-struct-compiler 0.11.0-SNAPSHOT20250330.110510.aa10f07 → 0.11.0-SNAPSHOT20250501.162508.91aeb53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kaitai-struct-compiler.js +14 -5
- package/package.json +1 -1
|
@@ -3027,8 +3027,8 @@ function $m_Lio_kaitai_struct_Utils$() {
|
|
|
3027
3027
|
function $c_Lio_kaitai_struct_Version$() {
|
|
3028
3028
|
this.Lio_kaitai_struct_Version$__f_version = null;
|
|
3029
3029
|
this.Lio_kaitai_struct_Version$__f_gitTime = null;
|
|
3030
|
-
this.Lio_kaitai_struct_Version$__f_version = "0.11-
|
|
3031
|
-
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-
|
|
3030
|
+
this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20250501.162508.91aeb53";
|
|
3031
|
+
this.Lio_kaitai_struct_Version$__f_gitTime = "2025-05-01T16:25:08Z"
|
|
3032
3032
|
}
|
|
3033
3033
|
$c_Lio_kaitai_struct_Version$.prototype = new $h_O();
|
|
3034
3034
|
$c_Lio_kaitai_struct_Version$.prototype.constructor = $c_Lio_kaitai_struct_Version$;
|
|
@@ -83977,6 +83977,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doNumericCompareOp__Li
|
|
|
83977
83977
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
83978
83978
|
return this.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op, right, extPrec)
|
|
83979
83979
|
});
|
|
83980
|
+
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doEnumCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
83981
|
+
return this.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op, right, extPrec)
|
|
83982
|
+
});
|
|
83980
83983
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
83981
83984
|
return this.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op, right, extPrec)
|
|
83982
83985
|
});
|
|
@@ -84147,7 +84150,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
84147
84150
|
var this$5 = $n(this$4.Lio_kaitai_struct_format_EnumSpec__f_name);
|
|
84148
84151
|
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError(((("can't compare enums type " + $$x2) + " and ") + $f_sc_IterableOnceOps__mkString__T__T__T__T(this$5, "", "::", "")))
|
|
84149
84152
|
} else {
|
|
84150
|
-
return this.
|
|
84153
|
+
return this.doEnumCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op$2, right, extPrec)
|
|
84151
84154
|
}
|
|
84152
84155
|
}
|
|
84153
84156
|
};
|
|
@@ -89587,12 +89590,18 @@ $c_Lio_kaitai_struct_translators_RustTranslator.prototype.doNumericCompareOp__Li
|
|
|
89587
89590
|
var ct = $m_Lio_kaitai_struct_languages_RustCompiler$().kaitaiPrimitiveToNativeType__Lio_kaitai_struct_datatype_DataType__T($m_Lio_kaitai_struct_translators_TypeDetector$().combineTypes__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_datatype_DataType(lt, rt));
|
|
89588
89591
|
return (((((((((("((" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(left)) + " as ") + ct) + ") ") + $f_Lio_kaitai_struct_translators_CommonOps__cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(this, op)) + " (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(right)) + " as ") + ct) + "))")
|
|
89589
89592
|
} else {
|
|
89590
|
-
return
|
|
89593
|
+
return $f_Lio_kaitai_struct_translators_CommonOps__genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(this, left, op, right, extPrec)
|
|
89591
89594
|
}
|
|
89592
89595
|
});
|
|
89593
89596
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
89594
89597
|
return (((((this.ensure_deref__T__T(this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(left)) + " ") + $f_Lio_kaitai_struct_translators_CommonOps__cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(this, op)) + " ") + this.remove_deref__T__T(this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(right))) + ".to_string()")
|
|
89595
89598
|
});
|
|
89599
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.doEnumCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
89600
|
+
return $f_Lio_kaitai_struct_translators_CommonOps__genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(this, left, op, right, extPrec)
|
|
89601
|
+
});
|
|
89602
|
+
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__I__T = (function(left, op, right, extPrec) {
|
|
89603
|
+
return $f_Lio_kaitai_struct_translators_CommonOps__genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(this, left, op, right, extPrec)
|
|
89604
|
+
});
|
|
89596
89605
|
$c_Lio_kaitai_struct_translators_RustTranslator.prototype.doEnumById__Lio_kaitai_struct_format_EnumSpec__T__T = (function(enumSpec, id) {
|
|
89597
89606
|
return (("(" + id) + " as i64).try_into()?")
|
|
89598
89607
|
});
|
|
@@ -96526,7 +96535,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.classConstructorHeader__sci
|
|
|
96526
96535
|
var tParent = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(parentType);
|
|
96527
96536
|
var tRoot = $n(this.Lio_kaitai_struct_languages_PHPCompiler__f_translator).types2classAbs__sci_List__T(rootClassName);
|
|
96528
96537
|
var pRootValue = (((name === null) ? (rootClassName === null) : $n(name).equals__O__Z(rootClassName)) ? ((pRoot + " === null ? $this : ") + pRoot) : pRoot);
|
|
96529
|
-
$n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V(((((((((("public function __construct(" + paramsArg) + ("\\Kaitai\\Struct\\Stream " + pIo)) + ", ") + ((tParent + " ") + pParent)) + " = null, ") + ((tRoot + " ") + pRoot)) + " = null") + endianAdd) + ") {"));
|
|
96538
|
+
$n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V(((((((((("public function __construct(" + paramsArg) + ("\\Kaitai\\Struct\\Stream " + pIo)) + ", ") + ((("?" + tParent) + " ") + pParent)) + " = null, ") + ((("?" + tRoot) + " ") + pRoot)) + " = null") + endianAdd) + ") {"));
|
|
96530
96539
|
$n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).inc__V();
|
|
96531
96540
|
$n(this.Lio_kaitai_struct_languages_PHPCompiler__f_out).puts__T__V((((((("parent::__construct(" + pIo) + ", ") + pParent) + ", ") + pRootValue) + ");"));
|
|
96532
96541
|
if (isHybrid) {
|
package/package.json
CHANGED