kaitai-struct-compiler 0.11.0-SNAPSHOT20250330.110510.aa10f07 → 0.11.0-SNAPSHOT20250414.200213.a6b1437

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.
@@ -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-SNAPSHOT20250330.110510.aa10f07";
3031
- this.Lio_kaitai_struct_Version$__f_gitTime = "2025-03-30T11:05:10Z"
3030
+ this.Lio_kaitai_struct_Version$__f_version = "0.11-SNAPSHOT20250414.200213.a6b1437";
3031
+ this.Lio_kaitai_struct_Version$__f_gitTime = "2025-04-14T20:02:13Z"
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.genericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$binaryop__Lio_kaitai_struct_exprlang_Ast$expr__I__T(left, op$2, right, extPrec)
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 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)
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
  });
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "scripts": {
36
36
  "test": "echo \"Error: no test specified\" && exit 1"
37
37
  },
38
- "version": "0.11.0-SNAPSHOT20250330.110510.aa10f07"
38
+ "version": "0.11.0-SNAPSHOT20250414.200213.a6b1437"
39
39
  }