kaitai-struct-compiler 0.10.0-SNAPSHOT20220415.194636.880ae970 → 0.10.0-SNAPSHOT20220621.211648.0a3dcbfb
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 +916 -781
- package/package.json +1 -1
|
@@ -4430,9 +4430,9 @@ function $h_Lio_kaitai_struct_Version$() {
|
|
|
4430
4430
|
$h_Lio_kaitai_struct_Version$.prototype = $c_Lio_kaitai_struct_Version$.prototype;
|
|
4431
4431
|
$c_Lio_kaitai_struct_Version$.prototype.init___ = (function() {
|
|
4432
4432
|
this.name$1 = "kaitai-struct-compiler-js";
|
|
4433
|
-
this.version$1 = "0.10-
|
|
4434
|
-
this.gitCommit$1 = "
|
|
4435
|
-
this.gitTime$1 = "2022-
|
|
4433
|
+
this.version$1 = "0.10-SNAPSHOT20220621.211648.0a3dcbfb";
|
|
4434
|
+
this.gitCommit$1 = "0a3dcbfb";
|
|
4435
|
+
this.gitTime$1 = "2022-06-21T21:16:48+00:00";
|
|
4436
4436
|
return this
|
|
4437
4437
|
});
|
|
4438
4438
|
var $d_Lio_kaitai_struct_Version$ = new $TypeData().initClass({
|
|
@@ -9309,20 +9309,19 @@ function $f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCases__Lio
|
|
|
9309
9309
|
}
|
|
9310
9310
|
function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidateExprCompare__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_AttrLikeSpec__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__V($thiz, attrId, attr, op, expected, err) {
|
|
9311
9311
|
var jsx$4 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
|
|
9312
|
-
var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9312
|
+
var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId), op, expected);
|
|
9313
9313
|
$m_sci_List$();
|
|
9314
|
-
var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9315
|
-
var
|
|
9316
|
-
var
|
|
9317
|
-
var
|
|
9318
|
-
var array = [expected, jsx$2, jsx$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$2, "/", "/", ""))];
|
|
9314
|
+
var jsx$2 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9315
|
+
var jsx$1 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9316
|
+
var this$1 = attr.path__sci_List();
|
|
9317
|
+
var array = [expected, jsx$2, jsx$1, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "/", "/", ""))];
|
|
9319
9318
|
var i = (((-1) + $uI(array.length)) | 0);
|
|
9320
9319
|
var result = $m_sci_Nil$();
|
|
9321
9320
|
while ((i >= 0)) {
|
|
9322
|
-
var this$
|
|
9321
|
+
var this$5 = result;
|
|
9323
9322
|
var index = i;
|
|
9324
9323
|
var x = array[index];
|
|
9325
|
-
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$
|
|
9324
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$5);
|
|
9326
9325
|
i = (((-1) + i) | 0)
|
|
9327
9326
|
};
|
|
9328
9327
|
$thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, jsx$4, jsx$3, err, result)
|
|
@@ -9363,7 +9362,7 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9363
9362
|
var f = (function($this, attrId$1) {
|
|
9364
9363
|
return (function(expected$2$2) {
|
|
9365
9364
|
var expected$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr(expected$2$2);
|
|
9366
|
-
return new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9365
|
+
return new $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare().init___Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId$1), $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$(), expected$2)
|
|
9367
9366
|
})
|
|
9368
9367
|
})($thiz, attrId);
|
|
9369
9368
|
var this$1 = $m_sci_List$();
|
|
@@ -9401,18 +9400,17 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9401
9400
|
var jsx$6 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
|
|
9402
9401
|
var jsx$5 = new $c_Lio_kaitai_struct_datatype_ValidationNotAnyOfError().init___Lio_kaitai_struct_datatype_DataType($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
|
|
9403
9402
|
$m_sci_List$();
|
|
9404
|
-
var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9405
|
-
var
|
|
9406
|
-
var
|
|
9407
|
-
var
|
|
9408
|
-
var array = [jsx$4, jsx$3, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$5, "/", "/", ""))];
|
|
9403
|
+
var jsx$4 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9404
|
+
var jsx$3 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9405
|
+
var this$4 = attr.path__sci_List();
|
|
9406
|
+
var array = [jsx$4, jsx$3, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$4, "/", "/", ""))];
|
|
9409
9407
|
var i = (((-1) + $uI(array.length)) | 0);
|
|
9410
9408
|
var result = $m_sci_Nil$();
|
|
9411
9409
|
while ((i >= 0)) {
|
|
9412
|
-
var this$
|
|
9410
|
+
var this$8 = result;
|
|
9413
9411
|
var index = i;
|
|
9414
9412
|
var x = array[index];
|
|
9415
|
-
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$
|
|
9413
|
+
result = new $c_sci_$colon$colon().init___O__sci_List(x, this$8);
|
|
9416
9414
|
i = (((-1) + i) | 0)
|
|
9417
9415
|
};
|
|
9418
9416
|
$thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, jsx$6, bigOrExpr, jsx$5, result)
|
|
@@ -9421,22 +9419,21 @@ function $f_Lio_kaitai_struct_languages_components_ValidateOps__attrValidate__Li
|
|
|
9421
9419
|
var expr = x7.checkExpr$1;
|
|
9422
9420
|
$thiz.blockScopeHeader__V();
|
|
9423
9421
|
$thiz.typeProvider$1.$$undcurrentIteratorType$1 = new $c_s_Some().init___O($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
|
|
9424
|
-
$thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1))), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9422
|
+
$thiz.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$Name().init___Lio_kaitai_struct_exprlang_Ast$identifier(new $c_Lio_kaitai_struct_exprlang_Ast$identifier().init___T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1))), $thiz.translator__Lio_kaitai_struct_translators_AbstractTranslator().translate__Lio_kaitai_struct_exprlang_Ast$expr__T(new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId)));
|
|
9425
9423
|
var jsx$10 = $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr);
|
|
9426
9424
|
var jsx$9 = new $c_Lio_kaitai_struct_datatype_ValidationExprError().init___Lio_kaitai_struct_datatype_DataType($f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(attr));
|
|
9427
9425
|
$m_sci_List$();
|
|
9428
|
-
var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$
|
|
9429
|
-
var
|
|
9430
|
-
var
|
|
9431
|
-
var
|
|
9432
|
-
var array$1 = [jsx$8, jsx$7, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$11, "/", "/", ""))];
|
|
9426
|
+
var jsx$8 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier(attrId);
|
|
9427
|
+
var jsx$7 = new $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName().init___Lio_kaitai_struct_format_Identifier($m_Lio_kaitai_struct_format_IoIdentifier$());
|
|
9428
|
+
var this$9 = attr.path__sci_List();
|
|
9429
|
+
var array$1 = [jsx$8, jsx$7, new $c_Lio_kaitai_struct_exprlang_Ast$expr$Str().init___T($f_sc_TraversableOnce__mkString__T__T__T__T(this$9, "/", "/", ""))];
|
|
9433
9430
|
var i$1 = (((-1) + $uI(array$1.length)) | 0);
|
|
9434
9431
|
var result$1 = $m_sci_Nil$();
|
|
9435
9432
|
while ((i$1 >= 0)) {
|
|
9436
|
-
var this$
|
|
9433
|
+
var this$13 = result$1;
|
|
9437
9434
|
var index$1 = i$1;
|
|
9438
9435
|
var x$1 = array$1[index$1];
|
|
9439
|
-
result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$
|
|
9436
|
+
result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$13);
|
|
9440
9437
|
i$1 = (((-1) + i$1) | 0)
|
|
9441
9438
|
};
|
|
9442
9439
|
$thiz.attrValidateExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_KSError__sci_List__V(attrId, jsx$10, expr, jsx$9, result$1);
|
|
@@ -11238,10 +11235,16 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11238
11235
|
return this$12.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(this$12.nowClass$1, attrName).asNonOwning__Lio_kaitai_struct_datatype_DataType()
|
|
11239
11236
|
}
|
|
11240
11237
|
};
|
|
11238
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
11239
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
11240
|
+
var id = x14.id$1;
|
|
11241
|
+
var this$13 = this.provider$1;
|
|
11242
|
+
return this$13.determineType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType(this$13.nowClass$1, id)
|
|
11243
|
+
};
|
|
11241
11244
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
11242
|
-
var
|
|
11243
|
-
var op =
|
|
11244
|
-
var v$2 =
|
|
11245
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
11246
|
+
var op = x15.op$1;
|
|
11247
|
+
var v$2 = x15.operand$1;
|
|
11245
11248
|
if ((op !== null)) {
|
|
11246
11249
|
if ((v$2 !== null)) {
|
|
11247
11250
|
var t$3 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$2);
|
|
@@ -11296,10 +11299,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11296
11299
|
}
|
|
11297
11300
|
};
|
|
11298
11301
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
11299
|
-
var
|
|
11300
|
-
var left =
|
|
11301
|
-
var op$2 =
|
|
11302
|
-
var right =
|
|
11302
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
11303
|
+
var left = x16.left$1;
|
|
11304
|
+
var op$2 = x16.ops$1;
|
|
11305
|
+
var right = x16.right$1;
|
|
11303
11306
|
if ((left !== null)) {
|
|
11304
11307
|
if ((op$2 !== null)) {
|
|
11305
11308
|
if ((right !== null)) {
|
|
@@ -11312,10 +11315,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11312
11315
|
}
|
|
11313
11316
|
};
|
|
11314
11317
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
11315
|
-
var
|
|
11316
|
-
var left$2 =
|
|
11317
|
-
var op$3 =
|
|
11318
|
-
var right$2 =
|
|
11318
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
11319
|
+
var left$2 = x17.left$1;
|
|
11320
|
+
var op$3 = x17.op$1;
|
|
11321
|
+
var right$2 = x17.right$1;
|
|
11319
11322
|
if ((left$2 !== null)) {
|
|
11320
11323
|
if ((op$3 !== null)) {
|
|
11321
11324
|
if ((right$2 !== null)) {
|
|
@@ -11347,17 +11350,17 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11347
11350
|
}
|
|
11348
11351
|
};
|
|
11349
11352
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
11350
|
-
var
|
|
11351
|
-
var op$4 =
|
|
11352
|
-
var values =
|
|
11353
|
+
var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
11354
|
+
var op$4 = x18.op$1;
|
|
11355
|
+
var values = x18.values$1;
|
|
11353
11356
|
if ((op$4 !== null)) {
|
|
11354
11357
|
if ((values !== null)) {
|
|
11355
|
-
values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this,
|
|
11358
|
+
values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, x38) {
|
|
11356
11359
|
return (function(v$3$2) {
|
|
11357
11360
|
var v$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$3$2);
|
|
11358
11361
|
var t$1 = $this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(v$3);
|
|
11359
11362
|
if ((!(t$1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType))) {
|
|
11360
|
-
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((((("unable to use " + t$1) + " argument in ") +
|
|
11363
|
+
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((((("unable to use " + t$1) + " argument in ") + x38) + " boolean expression"))
|
|
11361
11364
|
}
|
|
11362
11365
|
})
|
|
11363
11366
|
})(this, op$4)));
|
|
@@ -11366,10 +11369,10 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11366
11369
|
}
|
|
11367
11370
|
};
|
|
11368
11371
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
11369
|
-
var
|
|
11370
|
-
var condition =
|
|
11371
|
-
var ifTrue =
|
|
11372
|
-
var ifFalse =
|
|
11372
|
+
var x19 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
11373
|
+
var condition = x19.condition$1;
|
|
11374
|
+
var ifTrue = x19.ifTrue$1;
|
|
11375
|
+
var ifFalse = x19.ifFalse$1;
|
|
11373
11376
|
if ((condition !== null)) {
|
|
11374
11377
|
if ((ifTrue !== null)) {
|
|
11375
11378
|
if ((ifFalse !== null)) {
|
|
@@ -11386,9 +11389,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11386
11389
|
}
|
|
11387
11390
|
};
|
|
11388
11391
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
11389
|
-
var
|
|
11390
|
-
var container =
|
|
11391
|
-
var idx =
|
|
11392
|
+
var x20 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
11393
|
+
var container = x20.value$1;
|
|
11394
|
+
var idx = x20.idx$1;
|
|
11392
11395
|
if ((container !== null)) {
|
|
11393
11396
|
if ((idx !== null)) {
|
|
11394
11397
|
var x1$5 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(container);
|
|
@@ -11429,9 +11432,9 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11429
11432
|
}
|
|
11430
11433
|
};
|
|
11431
11434
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
11432
|
-
var
|
|
11433
|
-
var value =
|
|
11434
|
-
var attr =
|
|
11435
|
+
var x21 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
11436
|
+
var value = x21.value$1;
|
|
11437
|
+
var attr = x21.attr$1;
|
|
11435
11438
|
if ((value !== null)) {
|
|
11436
11439
|
if ((attr !== null)) {
|
|
11437
11440
|
return this.detectAttributeType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$identifier__Lio_kaitai_struct_datatype_DataType(value, attr).asNonOwning__Lio_kaitai_struct_datatype_DataType()
|
|
@@ -11439,20 +11442,20 @@ $c_Lio_kaitai_struct_translators_TypeDetector.prototype.detectTypeRaw__Lio_kaita
|
|
|
11439
11442
|
}
|
|
11440
11443
|
};
|
|
11441
11444
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
11442
|
-
var
|
|
11443
|
-
return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(
|
|
11445
|
+
var x47 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
11446
|
+
return this.detectCallType__Lio_kaitai_struct_exprlang_Ast$expr$Call__Lio_kaitai_struct_datatype_DataType(x47).asNonOwning__Lio_kaitai_struct_datatype_DataType()
|
|
11444
11447
|
};
|
|
11445
11448
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
11446
|
-
var
|
|
11447
|
-
var values$2 =
|
|
11449
|
+
var x22 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
11450
|
+
var values$2 = x22.elts$1;
|
|
11448
11451
|
if ((values$2 !== null)) {
|
|
11449
11452
|
var x1$8 = this.detectArrayType__sc_Seq__Lio_kaitai_struct_datatype_DataType(values$2);
|
|
11450
11453
|
return ((x1$8 instanceof $c_Lio_kaitai_struct_datatype_DataType$Int1Type) ? $m_Lio_kaitai_struct_datatype_DataType$CalcBytesType$() : new $c_Lio_kaitai_struct_datatype_DataType$ArrayTypeInStream().init___Lio_kaitai_struct_datatype_DataType(x1$8))
|
|
11451
11454
|
}
|
|
11452
11455
|
};
|
|
11453
11456
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
11454
|
-
var
|
|
11455
|
-
var typeName =
|
|
11457
|
+
var x23 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
11458
|
+
var typeName = x23.typeName$1;
|
|
11456
11459
|
return this.detectCastType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType(typeName)
|
|
11457
11460
|
};
|
|
11458
11461
|
if (((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType) || (v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType))) {
|
|
@@ -20479,6 +20482,49 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.determineType__Lio_kaitai_struc
|
|
|
20479
20482
|
return (($m_Lio_kaitai_struct_format_Identifier$().IO$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$KaitaiStreamType$() : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === attrName) ? $as_Lio_kaitai_struct_datatype_DataType(this.$$undcurrentIteratorType$1.get__O()) : (($m_Lio_kaitai_struct_format_Identifier$().SWITCH$undON$1 === attrName) ? $as_Lio_kaitai_struct_datatype_DataType(this.$$undcurrentSwitchType$1.get__O()) : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$() : (($m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1 === attrName) ? $m_Lio_kaitai_struct_datatype_DataType$CalcIntType$() : this.resolveMember__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_MemberSpec(inClass, attrName).dataTypeComposite__Lio_kaitai_struct_datatype_DataType())))))
|
|
20480
20483
|
}
|
|
20481
20484
|
});
|
|
20485
|
+
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.determineType__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType = (function(inClass, attrId) {
|
|
20486
|
+
var nonLocalReturnKey1 = new $c_O().init___();
|
|
20487
|
+
try {
|
|
20488
|
+
if ((attrId instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
20489
|
+
var this$1 = inClass.seq$1;
|
|
20490
|
+
var these = this$1;
|
|
20491
|
+
while ((!these.isEmpty__Z())) {
|
|
20492
|
+
var arg1 = these.head__O();
|
|
20493
|
+
var el = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
|
|
20494
|
+
var x = el.id$1;
|
|
20495
|
+
if (((x === null) ? (attrId === null) : x.equals__O__Z(attrId))) {
|
|
20496
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey1, $f_Lio_kaitai_struct_format_AttrLikeSpec__dataTypeComposite__Lio_kaitai_struct_datatype_DataType(el))
|
|
20497
|
+
};
|
|
20498
|
+
var this$2 = these;
|
|
20499
|
+
these = this$2.tail__sci_List()
|
|
20500
|
+
}
|
|
20501
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
20502
|
+
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(attrId);
|
|
20503
|
+
var name = x2.name$2;
|
|
20504
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name)
|
|
20505
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
20506
|
+
var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(attrId);
|
|
20507
|
+
var name$2 = x3.name$2;
|
|
20508
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$2)
|
|
20509
|
+
} else if ((attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
20510
|
+
var x4 = $as_Lio_kaitai_struct_format_SpecialIdentifier(attrId);
|
|
20511
|
+
var name$3 = x4.name$2;
|
|
20512
|
+
return this.determineType__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_datatype_DataType(inClass, name$3)
|
|
20513
|
+
};
|
|
20514
|
+
throw new $c_Lio_kaitai_struct_precompile_FieldNotFoundError().init___T__Lio_kaitai_struct_format_ClassSpec(attrId.humanReadable__T(), inClass)
|
|
20515
|
+
} catch (e) {
|
|
20516
|
+
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20517
|
+
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20518
|
+
if ((ex.key$2 === nonLocalReturnKey1)) {
|
|
20519
|
+
return $as_Lio_kaitai_struct_datatype_DataType(ex.value__O())
|
|
20520
|
+
} else {
|
|
20521
|
+
throw ex
|
|
20522
|
+
}
|
|
20523
|
+
} else {
|
|
20524
|
+
throw e
|
|
20525
|
+
}
|
|
20526
|
+
}
|
|
20527
|
+
});
|
|
20482
20528
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_datatype_DataType = (function(typeName) {
|
|
20483
20529
|
return this.resolveClassSpec__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_format_ClassSpec(typeName).toDataType__Lio_kaitai_struct_datatype_DataType()
|
|
20484
20530
|
});
|
|
@@ -20503,7 +20549,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveEnum__Lio_kaitai_struct_
|
|
|
20503
20549
|
return this.resolveEnum__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_EnumSpec(this.resolveClassSpec__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_format_ClassSpec(inType), enumName)
|
|
20504
20550
|
});
|
|
20505
20551
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_format_ClassSpec__T__Z = (function(inClass, attrName) {
|
|
20506
|
-
var
|
|
20552
|
+
var nonLocalReturnKey3 = new $c_O().init___();
|
|
20507
20553
|
try {
|
|
20508
20554
|
var this$1 = inClass.seq$1;
|
|
20509
20555
|
var these = this$1;
|
|
@@ -20513,7 +20559,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20513
20559
|
var x = el.id$1;
|
|
20514
20560
|
var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20515
20561
|
if (((x !== null) && x.equals__O__Z(x$2))) {
|
|
20516
|
-
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(
|
|
20562
|
+
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
|
|
20517
20563
|
};
|
|
20518
20564
|
var this$2 = these;
|
|
20519
20565
|
these = this$2.tail__sci_List()
|
|
@@ -20526,7 +20572,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20526
20572
|
var x$1 = el$3.id$1;
|
|
20527
20573
|
var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20528
20574
|
if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
|
|
20529
|
-
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(
|
|
20575
|
+
throw new $c_sr_NonLocalReturnControl$mcZ$sp().init___O__Z(nonLocalReturnKey3, false)
|
|
20530
20576
|
};
|
|
20531
20577
|
var this$4 = these$1;
|
|
20532
20578
|
these$1 = this$4.tail__sci_List()
|
|
@@ -20544,7 +20590,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.isLazy__Lio_kaitai_struct_forma
|
|
|
20544
20590
|
} catch (e) {
|
|
20545
20591
|
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20546
20592
|
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20547
|
-
if ((ex.key$2 ===
|
|
20593
|
+
if ((ex.key$2 === nonLocalReturnKey3)) {
|
|
20548
20594
|
return ex.value$mcZ$sp__Z()
|
|
20549
20595
|
} else {
|
|
20550
20596
|
throw ex
|
|
@@ -20607,7 +20653,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveClassSpec__Lio_kaitai_st
|
|
|
20607
20653
|
}
|
|
20608
20654
|
});
|
|
20609
20655
|
$c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struct_format_ClassSpec__T__Lio_kaitai_struct_format_MemberSpec = (function(inClass, attrName) {
|
|
20610
|
-
var
|
|
20656
|
+
var nonLocalReturnKey2 = new $c_O().init___();
|
|
20611
20657
|
try {
|
|
20612
20658
|
var this$1 = inClass.seq$1;
|
|
20613
20659
|
var these = this$1;
|
|
@@ -20617,7 +20663,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20617
20663
|
var x = el.id$1;
|
|
20618
20664
|
var x$2 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20619
20665
|
if (((x !== null) && x.equals__O__Z(x$2))) {
|
|
20620
|
-
throw new $c_sr_NonLocalReturnControl().init___O__O(
|
|
20666
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el)
|
|
20621
20667
|
};
|
|
20622
20668
|
var this$2 = these;
|
|
20623
20669
|
these = this$2.tail__sci_List()
|
|
@@ -20630,7 +20676,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20630
20676
|
var x$1 = el$3.id$1;
|
|
20631
20677
|
var x$2$1 = new $c_Lio_kaitai_struct_format_NamedIdentifier().init___T(attrName);
|
|
20632
20678
|
if (((x$1 !== null) && x$1.equals__O__Z(x$2$1))) {
|
|
20633
|
-
throw new $c_sr_NonLocalReturnControl().init___O__O(
|
|
20679
|
+
throw new $c_sr_NonLocalReturnControl().init___O__O(nonLocalReturnKey2, el$3)
|
|
20634
20680
|
};
|
|
20635
20681
|
var this$4 = these$1;
|
|
20636
20682
|
these$1 = this$4.tail__sci_List()
|
|
@@ -20665,7 +20711,7 @@ $c_Lio_kaitai_struct_ClassTypeProvider.prototype.resolveMember__Lio_kaitai_struc
|
|
|
20665
20711
|
} catch (e) {
|
|
20666
20712
|
if ((e instanceof $c_sr_NonLocalReturnControl)) {
|
|
20667
20713
|
var ex = $as_sr_NonLocalReturnControl(e);
|
|
20668
|
-
if ((ex.key$2 ===
|
|
20714
|
+
if ((ex.key$2 === nonLocalReturnKey2)) {
|
|
20669
20715
|
return $as_Lio_kaitai_struct_format_MemberSpec(ex.value__O())
|
|
20670
20716
|
} else {
|
|
20671
20717
|
throw ex
|
|
@@ -27984,85 +28030,40 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.opaquePlaceholder__sci_List__Li
|
|
|
27984
28030
|
placeholder.name$1 = typeName;
|
|
27985
28031
|
return placeholder
|
|
27986
28032
|
});
|
|
27987
|
-
$c_Lio_kaitai_struct_format_ClassSpec$.prototype.
|
|
27988
|
-
var
|
|
27989
|
-
|
|
27990
|
-
|
|
27991
|
-
|
|
27992
|
-
|
|
27993
|
-
|
|
27994
|
-
|
|
27995
|
-
|
|
27996
|
-
|
|
27997
|
-
|
|
27998
|
-
|
|
27999
|
-
|
|
28000
|
-
|
|
28001
|
-
|
|
28002
|
-
})(this);
|
|
28003
|
-
var this$5 = $m_sci_List$();
|
|
28004
|
-
var bf = this$5.ReusableCBFInstance$2;
|
|
28005
|
-
if ((bf === $m_sci_List$().ReusableCBFInstance$2)) {
|
|
28006
|
-
if ((seq === $m_sci_Nil$())) {
|
|
28007
|
-
var jsx$1 = $m_sci_Nil$()
|
|
28033
|
+
$c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupMemberIds__sci_List__V = (function(attrs) {
|
|
28034
|
+
var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
|
|
28035
|
+
var these = attrs;
|
|
28036
|
+
while ((!these.isEmpty__Z())) {
|
|
28037
|
+
var arg1 = these.head__O();
|
|
28038
|
+
var attr = $as_Lio_kaitai_struct_format_MemberSpec(arg1);
|
|
28039
|
+
var x1 = attr.id__Lio_kaitai_struct_format_Identifier();
|
|
28040
|
+
if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
28041
|
+
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
|
|
28042
|
+
var name = x2.name$2;
|
|
28043
|
+
var idOpt = new $c_s_Some().init___O(name)
|
|
28044
|
+
} else if ((x1 instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
28045
|
+
var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(x1);
|
|
28046
|
+
var name$2 = x3.name$2;
|
|
28047
|
+
var idOpt = new $c_s_Some().init___O(name$2)
|
|
28008
28048
|
} else {
|
|
28009
|
-
var
|
|
28010
|
-
var found = new $c_sr_BooleanRef().init___Z(false);
|
|
28011
|
-
var h = new $c_sr_ObjectRef().init___O(null);
|
|
28012
|
-
var t = new $c_sr_ObjectRef().init___O(null);
|
|
28013
|
-
while ((rest !== $m_sci_Nil$())) {
|
|
28014
|
-
var arg1 = rest.head__O();
|
|
28015
|
-
$as_sc_GenTraversableOnce(f(arg1)).seq__sc_TraversableOnce().foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this$1, found$1, h$1, t$1) {
|
|
28016
|
-
return (function(b$2) {
|
|
28017
|
-
if ((!found$1.elem$1)) {
|
|
28018
|
-
h$1.elem$1 = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
|
|
28019
|
-
t$1.elem$1 = $as_sci_$colon$colon(h$1.elem$1);
|
|
28020
|
-
found$1.elem$1 = true
|
|
28021
|
-
} else {
|
|
28022
|
-
var nx = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
|
|
28023
|
-
$as_sci_$colon$colon(t$1.elem$1).tl$5 = nx;
|
|
28024
|
-
t$1.elem$1 = nx
|
|
28025
|
-
}
|
|
28026
|
-
})
|
|
28027
|
-
})(seq, found, h, t)));
|
|
28028
|
-
var this$9 = rest;
|
|
28029
|
-
rest = this$9.tail__sci_List()
|
|
28030
|
-
};
|
|
28031
|
-
var jsx$1 = ((!found.elem$1) ? $m_sci_Nil$() : $as_sci_$colon$colon(h.elem$1))
|
|
28032
|
-
}
|
|
28033
|
-
} else {
|
|
28034
|
-
$m_sci_List$();
|
|
28035
|
-
var b = new $c_scm_ListBuffer().init___();
|
|
28036
|
-
var these = seq;
|
|
28037
|
-
while ((!these.isEmpty__Z())) {
|
|
28038
|
-
var arg1$1 = these.head__O();
|
|
28039
|
-
var xs = $as_sc_GenTraversableOnce(f(arg1$1)).seq__sc_TraversableOnce();
|
|
28040
|
-
b.$$plus$plus$eq__sc_TraversableOnce__scm_ListBuffer(xs);
|
|
28041
|
-
var this$11 = these;
|
|
28042
|
-
these = this$11.tail__sci_List()
|
|
28049
|
+
var idOpt = $m_s_None$()
|
|
28043
28050
|
};
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28052
|
-
|
|
28053
|
-
$m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds$1.get__O__s_Option(id$1.name$2), id$1.name$2, instSpec)
|
|
28054
|
-
} else {
|
|
28055
|
-
throw new $c_s_MatchError().init___O(x0$1)
|
|
28056
|
-
}
|
|
28057
|
-
})
|
|
28058
|
-
})(this, attrIds)))
|
|
28051
|
+
if ((!idOpt.isEmpty__Z())) {
|
|
28052
|
+
var arg1$1 = idOpt.get__O();
|
|
28053
|
+
var id = $as_T(arg1$1);
|
|
28054
|
+
$m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
|
|
28055
|
+
attrIds.put__O__O__s_Option(id, attr)
|
|
28056
|
+
};
|
|
28057
|
+
var this$1 = these;
|
|
28058
|
+
these = this$1.tail__sci_List()
|
|
28059
|
+
}
|
|
28059
28060
|
});
|
|
28060
28061
|
$c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V = (function(prevAttrOpt, id, nowAttr) {
|
|
28061
28062
|
if ((prevAttrOpt instanceof $c_s_Some)) {
|
|
28062
28063
|
var x2 = $as_s_Some(prevAttrOpt);
|
|
28063
|
-
var prevAttr = $
|
|
28064
|
+
var prevAttr = $as_Lio_kaitai_struct_format_MemberSpec(x2.value$2);
|
|
28064
28065
|
var jsx$1 = $m_Lio_kaitai_struct_problems_KSYParseError$();
|
|
28065
|
-
var this$1 = prevAttr.
|
|
28066
|
+
var this$1 = prevAttr.path__sci_List();
|
|
28066
28067
|
throw jsx$1.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(((("duplicate attribute ID '" + id) + "', previously defined at /") + $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "/", "")), nowAttr.path__sci_List())
|
|
28067
28068
|
} else {
|
|
28068
28069
|
var x = $m_s_None$();
|
|
@@ -28149,12 +28150,12 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
|
|
|
28149
28150
|
};
|
|
28150
28151
|
var seq = $m_sci_Nil$()
|
|
28151
28152
|
};
|
|
28152
|
-
var x1$3 = srcMap.get__O__s_Option("
|
|
28153
|
+
var x1$3 = srcMap.get__O__s_Option("instances");
|
|
28153
28154
|
if ((x1$3 instanceof $c_s_Some)) {
|
|
28154
28155
|
var x2$3 = $as_s_Some(x1$3);
|
|
28155
28156
|
var value$3 = x2$3.value$2;
|
|
28156
28157
|
$m_sci_List$();
|
|
28157
|
-
var array$3 = ["
|
|
28158
|
+
var array$3 = ["instances"];
|
|
28158
28159
|
var i$3 = (((-1) + $uI(array$3.length)) | 0);
|
|
28159
28160
|
var result$3 = $m_sci_Nil$();
|
|
28160
28161
|
while ((i$3 >= 0)) {
|
|
@@ -28166,38 +28167,43 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
|
|
|
28166
28167
|
};
|
|
28167
28168
|
var jsx$4 = result$3;
|
|
28168
28169
|
var this$23 = $m_sci_List$();
|
|
28169
|
-
var
|
|
28170
|
+
var instances = this.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$3, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$23.ReusableCBFInstance$2)), meta)
|
|
28170
28171
|
} else {
|
|
28171
28172
|
var x$5 = $m_s_None$();
|
|
28172
28173
|
if ((!(x$5 === x1$3))) {
|
|
28173
28174
|
throw new $c_s_MatchError().init___O(x1$3)
|
|
28174
28175
|
};
|
|
28175
|
-
var
|
|
28176
|
+
var instances = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
|
|
28176
28177
|
};
|
|
28177
|
-
var
|
|
28178
|
+
var this$24 = $m_sci_List$();
|
|
28179
|
+
var jsx$6 = $as_sci_List(params.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(seq, this$24.ReusableCBFInstance$2));
|
|
28180
|
+
var jsx$5 = instances.values__sc_Iterable();
|
|
28181
|
+
var this$25 = $m_sci_List$();
|
|
28182
|
+
this.checkDupMemberIds__sci_List__V($as_sci_List(jsx$6.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$25.ReusableCBFInstance$2)));
|
|
28183
|
+
var x1$4 = srcMap.get__O__s_Option("types");
|
|
28178
28184
|
if ((x1$4 instanceof $c_s_Some)) {
|
|
28179
28185
|
var x2$4 = $as_s_Some(x1$4);
|
|
28180
28186
|
var value$4 = x2$4.value$2;
|
|
28181
28187
|
$m_sci_List$();
|
|
28182
|
-
var array$4 = ["
|
|
28188
|
+
var array$4 = ["types"];
|
|
28183
28189
|
var i$4 = (((-1) + $uI(array$4.length)) | 0);
|
|
28184
28190
|
var result$4 = $m_sci_Nil$();
|
|
28185
28191
|
while ((i$4 >= 0)) {
|
|
28186
|
-
var this$
|
|
28192
|
+
var this$29 = result$4;
|
|
28187
28193
|
var index$4 = i$4;
|
|
28188
28194
|
var x$6 = array$4[index$4];
|
|
28189
|
-
result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$
|
|
28195
|
+
result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$29);
|
|
28190
28196
|
i$4 = (((-1) + i$4) | 0)
|
|
28191
28197
|
};
|
|
28192
|
-
var jsx$
|
|
28193
|
-
var this$
|
|
28194
|
-
var
|
|
28198
|
+
var jsx$7 = result$4;
|
|
28199
|
+
var this$30 = $m_sci_List$();
|
|
28200
|
+
var types = this.typesFromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$4, fileName, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$7, this$30.ReusableCBFInstance$2)), meta)
|
|
28195
28201
|
} else {
|
|
28196
28202
|
var x$7 = $m_s_None$();
|
|
28197
28203
|
if ((!(x$7 === x1$4))) {
|
|
28198
28204
|
throw new $c_s_MatchError().init___O(x1$4)
|
|
28199
28205
|
};
|
|
28200
|
-
var
|
|
28206
|
+
var types = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
|
|
28201
28207
|
};
|
|
28202
28208
|
var x1$5 = srcMap.get__O__s_Option("enums");
|
|
28203
28209
|
if ((x1$5 instanceof $c_s_Some)) {
|
|
@@ -28208,15 +28214,15 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
|
|
|
28208
28214
|
var i$5 = (((-1) + $uI(array$5.length)) | 0);
|
|
28209
28215
|
var result$5 = $m_sci_Nil$();
|
|
28210
28216
|
while ((i$5 >= 0)) {
|
|
28211
|
-
var this$
|
|
28217
|
+
var this$34 = result$5;
|
|
28212
28218
|
var index$5 = i$5;
|
|
28213
28219
|
var x$8 = array$5[index$5];
|
|
28214
|
-
result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$
|
|
28220
|
+
result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$34);
|
|
28215
28221
|
i$5 = (((-1) + i$5) | 0)
|
|
28216
28222
|
};
|
|
28217
|
-
var jsx$
|
|
28218
|
-
var this$
|
|
28219
|
-
var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$
|
|
28223
|
+
var jsx$8 = result$5;
|
|
28224
|
+
var this$35 = $m_sci_List$();
|
|
28225
|
+
var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$8, this$35.ReusableCBFInstance$2)))
|
|
28220
28226
|
} else {
|
|
28221
28227
|
var x$9 = $m_s_None$();
|
|
28222
28228
|
if ((!(x$9 === x1$5))) {
|
|
@@ -28224,27 +28230,26 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
|
|
|
28224
28230
|
};
|
|
28225
28231
|
var enums = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
|
|
28226
28232
|
};
|
|
28227
|
-
this.checkDupSeqInstIds__sci_List__sci_Map__V(seq, instances);
|
|
28228
28233
|
var cs = new $c_Lio_kaitai_struct_format_ClassSpec().init___s_Option__sci_List__Z__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_DocSpec__s_Option__sci_List__sci_List__sci_Map__sci_Map__sci_Map(fileName, path, path.isEmpty__Z(), meta, doc, toStringExpr, params, seq, types, instances, enums);
|
|
28229
28234
|
if (path.isEmpty__Z()) {
|
|
28230
28235
|
var x1$6 = explicitMeta.id$1;
|
|
28231
28236
|
var x$11 = $m_s_None$();
|
|
28232
28237
|
if ((x$11 === x1$6)) {
|
|
28233
|
-
var jsx$
|
|
28238
|
+
var jsx$10 = $m_Lio_kaitai_struct_problems_KSYParseError$();
|
|
28234
28239
|
$m_sci_List$();
|
|
28235
28240
|
var array$6 = ["meta", "id"];
|
|
28236
28241
|
var i$6 = (((-1) + $uI(array$6.length)) | 0);
|
|
28237
28242
|
var result$6 = $m_sci_Nil$();
|
|
28238
28243
|
while ((i$6 >= 0)) {
|
|
28239
|
-
var this$
|
|
28244
|
+
var this$39 = result$6;
|
|
28240
28245
|
var index$6 = i$6;
|
|
28241
28246
|
var x$10 = array$6[index$6];
|
|
28242
|
-
result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$
|
|
28247
|
+
result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$39);
|
|
28243
28248
|
i$6 = (((-1) + i$6) | 0)
|
|
28244
28249
|
};
|
|
28245
|
-
var jsx$
|
|
28246
|
-
var this$
|
|
28247
|
-
throw jsx$
|
|
28250
|
+
var jsx$9 = result$6;
|
|
28251
|
+
var this$40 = $m_sci_List$();
|
|
28252
|
+
throw jsx$10.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException("no `meta/id` encountered in top-level class spec", $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$9, this$40.ReusableCBFInstance$2)))
|
|
28248
28253
|
} else if ((x1$6 instanceof $c_s_Some)) {
|
|
28249
28254
|
var x2$6 = $as_s_Some(x1$6);
|
|
28250
28255
|
var id = $as_T(x2$6.value$2);
|
|
@@ -28253,10 +28258,10 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
|
|
|
28253
28258
|
var i$7 = (((-1) + $uI(array$7.length)) | 0);
|
|
28254
28259
|
var result$7 = $m_sci_Nil$();
|
|
28255
28260
|
while ((i$7 >= 0)) {
|
|
28256
|
-
var this$
|
|
28261
|
+
var this$44 = result$7;
|
|
28257
28262
|
var index$7 = i$7;
|
|
28258
28263
|
var x$12 = array$7[index$7];
|
|
28259
|
-
result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$
|
|
28264
|
+
result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$44);
|
|
28260
28265
|
i$7 = (((-1) + i$7) | 0)
|
|
28261
28266
|
};
|
|
28262
28267
|
cs.name$1 = result$7
|
|
@@ -28330,29 +28335,11 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.seqFromYaml__O__sci_List__Lio_k
|
|
|
28330
28335
|
var jsx$3 = b.result__O()
|
|
28331
28336
|
};
|
|
28332
28337
|
var seq = $as_sci_List(jsx$3);
|
|
28333
|
-
this.checkDupSeqIds__sci_List__V(seq);
|
|
28334
28338
|
return seq
|
|
28335
28339
|
} else {
|
|
28336
28340
|
throw $m_Lio_kaitai_struct_problems_KSYParseError$().withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(("expected array, found " + src), path)
|
|
28337
28341
|
}
|
|
28338
28342
|
});
|
|
28339
|
-
$c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupSeqIds__sci_List__V = (function(seq) {
|
|
28340
|
-
var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
|
|
28341
|
-
var these = seq;
|
|
28342
|
-
while ((!these.isEmpty__Z())) {
|
|
28343
|
-
var arg1 = these.head__O();
|
|
28344
|
-
var attr = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
|
|
28345
|
-
var x1 = attr.id$1;
|
|
28346
|
-
if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
28347
|
-
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
|
|
28348
|
-
var id = x2.name$2;
|
|
28349
|
-
$m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
|
|
28350
|
-
attrIds.put__O__O__s_Option(id, attr)
|
|
28351
|
-
};
|
|
28352
|
-
var this$1 = these;
|
|
28353
|
-
these = this$1.tail__sci_List()
|
|
28354
|
-
}
|
|
28355
|
-
});
|
|
28356
28343
|
$c_Lio_kaitai_struct_format_ClassSpec$.prototype.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map = (function(src, path, metaDef) {
|
|
28357
28344
|
var srcMap = $m_Lio_kaitai_struct_format_ParseUtils$().asMap__O__sci_List__sci_Map(src, path);
|
|
28358
28345
|
var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1, metaDef$1) {
|
|
@@ -29633,6 +29620,38 @@ $c_Lio_kaitai_struct_languages_CppCompiler$.prototype.combineSwitchType__Lio_kai
|
|
|
29633
29620
|
})(this))).values__sc_Iterable());
|
|
29634
29621
|
return (st.isOwning$2 ? ct1 : ct1.asNonOwning__Lio_kaitai_struct_datatype_DataType())
|
|
29635
29622
|
});
|
|
29623
|
+
$c_Lio_kaitai_struct_languages_CppCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
29624
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
29625
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
29626
|
+
var name = x2.name$2;
|
|
29627
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29628
|
+
return name
|
|
29629
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
29630
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
29631
|
+
var name$2 = x3.name$2;
|
|
29632
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29633
|
+
return name$2
|
|
29634
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
29635
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
29636
|
+
var idx = x4.idx$2;
|
|
29637
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
29638
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
29639
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
29640
|
+
var name$3 = x5.name$2;
|
|
29641
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
29642
|
+
return name$3
|
|
29643
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
29644
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
29645
|
+
var inner = x6.innerId$2;
|
|
29646
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
29647
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
29648
|
+
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
29649
|
+
var inner$2 = x7.innerId$2;
|
|
29650
|
+
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner$2))
|
|
29651
|
+
} else {
|
|
29652
|
+
throw new $c_s_MatchError().init___O(id)
|
|
29653
|
+
}
|
|
29654
|
+
});
|
|
29636
29655
|
$c_Lio_kaitai_struct_languages_CppCompiler$.prototype.type2class__T__T = (function(name) {
|
|
29637
29656
|
return (($m_Lio_kaitai_struct_Utils$(), name) + "_t")
|
|
29638
29657
|
});
|
|
@@ -33830,9 +33849,6 @@ function $h_Lio_kaitai_struct_languages_JavaCompiler$() {
|
|
|
33830
33849
|
/*<skip>*/
|
|
33831
33850
|
}
|
|
33832
33851
|
$h_Lio_kaitai_struct_languages_JavaCompiler$.prototype = $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype;
|
|
33833
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.init___ = (function() {
|
|
33834
|
-
return this
|
|
33835
|
-
});
|
|
33836
33852
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
33837
33853
|
_kaitaiType2JavaTypePrim: while (true) {
|
|
33838
33854
|
var rc74 = false;
|
|
@@ -34016,6 +34032,12 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypePrim__
|
|
|
34016
34032
|
throw new $c_s_MatchError().init___O(x1)
|
|
34017
34033
|
}
|
|
34018
34034
|
});
|
|
34035
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.init___ = (function() {
|
|
34036
|
+
return this
|
|
34037
|
+
});
|
|
34038
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
|
|
34039
|
+
return (isNullable ? this.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType) : this.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType))
|
|
34040
|
+
});
|
|
34019
34041
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T = (function(names) {
|
|
34020
34042
|
var f = (function($this) {
|
|
34021
34043
|
return (function(x$2) {
|
|
@@ -34056,12 +34078,34 @@ $c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.types2class__sci_List__T
|
|
|
34056
34078
|
};
|
|
34057
34079
|
return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
|
|
34058
34080
|
});
|
|
34059
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T = (function(attrType, isNullable) {
|
|
34060
|
-
return (isNullable ? this.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType) : this.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType))
|
|
34061
|
-
});
|
|
34062
34081
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
34063
34082
|
return new $c_Lio_kaitai_struct_languages_JavaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
34064
34083
|
});
|
|
34084
|
+
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
34085
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
34086
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
34087
|
+
var name = x2.name$2;
|
|
34088
|
+
return name
|
|
34089
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
34090
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
34091
|
+
var name$2 = x3.name$2;
|
|
34092
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
34093
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
34094
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
34095
|
+
var idx = x4.idx$2;
|
|
34096
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
34097
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
34098
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
34099
|
+
var name$3 = x5.name$2;
|
|
34100
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
34101
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
34102
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
34103
|
+
var innerId = x6.innerId$2;
|
|
34104
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
34105
|
+
} else {
|
|
34106
|
+
throw new $c_s_MatchError().init___O(id)
|
|
34107
|
+
}
|
|
34108
|
+
});
|
|
34065
34109
|
$c_Lio_kaitai_struct_languages_JavaCompiler$.prototype.kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
34066
34110
|
_kaitaiType2JavaTypeBoxed: while (true) {
|
|
34067
34111
|
var rc72 = false;
|
|
@@ -34286,6 +34330,33 @@ $c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.init___ = (function() {
|
|
|
34286
34330
|
$c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
34287
34331
|
return new $c_Lio_kaitai_struct_languages_RubyCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
34288
34332
|
});
|
|
34333
|
+
$c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
34334
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
34335
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
34336
|
+
var name = x2.name$2;
|
|
34337
|
+
return name
|
|
34338
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
34339
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
34340
|
+
var name$2 = x3.name$2;
|
|
34341
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
34342
|
+
return name$2
|
|
34343
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
34344
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
34345
|
+
var idx = x4.idx$2;
|
|
34346
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
34347
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
34348
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
34349
|
+
var name$3 = x5.name$2;
|
|
34350
|
+
$m_Lio_kaitai_struct_Utils$();
|
|
34351
|
+
return name$3
|
|
34352
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
34353
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
34354
|
+
var inner = x6.innerId$2;
|
|
34355
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
34356
|
+
} else {
|
|
34357
|
+
throw new $c_s_MatchError().init___O(id)
|
|
34358
|
+
}
|
|
34359
|
+
});
|
|
34289
34360
|
$c_Lio_kaitai_struct_languages_RubyCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
34290
34361
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
34291
34362
|
if ((x === err)) {
|
|
@@ -41022,6 +41093,33 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.ksErrorName__Lio_kaitai
|
|
|
41022
41093
|
return err.name__T()
|
|
41023
41094
|
}
|
|
41024
41095
|
});
|
|
41096
|
+
$c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41097
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41098
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41099
|
+
var name = x2.name$2;
|
|
41100
|
+
return ("M" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name))
|
|
41101
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41102
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41103
|
+
var name$2 = x3.name$2;
|
|
41104
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
41105
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41106
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41107
|
+
var idx = x4.idx$2;
|
|
41108
|
+
var x = $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1;
|
|
41109
|
+
var this$2 = new $c_sci_StringOps().init___T(x);
|
|
41110
|
+
return (($f_sci_StringLike__capitalize__T(this$2) + "_") + idx)
|
|
41111
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41112
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41113
|
+
var name$3 = x5.name$2;
|
|
41114
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$3)
|
|
41115
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41116
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41117
|
+
var innerId = x6.innerId$2;
|
|
41118
|
+
return ("M_Raw" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41119
|
+
} else {
|
|
41120
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41121
|
+
}
|
|
41122
|
+
});
|
|
41025
41123
|
$c_Lio_kaitai_struct_languages_CSharpCompiler$.prototype.types2class__sc_Iterable__T = (function(names) {
|
|
41026
41124
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
41027
41125
|
return (function(name$2) {
|
|
@@ -41305,9 +41403,60 @@ $c_Lio_kaitai_struct_languages_GoCompiler$.prototype.kaitaiType2NativeType__Lio_
|
|
|
41305
41403
|
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
41306
41404
|
return new $c_Lio_kaitai_struct_languages_GoCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41307
41405
|
});
|
|
41406
|
+
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41407
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41408
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41409
|
+
var name = x2.name$2;
|
|
41410
|
+
return name
|
|
41411
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41412
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41413
|
+
var name$2 = x3.name$2;
|
|
41414
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
41415
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41416
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41417
|
+
var idx = x4.idx$2;
|
|
41418
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41419
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41420
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41421
|
+
var name$3 = x5.name$2;
|
|
41422
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
41423
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41424
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41425
|
+
var innerId = x6.innerId$2;
|
|
41426
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41427
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
41428
|
+
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
41429
|
+
var innerId$2 = x7.innerId$2;
|
|
41430
|
+
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
|
|
41431
|
+
} else {
|
|
41432
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41433
|
+
}
|
|
41434
|
+
});
|
|
41308
41435
|
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
41309
41436
|
return ("kaitai." + err.name__T())
|
|
41310
41437
|
});
|
|
41438
|
+
$c_Lio_kaitai_struct_languages_GoCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41439
|
+
var x = $m_Lio_kaitai_struct_format_IoIdentifier$();
|
|
41440
|
+
if (x.equals__O__Z(id)) {
|
|
41441
|
+
return "_IO"
|
|
41442
|
+
} else {
|
|
41443
|
+
var x$3 = $m_Lio_kaitai_struct_format_RootIdentifier$();
|
|
41444
|
+
if (x$3.equals__O__Z(id)) {
|
|
41445
|
+
return "_Root"
|
|
41446
|
+
} else {
|
|
41447
|
+
var x$5 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
|
|
41448
|
+
if (x$5.equals__O__Z(id)) {
|
|
41449
|
+
return "_Parent"
|
|
41450
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41451
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41452
|
+
var name = x2.name$2;
|
|
41453
|
+
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
41454
|
+
} else {
|
|
41455
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41456
|
+
}
|
|
41457
|
+
}
|
|
41458
|
+
}
|
|
41459
|
+
});
|
|
41311
41460
|
var $d_Lio_kaitai_struct_languages_GoCompiler$ = new $TypeData().initClass({
|
|
41312
41461
|
Lio_kaitai_struct_languages_GoCompiler$: 0
|
|
41313
41462
|
}, false, "io.kaitai.struct.languages.GoCompiler$", {
|
|
@@ -41383,6 +41532,31 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.types2class__sci_Li
|
|
|
41383
41532
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
41384
41533
|
return new $c_Lio_kaitai_struct_languages_JavaScriptCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41385
41534
|
});
|
|
41535
|
+
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41536
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41537
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41538
|
+
var name = x2.name$2;
|
|
41539
|
+
return name
|
|
41540
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41541
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41542
|
+
var name$2 = x3.name$2;
|
|
41543
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
41544
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41545
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41546
|
+
var idx = x4.idx$2;
|
|
41547
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41548
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41549
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41550
|
+
var name$3 = x5.name$2;
|
|
41551
|
+
return ("_m_" + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3))
|
|
41552
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41553
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41554
|
+
var innerId = x6.innerId$2;
|
|
41555
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41556
|
+
} else {
|
|
41557
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41558
|
+
}
|
|
41559
|
+
});
|
|
41386
41560
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
41387
41561
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
41388
41562
|
if ((x === err)) {
|
|
@@ -41391,6 +41565,15 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.ksErrorName__Lio_ka
|
|
|
41391
41565
|
return ("KaitaiStream." + err.name__T())
|
|
41392
41566
|
}
|
|
41393
41567
|
});
|
|
41568
|
+
$c_Lio_kaitai_struct_languages_JavaScriptCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41569
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41570
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41571
|
+
var name = x2.name$2;
|
|
41572
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
|
|
41573
|
+
} else {
|
|
41574
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41575
|
+
}
|
|
41576
|
+
});
|
|
41394
41577
|
var $d_Lio_kaitai_struct_languages_JavaScriptCompiler$ = new $TypeData().initClass({
|
|
41395
41578
|
Lio_kaitai_struct_languages_JavaScriptCompiler$: 0
|
|
41396
41579
|
}, false, "io.kaitai.struct.languages.JavaScriptCompiler$", {
|
|
@@ -41466,6 +41649,40 @@ $c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.types2class__sci_List__T =
|
|
|
41466
41649
|
$c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
41467
41650
|
return new $c_Lio_kaitai_struct_languages_LuaCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41468
41651
|
});
|
|
41652
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41653
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
41654
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
41655
|
+
var name = x2.name$2;
|
|
41656
|
+
return name
|
|
41657
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
41658
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
41659
|
+
var name$2 = x3.name$2;
|
|
41660
|
+
return name$2
|
|
41661
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
41662
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
41663
|
+
var idx = x4.idx$2;
|
|
41664
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
41665
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41666
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41667
|
+
var name$3 = x5.name$2;
|
|
41668
|
+
return ("_m_" + name$3)
|
|
41669
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
41670
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
41671
|
+
var innerId = x6.innerId$2;
|
|
41672
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
41673
|
+
} else {
|
|
41674
|
+
throw new $c_s_MatchError().init___O(id)
|
|
41675
|
+
}
|
|
41676
|
+
});
|
|
41677
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
41678
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
41679
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
41680
|
+
var name = x2.name$2;
|
|
41681
|
+
return name
|
|
41682
|
+
} else {
|
|
41683
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
41684
|
+
}
|
|
41685
|
+
});
|
|
41469
41686
|
var $d_Lio_kaitai_struct_languages_LuaCompiler$ = new $TypeData().initClass({
|
|
41470
41687
|
Lio_kaitai_struct_languages_LuaCompiler$: 0
|
|
41471
41688
|
}, false, "io.kaitai.struct.languages.LuaCompiler$", {
|
|
@@ -41869,6 +42086,31 @@ $c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.init___ = (function() {
|
|
|
41869
42086
|
$c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
41870
42087
|
return new $c_Lio_kaitai_struct_languages_PHPCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
41871
42088
|
});
|
|
42089
|
+
$c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42090
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42091
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42092
|
+
var name = x2.name$2;
|
|
42093
|
+
return name
|
|
42094
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42095
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42096
|
+
var name$2 = x3.name$2;
|
|
42097
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
42098
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42099
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42100
|
+
var idx = x4.idx$2;
|
|
42101
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42102
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42103
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42104
|
+
var name$3 = x5.name$2;
|
|
42105
|
+
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
42106
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42107
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42108
|
+
var innerId = x6.innerId$2;
|
|
42109
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
42110
|
+
} else {
|
|
42111
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42112
|
+
}
|
|
42113
|
+
});
|
|
41872
42114
|
$c_Lio_kaitai_struct_languages_PHPCompiler$.prototype.types2classRel__sci_List__T = (function(names) {
|
|
41873
42115
|
var f = (function($this) {
|
|
41874
42116
|
return (function(name$2) {
|
|
@@ -41993,6 +42235,31 @@ $c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstreamName__T = (functio
|
|
|
41993
42235
|
$c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.kstructName__T = (function() {
|
|
41994
42236
|
return "IO::KaitaiStruct::Struct"
|
|
41995
42237
|
});
|
|
42238
|
+
$c_Lio_kaitai_struct_languages_PerlCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42239
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42240
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42241
|
+
var name = x2.name$2;
|
|
42242
|
+
return name
|
|
42243
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42244
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42245
|
+
var name$2 = x3.name$2;
|
|
42246
|
+
return name$2
|
|
42247
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42248
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42249
|
+
var idx = x4.idx$2;
|
|
42250
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42251
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42252
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42253
|
+
var name$3 = x5.name$2;
|
|
42254
|
+
return name$3
|
|
42255
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42256
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42257
|
+
var inner = x6.innerId$2;
|
|
42258
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
42259
|
+
} else {
|
|
42260
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42261
|
+
}
|
|
42262
|
+
});
|
|
41996
42263
|
var $d_Lio_kaitai_struct_languages_PerlCompiler$ = new $TypeData().initClass({
|
|
41997
42264
|
Lio_kaitai_struct_languages_PerlCompiler$: 0
|
|
41998
42265
|
}, false, "io.kaitai.struct.languages.PerlCompiler$", {
|
|
@@ -42068,6 +42335,31 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.types2class__sci_List__
|
|
|
42068
42335
|
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.getCompiler__Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig__Lio_kaitai_struct_languages_components_LanguageCompiler = (function(tp, config) {
|
|
42069
42336
|
return new $c_Lio_kaitai_struct_languages_PythonCompiler().init___Lio_kaitai_struct_ClassTypeProvider__Lio_kaitai_struct_RuntimeConfig(tp, config)
|
|
42070
42337
|
});
|
|
42338
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42339
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
42340
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
42341
|
+
var name = x2.name$2;
|
|
42342
|
+
return name
|
|
42343
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
42344
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
42345
|
+
var name$2 = x3.name$2;
|
|
42346
|
+
return name$2
|
|
42347
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
42348
|
+
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
42349
|
+
var idx = x4.idx$2;
|
|
42350
|
+
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
42351
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42352
|
+
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42353
|
+
var name$3 = x5.name$2;
|
|
42354
|
+
return ("_m_" + name$3)
|
|
42355
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
42356
|
+
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
42357
|
+
var innerId = x6.innerId$2;
|
|
42358
|
+
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
42359
|
+
} else {
|
|
42360
|
+
throw new $c_s_MatchError().init___O(id)
|
|
42361
|
+
}
|
|
42362
|
+
});
|
|
42071
42363
|
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai_struct_datatype_KSError__T = (function(err) {
|
|
42072
42364
|
var x = $m_Lio_kaitai_struct_datatype_EndOfStreamError$();
|
|
42073
42365
|
if ((x === err)) {
|
|
@@ -42076,6 +42368,15 @@ $c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.ksErrorName__Lio_kaitai
|
|
|
42076
42368
|
return ("kaitaistruct." + err.name__T())
|
|
42077
42369
|
}
|
|
42078
42370
|
});
|
|
42371
|
+
$c_Lio_kaitai_struct_languages_PythonCompiler$.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
42372
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
42373
|
+
var x2 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
42374
|
+
var name = x2.name$2;
|
|
42375
|
+
return name
|
|
42376
|
+
} else {
|
|
42377
|
+
return this.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
42378
|
+
}
|
|
42379
|
+
});
|
|
42079
42380
|
var $d_Lio_kaitai_struct_languages_PythonCompiler$ = new $TypeData().initClass({
|
|
42080
42381
|
Lio_kaitai_struct_languages_PythonCompiler$: 0
|
|
42081
42382
|
}, false, "io.kaitai.struct.languages.PythonCompiler$", {
|
|
@@ -48411,6 +48712,82 @@ var $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum = new $TypeData().initClass({
|
|
|
48411
48712
|
});
|
|
48412
48713
|
$c_Lio_kaitai_struct_exprlang_Ast$expr$IntNum.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$IntNum;
|
|
48413
48714
|
/** @constructor */
|
|
48715
|
+
function $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
|
|
48716
|
+
$c_O.call(this);
|
|
48717
|
+
this.id$1 = null
|
|
48718
|
+
}
|
|
48719
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = new $h_O();
|
|
48720
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.constructor = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
|
|
48721
|
+
/** @constructor */
|
|
48722
|
+
function $h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName() {
|
|
48723
|
+
/*<skip>*/
|
|
48724
|
+
}
|
|
48725
|
+
$h_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype = $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype;
|
|
48726
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productPrefix__T = (function() {
|
|
48727
|
+
return "InternalName"
|
|
48728
|
+
});
|
|
48729
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productArity__I = (function() {
|
|
48730
|
+
return 1
|
|
48731
|
+
});
|
|
48732
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.equals__O__Z = (function(x$1) {
|
|
48733
|
+
if ((this === x$1)) {
|
|
48734
|
+
return true
|
|
48735
|
+
} else if ((x$1 instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
48736
|
+
var InternalName$1 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(x$1);
|
|
48737
|
+
var x = this.id$1;
|
|
48738
|
+
var x$2 = InternalName$1.id$1;
|
|
48739
|
+
return ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
|
|
48740
|
+
} else {
|
|
48741
|
+
return false
|
|
48742
|
+
}
|
|
48743
|
+
});
|
|
48744
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productElement__I__O = (function(x$1) {
|
|
48745
|
+
switch (x$1) {
|
|
48746
|
+
case 0: {
|
|
48747
|
+
return this.id$1;
|
|
48748
|
+
break
|
|
48749
|
+
}
|
|
48750
|
+
default: {
|
|
48751
|
+
throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
|
|
48752
|
+
}
|
|
48753
|
+
}
|
|
48754
|
+
});
|
|
48755
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.init___Lio_kaitai_struct_format_Identifier = (function(id) {
|
|
48756
|
+
this.id$1 = id;
|
|
48757
|
+
return this
|
|
48758
|
+
});
|
|
48759
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.toString__T = (function() {
|
|
48760
|
+
return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
|
|
48761
|
+
});
|
|
48762
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.hashCode__I = (function() {
|
|
48763
|
+
var this$2 = $m_s_util_hashing_MurmurHash3$();
|
|
48764
|
+
return this$2.productHash__s_Product__I__I(this, (-889275714))
|
|
48765
|
+
});
|
|
48766
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.productIterator__sc_Iterator = (function() {
|
|
48767
|
+
return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
|
|
48768
|
+
});
|
|
48769
|
+
function $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj) {
|
|
48770
|
+
return (((obj instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.exprlang.Ast$expr$InternalName"))
|
|
48771
|
+
}
|
|
48772
|
+
function $isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
|
|
48773
|
+
return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_exprlang_Ast$expr$InternalName)))
|
|
48774
|
+
}
|
|
48775
|
+
function $asArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) {
|
|
48776
|
+
return (($isArrayOf_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.exprlang.Ast$expr$InternalName;", depth))
|
|
48777
|
+
}
|
|
48778
|
+
var $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName = new $TypeData().initClass({
|
|
48779
|
+
Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 0
|
|
48780
|
+
}, false, "io.kaitai.struct.exprlang.Ast$expr$InternalName", {
|
|
48781
|
+
Lio_kaitai_struct_exprlang_Ast$expr$InternalName: 1,
|
|
48782
|
+
O: 1,
|
|
48783
|
+
Lio_kaitai_struct_exprlang_Ast$expr: 1,
|
|
48784
|
+
s_Product: 1,
|
|
48785
|
+
s_Equals: 1,
|
|
48786
|
+
s_Serializable: 1,
|
|
48787
|
+
Ljava_io_Serializable: 1
|
|
48788
|
+
});
|
|
48789
|
+
$c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName.prototype.$classData = $d_Lio_kaitai_struct_exprlang_Ast$expr$InternalName;
|
|
48790
|
+
/** @constructor */
|
|
48414
48791
|
function $c_Lio_kaitai_struct_exprlang_Ast$expr$List() {
|
|
48415
48792
|
$c_O.call(this);
|
|
48416
48793
|
this.elts$1 = null
|
|
@@ -62693,9 +63070,6 @@ function $h_Lio_kaitai_struct_translators_BaseTranslator() {
|
|
|
62693
63070
|
/*<skip>*/
|
|
62694
63071
|
}
|
|
62695
63072
|
$h_Lio_kaitai_struct_translators_BaseTranslator.prototype = $c_Lio_kaitai_struct_translators_BaseTranslator.prototype;
|
|
62696
|
-
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
|
|
62697
|
-
return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
|
|
62698
|
-
});
|
|
62699
63073
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
62700
63074
|
return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
62701
63075
|
});
|
|
@@ -62717,6 +63091,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.byteSizeOfValue__T__Li
|
|
|
62717
63091
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
62718
63092
|
return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
62719
63093
|
});
|
|
63094
|
+
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
63095
|
+
$m_s_Predef$().$$qmark$qmark$qmark__sr_Nothing$()
|
|
63096
|
+
});
|
|
62720
63097
|
$c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
62721
63098
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
62722
63099
|
});
|
|
@@ -62910,10 +63287,17 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62910
63287
|
return ((name.name$1 === $m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1) ? this.byteSizeOfClassSpec__Lio_kaitai_struct_format_ClassSpec__T(this.provider$2.nowClass$1) : this.doLocalName__T__T(name.name$1))
|
|
62911
63288
|
}
|
|
62912
63289
|
};
|
|
63290
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
63291
|
+
var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
63292
|
+
var id$2 = x9.id$1;
|
|
63293
|
+
if ((id$2 !== null)) {
|
|
63294
|
+
return this.doInternalName__Lio_kaitai_struct_format_Identifier__T(id$2)
|
|
63295
|
+
}
|
|
63296
|
+
};
|
|
62913
63297
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
62914
|
-
var
|
|
62915
|
-
var op =
|
|
62916
|
-
var inner =
|
|
63298
|
+
var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
63299
|
+
var op = x10.op$1;
|
|
63300
|
+
var inner = x10.operand$1;
|
|
62917
63301
|
if ((op !== null)) {
|
|
62918
63302
|
if ((inner !== null)) {
|
|
62919
63303
|
var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
|
|
@@ -62929,17 +63313,17 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62929
63313
|
}
|
|
62930
63314
|
};
|
|
62931
63315
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
62932
|
-
var
|
|
62933
|
-
var left =
|
|
62934
|
-
var op$2 =
|
|
62935
|
-
var right =
|
|
63316
|
+
var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
63317
|
+
var left = x11.left$1;
|
|
63318
|
+
var op$2 = x11.ops$1;
|
|
63319
|
+
var right = x11.right$1;
|
|
62936
63320
|
if ((left !== null)) {
|
|
62937
63321
|
if ((op$2 !== null)) {
|
|
62938
63322
|
if ((right !== null)) {
|
|
62939
63323
|
var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
|
|
62940
63324
|
var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
|
|
62941
63325
|
if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
|
|
62942
|
-
return
|
|
63326
|
+
return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
|
|
62943
63327
|
};
|
|
62944
63328
|
if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType))) {
|
|
62945
63329
|
var x$3 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
|
|
@@ -62950,7 +63334,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62950
63334
|
var jsx$1 = (x$5 === op$2)
|
|
62951
63335
|
};
|
|
62952
63336
|
if (jsx$1) {
|
|
62953
|
-
return
|
|
63337
|
+
return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
|
|
62954
63338
|
} else {
|
|
62955
63339
|
throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((("can't compare booleans using " + op$2) + " operator"))
|
|
62956
63340
|
}
|
|
@@ -62962,10 +63346,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62962
63346
|
return this.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
|
|
62963
63347
|
};
|
|
62964
63348
|
if ((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
|
|
62965
|
-
var x18
|
|
63349
|
+
var x18 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_1);
|
|
62966
63350
|
if ((_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$EnumType)) {
|
|
62967
63351
|
var x19$2 = $as_Lio_kaitai_struct_datatype_DataType$EnumType(_2);
|
|
62968
|
-
var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18
|
|
63352
|
+
var et1Spec = $as_Lio_kaitai_struct_format_EnumSpec(x18.enumSpec$1.get__O());
|
|
62969
63353
|
var et2Spec = $as_Lio_kaitai_struct_format_EnumSpec(x19$2.enumSpec$1.get__O());
|
|
62970
63354
|
if ((!((et1Spec === null) ? (et2Spec === null) : et1Spec.equals__O__Z(et2Spec)))) {
|
|
62971
63355
|
var this$1 = et1Spec.name$1;
|
|
@@ -62983,10 +63367,10 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
62983
63367
|
}
|
|
62984
63368
|
};
|
|
62985
63369
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
62986
|
-
var
|
|
62987
|
-
var left$2 =
|
|
62988
|
-
var op$3 =
|
|
62989
|
-
var right$2 =
|
|
63370
|
+
var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
63371
|
+
var left$2 = x12.left$1;
|
|
63372
|
+
var op$3 = x12.op$1;
|
|
63373
|
+
var right$2 = x12.right$1;
|
|
62990
63374
|
if ((left$2 !== null)) {
|
|
62991
63375
|
if ((op$3 !== null)) {
|
|
62992
63376
|
if ((right$2 !== null)) {
|
|
@@ -63016,9 +63400,9 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63016
63400
|
}
|
|
63017
63401
|
};
|
|
63018
63402
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
63019
|
-
var
|
|
63020
|
-
var op$4 =
|
|
63021
|
-
var values =
|
|
63403
|
+
var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
63404
|
+
var op$4 = x13.op$1;
|
|
63405
|
+
var values = x13.values$1;
|
|
63022
63406
|
if ((op$4 !== null)) {
|
|
63023
63407
|
if ((values !== null)) {
|
|
63024
63408
|
return $f_Lio_kaitai_struct_translators_CommonOps__doBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__T(this, op$4, values)
|
|
@@ -63026,16 +63410,16 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63026
63410
|
}
|
|
63027
63411
|
};
|
|
63028
63412
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
63029
|
-
var
|
|
63030
|
-
var condition =
|
|
63031
|
-
var ifTrue =
|
|
63032
|
-
var ifFalse =
|
|
63413
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
63414
|
+
var condition = x14.condition$1;
|
|
63415
|
+
var ifTrue = x14.ifTrue$1;
|
|
63416
|
+
var ifFalse = x14.ifFalse$1;
|
|
63033
63417
|
return this.doIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(condition, ifTrue, ifFalse)
|
|
63034
63418
|
};
|
|
63035
63419
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
63036
|
-
var
|
|
63037
|
-
var container =
|
|
63038
|
-
var idx =
|
|
63420
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
63421
|
+
var container = x15.value$1;
|
|
63422
|
+
var idx = x15.idx$1;
|
|
63039
63423
|
if ((container !== null)) {
|
|
63040
63424
|
if ((idx !== null)) {
|
|
63041
63425
|
var x1$6 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(idx);
|
|
@@ -63055,32 +63439,32 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
|
|
|
63055
63439
|
}
|
|
63056
63440
|
};
|
|
63057
63441
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
63058
|
-
var
|
|
63059
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this,
|
|
63442
|
+
var x33 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
63443
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x33))
|
|
63060
63444
|
};
|
|
63061
63445
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
63062
|
-
var
|
|
63063
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this,
|
|
63446
|
+
var x34 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
63447
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x34))
|
|
63064
63448
|
};
|
|
63065
63449
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
63066
|
-
var
|
|
63067
|
-
var values$2 =
|
|
63450
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
63451
|
+
var values$2 = x16.elts$1;
|
|
63068
63452
|
if ((values$2 !== null)) {
|
|
63069
63453
|
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, values$2))
|
|
63070
63454
|
}
|
|
63071
63455
|
};
|
|
63072
63456
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
63073
|
-
var
|
|
63074
|
-
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this,
|
|
63457
|
+
var x36 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
63458
|
+
return $as_T($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x36))
|
|
63075
63459
|
};
|
|
63076
63460
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
|
|
63077
|
-
var
|
|
63078
|
-
var typeName =
|
|
63461
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
|
|
63462
|
+
var typeName = x17.typeName$1;
|
|
63079
63463
|
return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName)
|
|
63080
63464
|
};
|
|
63081
63465
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
|
|
63082
|
-
var
|
|
63083
|
-
var typeName$2 =
|
|
63466
|
+
var x18$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
|
|
63467
|
+
var typeName$2 = x18$2.typeName$1;
|
|
63084
63468
|
return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__T(typeName$2)
|
|
63085
63469
|
};
|
|
63086
63470
|
throw new $c_s_MatchError().init___O(v)
|
|
@@ -63379,12 +63763,12 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayLiteral__sc_S
|
|
|
63379
63763
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value, num) {
|
|
63380
63764
|
return this.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, num)
|
|
63381
63765
|
});
|
|
63382
|
-
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.trEnumByLabel__sci_List__T__Lio_kaitai_struct_translators_ResultString = (function(enumTypeAbs, label) {
|
|
63383
|
-
return new $c_Lio_kaitai_struct_translators_ResultString().init___T($m_Lio_kaitai_struct_languages_GoCompiler$().enumToStr__sci_List__T__T(enumTypeAbs, label))
|
|
63384
|
-
});
|
|
63385
63766
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
|
|
63386
63767
|
return this.asciiCharQuoteMap$2
|
|
63387
63768
|
});
|
|
63769
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.trEnumByLabel__sci_List__T__Lio_kaitai_struct_translators_ResultString = (function(enumTypeAbs, label) {
|
|
63770
|
+
return new $c_Lio_kaitai_struct_translators_ResultString().init___T($m_Lio_kaitai_struct_languages_GoCompiler$().enumToStr__sci_List__T__T(enumTypeAbs, label))
|
|
63771
|
+
});
|
|
63388
63772
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult = (function(s) {
|
|
63389
63773
|
return new $c_Lio_kaitai_struct_translators_ResultString().init___T((("kaitai.StringReverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")"))
|
|
63390
63774
|
});
|
|
@@ -63679,6 +64063,23 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.doByteArrayNonLiteral__s
|
|
|
63679
64063
|
var this$1 = $m_sc_Seq$();
|
|
63680
64064
|
return new $c_Lio_kaitai_struct_translators_ResultString().init___T((("[]uint8{" + $as_sc_TraversableOnce(elts.map__F1__scg_CanBuildFrom__O(jsx$1, this$1.ReusableCBFInstance$2)).mkString__T__T(", ")) + "}"))
|
|
63681
64065
|
});
|
|
64066
|
+
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult = (function(id) {
|
|
64067
|
+
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
64068
|
+
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
64069
|
+
var name = x2.name$2;
|
|
64070
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name)
|
|
64071
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
64072
|
+
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
64073
|
+
var name$2 = x3.name$2;
|
|
64074
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$2)
|
|
64075
|
+
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
64076
|
+
var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
64077
|
+
var name$3 = x4.name$2;
|
|
64078
|
+
return this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name$3)
|
|
64079
|
+
} else {
|
|
64080
|
+
return new $c_Lio_kaitai_struct_translators_ResultString().init___T(("this." + $m_Lio_kaitai_struct_languages_GoCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id)))
|
|
64081
|
+
}
|
|
64082
|
+
});
|
|
63682
64083
|
$c_Lio_kaitai_struct_translators_GoTranslator.prototype.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value, expr) {
|
|
63683
64084
|
return this.bytesToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_TranslatorResult(value, expr)
|
|
63684
64085
|
});
|
|
@@ -63755,10 +64156,17 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63755
64156
|
return ((name.name$1 === $m_Lio_kaitai_struct_format_Identifier$().SIZEOF$1) ? this.byteSizeOfClassSpec__Lio_kaitai_struct_format_ClassSpec__Lio_kaitai_struct_translators_TranslatorResult(this.provider$2.nowClass$1) : this.trLocalName__T__Lio_kaitai_struct_translators_TranslatorResult(name.name$1))
|
|
63756
64157
|
}
|
|
63757
64158
|
};
|
|
64159
|
+
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$InternalName)) {
|
|
64160
|
+
var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$InternalName(v);
|
|
64161
|
+
var id$2 = x9.id$1;
|
|
64162
|
+
if ((id$2 !== null)) {
|
|
64163
|
+
return this.trInternalName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_translators_TranslatorResult(id$2)
|
|
64164
|
+
}
|
|
64165
|
+
};
|
|
63758
64166
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp)) {
|
|
63759
|
-
var
|
|
63760
|
-
var op =
|
|
63761
|
-
var inner =
|
|
64167
|
+
var x10 = $as_Lio_kaitai_struct_exprlang_Ast$expr$UnaryOp(v);
|
|
64168
|
+
var op = x10.op$1;
|
|
64169
|
+
var inner = x10.operand$1;
|
|
63762
64170
|
if ((op !== null)) {
|
|
63763
64171
|
if ((inner !== null)) {
|
|
63764
64172
|
var opStr = this.unaryOp__Lio_kaitai_struct_exprlang_Ast$unaryop__T(op);
|
|
@@ -63775,10 +64183,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63775
64183
|
}
|
|
63776
64184
|
};
|
|
63777
64185
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Compare)) {
|
|
63778
|
-
var
|
|
63779
|
-
var left =
|
|
63780
|
-
var op$2 =
|
|
63781
|
-
var right =
|
|
64186
|
+
var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Compare(v);
|
|
64187
|
+
var left = x11.left$1;
|
|
64188
|
+
var op$2 = x11.ops$1;
|
|
64189
|
+
var right = x11.right$1;
|
|
63782
64190
|
var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
|
|
63783
64191
|
var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
|
|
63784
64192
|
if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
|
|
@@ -63796,10 +64204,10 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63796
64204
|
}
|
|
63797
64205
|
};
|
|
63798
64206
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BinOp)) {
|
|
63799
|
-
var
|
|
63800
|
-
var left$2 =
|
|
63801
|
-
var op$3 =
|
|
63802
|
-
var right$2 =
|
|
64207
|
+
var x12 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BinOp(v);
|
|
64208
|
+
var left$2 = x12.left$1;
|
|
64209
|
+
var op$3 = x12.op$1;
|
|
64210
|
+
var right$2 = x12.right$1;
|
|
63803
64211
|
if ((left$2 !== null)) {
|
|
63804
64212
|
if ((op$3 !== null)) {
|
|
63805
64213
|
if ((right$2 !== null)) {
|
|
@@ -63829,49 +64237,49 @@ $c_Lio_kaitai_struct_translators_GoTranslator.prototype.translateExpr__Lio_kaita
|
|
|
63829
64237
|
}
|
|
63830
64238
|
};
|
|
63831
64239
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp)) {
|
|
63832
|
-
var
|
|
63833
|
-
var op$4 =
|
|
63834
|
-
var values =
|
|
64240
|
+
var x13 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BoolOp(v);
|
|
64241
|
+
var op$4 = x13.op$1;
|
|
64242
|
+
var values = x13.values$1;
|
|
63835
64243
|
return this.trBooleanOp__Lio_kaitai_struct_exprlang_Ast$boolop__sc_Seq__Lio_kaitai_struct_translators_ResultString(op$4, values)
|
|
63836
64244
|
};
|
|
63837
64245
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$IfExp)) {
|
|
63838
|
-
var
|
|
63839
|
-
var condition =
|
|
63840
|
-
var ifTrue =
|
|
63841
|
-
var ifFalse =
|
|
64246
|
+
var x14 = $as_Lio_kaitai_struct_exprlang_Ast$expr$IfExp(v);
|
|
64247
|
+
var condition = x14.condition$1;
|
|
64248
|
+
var ifTrue = x14.ifTrue$1;
|
|
64249
|
+
var ifFalse = x14.ifFalse$1;
|
|
63842
64250
|
return this.trIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultLocalVar(condition, ifTrue, ifFalse)
|
|
63843
64251
|
};
|
|
63844
64252
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Subscript)) {
|
|
63845
|
-
var
|
|
63846
|
-
var container =
|
|
63847
|
-
var idx =
|
|
64253
|
+
var x15 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Subscript(v);
|
|
64254
|
+
var container = x15.value$1;
|
|
64255
|
+
var idx = x15.idx$1;
|
|
63848
64256
|
return this.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_translators_ResultString(container, idx)
|
|
63849
64257
|
};
|
|
63850
64258
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Attribute)) {
|
|
63851
|
-
var
|
|
63852
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this,
|
|
64259
|
+
var x26 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Attribute(v);
|
|
64260
|
+
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateAttribute__Lio_kaitai_struct_exprlang_Ast$expr$Attribute__O(this, x26))
|
|
63853
64261
|
};
|
|
63854
64262
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Call)) {
|
|
63855
|
-
var
|
|
63856
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this,
|
|
64263
|
+
var x27 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Call(v);
|
|
64264
|
+
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonMethods__translateCall__Lio_kaitai_struct_exprlang_Ast$expr$Call__O(this, x27))
|
|
63857
64265
|
};
|
|
63858
64266
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$List)) {
|
|
63859
|
-
var
|
|
63860
|
-
var elts =
|
|
64267
|
+
var x16 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
|
|
64268
|
+
var elts = x16.elts$1;
|
|
63861
64269
|
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doGuessArrayLiteral__sc_Seq__O(this, elts))
|
|
63862
64270
|
};
|
|
63863
64271
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$CastToType)) {
|
|
63864
|
-
var
|
|
63865
|
-
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this,
|
|
64272
|
+
var x28 = $as_Lio_kaitai_struct_exprlang_Ast$expr$CastToType(v);
|
|
64273
|
+
return $as_Lio_kaitai_struct_translators_TranslatorResult($f_Lio_kaitai_struct_translators_CommonArraysAndCast__doCastOrArray__Lio_kaitai_struct_exprlang_Ast$expr$CastToType__O(this, x28))
|
|
63866
64274
|
};
|
|
63867
64275
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType)) {
|
|
63868
|
-
var
|
|
63869
|
-
var typeName =
|
|
64276
|
+
var x17 = $as_Lio_kaitai_struct_exprlang_Ast$expr$ByteSizeOfType(v);
|
|
64277
|
+
var typeName = x17.typeName$1;
|
|
63870
64278
|
return this.doByteSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName)
|
|
63871
64279
|
};
|
|
63872
64280
|
if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType)) {
|
|
63873
|
-
var
|
|
63874
|
-
var typeName$2 =
|
|
64281
|
+
var x18 = $as_Lio_kaitai_struct_exprlang_Ast$expr$BitSizeOfType(v);
|
|
64282
|
+
var typeName$2 = x18.typeName$1;
|
|
63875
64283
|
return this.doBitSizeOfType__Lio_kaitai_struct_exprlang_Ast$typeId__Lio_kaitai_struct_translators_TranslatorResult(typeName$2)
|
|
63876
64284
|
};
|
|
63877
64285
|
throw new $c_s_MatchError().init___O(v)
|
|
@@ -65812,6 +66220,9 @@ $c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.enumClass__sci_List_
|
|
|
65812
66220
|
var enumTypeRel = $m_Lio_kaitai_struct_Utils$().relClass__sci_List__sci_List__sci_List(enumTypeAbs, this.provider$2.nowClass$1.name$1);
|
|
65813
66221
|
return $m_Lio_kaitai_struct_languages_CSharpCompiler$().types2class__sc_Iterable__T(enumTypeRel)
|
|
65814
66222
|
});
|
|
66223
|
+
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66224
|
+
return ("" + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
66225
|
+
});
|
|
65815
66226
|
$c_Lio_kaitai_struct_translators_CSharpTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
65816
66227
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
65817
66228
|
});
|
|
@@ -66070,6 +66481,9 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strSubstring__Li
|
|
|
66070
66481
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
|
|
66071
66482
|
return (("Array.from(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ").reverse().join('')")
|
|
66072
66483
|
});
|
|
66484
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66485
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
66486
|
+
});
|
|
66073
66487
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66074
66488
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66075
66489
|
});
|
|
@@ -66098,12 +66512,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_ka
|
|
|
66098
66512
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doIfExp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(condition, ifTrue, ifFalse) {
|
|
66099
66513
|
return (((((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(condition)) + " ? ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(ifTrue)) + " : ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(ifFalse)) + ")")
|
|
66100
66514
|
});
|
|
66101
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
|
|
66102
|
-
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
66103
|
-
});
|
|
66104
66515
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
66105
66516
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + " | 0)")
|
|
66106
66517
|
});
|
|
66518
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arraySubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
|
|
66519
|
+
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
66520
|
+
});
|
|
66107
66521
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
66108
66522
|
return this.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
66109
66523
|
});
|
|
@@ -66139,12 +66553,12 @@ $c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.arrayMax__Lio_ka
|
|
|
66139
66553
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i, base) {
|
|
66140
66554
|
return (((("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ").toString(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base)) + ")")
|
|
66141
66555
|
});
|
|
66142
|
-
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
66143
|
-
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ".isEof()")
|
|
66144
|
-
});
|
|
66145
66556
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.doName__T__T = (function(s) {
|
|
66146
66557
|
return (((s === "_root") || ((s === "_parent") || (s === "_io"))) ? s : $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s))
|
|
66147
66558
|
});
|
|
66559
|
+
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.kaitaiStreamEof__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
66560
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + ".isEof()")
|
|
66561
|
+
});
|
|
66148
66562
|
$c_Lio_kaitai_struct_translators_JavaScriptTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
|
|
66149
66563
|
return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
|
|
66150
66564
|
});
|
|
@@ -66388,6 +66802,10 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.enumClass__sci_List__T
|
|
|
66388
66802
|
};
|
|
66389
66803
|
return $as_sc_TraversableOnce(jsx$1).mkString__T__T(".")
|
|
66390
66804
|
});
|
|
66805
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
66806
|
+
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
66807
|
+
return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
|
|
66808
|
+
});
|
|
66391
66809
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66392
66810
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66393
66811
|
});
|
|
@@ -66452,12 +66870,12 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.arraySubscript__Lio_ka
|
|
|
66452
66870
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, from, to) {
|
|
66453
66871
|
return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + ".substring(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + ")")
|
|
66454
66872
|
});
|
|
66455
|
-
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
66456
|
-
return (("KaitaiStream.byteArrayMax(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ")")
|
|
66457
|
-
});
|
|
66458
66873
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
66459
66874
|
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b) + "[(") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ").length - 1]")
|
|
66460
66875
|
});
|
|
66876
|
+
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
66877
|
+
return (("KaitaiStream.byteArrayMax(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ")")
|
|
66878
|
+
});
|
|
66461
66879
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
|
|
66462
66880
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
66463
66881
|
return (function(v$2) {
|
|
@@ -66499,7 +66917,7 @@ $c_Lio_kaitai_struct_translators_JavaTranslator.prototype.bytesSubscript__Lio_ka
|
|
|
66499
66917
|
return (((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
66500
66918
|
});
|
|
66501
66919
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.doName__T__T = (function(s) {
|
|
66502
|
-
return (($m_Lio_kaitai_struct_format_Identifier$().
|
|
66920
|
+
return (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "_it" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "_buf" : (($m_Lio_kaitai_struct_format_Identifier$().SWITCH$undON$1 === s) ? "on" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "i" : ($m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(s) + "()")))))
|
|
66503
66921
|
});
|
|
66504
66922
|
$c_Lio_kaitai_struct_translators_JavaTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, base) {
|
|
66505
66923
|
return this.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, base)
|
|
@@ -66940,10 +67358,12 @@ function $h_Lio_kaitai_struct_translators_PerlTranslator() {
|
|
|
66940
67358
|
$h_Lio_kaitai_struct_translators_PerlTranslator.prototype = $c_Lio_kaitai_struct_translators_PerlTranslator.prototype;
|
|
66941
67359
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, base) {
|
|
66942
67360
|
var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
|
|
66943
|
-
if ((baseStr === "
|
|
67361
|
+
if ((baseStr === "2")) {
|
|
67362
|
+
return (("oct('0b' . " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
|
|
67363
|
+
} else if ((baseStr === "8")) {
|
|
66944
67364
|
return (("oct(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
|
|
66945
67365
|
} else if ((baseStr === "10")) {
|
|
66946
|
-
return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
67366
|
+
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + " + 0")
|
|
66947
67367
|
} else if ((baseStr === "16")) {
|
|
66948
67368
|
return (("hex(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
|
|
66949
67369
|
} else {
|
|
@@ -66959,9 +67379,19 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_
|
|
|
66959
67379
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
|
|
66960
67380
|
return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, from, to)
|
|
66961
67381
|
});
|
|
67382
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67383
|
+
return this.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67384
|
+
});
|
|
67385
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67386
|
+
return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67387
|
+
});
|
|
66962
67388
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
66963
67389
|
return (("scalar(reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))")
|
|
66964
67390
|
});
|
|
67391
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
67392
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
|
|
67393
|
+
return (("$self->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
|
|
67394
|
+
});
|
|
66965
67395
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
66966
67396
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
66967
67397
|
});
|
|
@@ -66971,12 +67401,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_
|
|
|
66971
67401
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
66972
67402
|
return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
66973
67403
|
});
|
|
66974
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.
|
|
66975
|
-
return (("
|
|
67404
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
67405
|
+
return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", 0, 1))")
|
|
66976
67406
|
});
|
|
66977
67407
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
66978
67408
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
66979
67409
|
});
|
|
67410
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
|
|
67411
|
+
return (("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + "}[-1]")
|
|
67412
|
+
});
|
|
66980
67413
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
66981
67414
|
return this.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
66982
67415
|
});
|
|
@@ -67047,6 +67480,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doIfExp__Lio_kaitai_st
|
|
|
67047
67480
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
|
|
67048
67481
|
return this.asciiCharQuoteMap$3
|
|
67049
67482
|
});
|
|
67483
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
|
|
67484
|
+
return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
|
|
67485
|
+
});
|
|
67050
67486
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T = (function(t, value) {
|
|
67051
67487
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
67052
67488
|
return (function(v$2) {
|
|
@@ -67064,7 +67500,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySubscript__Lio_ka
|
|
|
67064
67500
|
return (((("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + "}[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
|
|
67065
67501
|
});
|
|
67066
67502
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, from, to) {
|
|
67067
|
-
return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + "
|
|
67503
|
+
return (((((((("substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ", (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + ") - (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + "))")
|
|
67504
|
+
});
|
|
67505
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
67506
|
+
return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", -1, 1))")
|
|
67507
|
+
});
|
|
67508
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
67509
|
+
var this$1 = this.importList$3;
|
|
67510
|
+
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
|
|
67511
|
+
return (("List::Util::max(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
|
|
67068
67512
|
});
|
|
67069
67513
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
|
|
67070
67514
|
var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
@@ -67079,12 +67523,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral_
|
|
|
67079
67523
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(v) {
|
|
67080
67524
|
return (("int(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(v)) + ")")
|
|
67081
67525
|
});
|
|
67082
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67083
|
-
return (("length(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")")
|
|
67084
|
-
});
|
|
67085
67526
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doLocalName__T__T = (function(s) {
|
|
67086
67527
|
return (((s === "_") || (s === "_on")) ? ("$" + s) : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? this.doName__T__T(s) : ("$self->" + this.doName__T__T(s))))
|
|
67087
67528
|
});
|
|
67529
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67530
|
+
return (("length(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")")
|
|
67531
|
+
});
|
|
67088
67532
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayLiteral__sc_Seq__O = (function(arr) {
|
|
67089
67533
|
return this.doByteArrayLiteral__sc_Seq__T(arr)
|
|
67090
67534
|
});
|
|
@@ -67098,9 +67542,14 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_s
|
|
|
67098
67542
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67099
67543
|
return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->size()")
|
|
67100
67544
|
});
|
|
67545
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67546
|
+
return this.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67547
|
+
});
|
|
67101
67548
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i, base) {
|
|
67102
67549
|
var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
|
|
67103
|
-
if ((baseStr === "
|
|
67550
|
+
if ((baseStr === "2")) {
|
|
67551
|
+
var format = "%b"
|
|
67552
|
+
} else if ((baseStr === "8")) {
|
|
67104
67553
|
var format = "%o"
|
|
67105
67554
|
} else if ((baseStr === "10")) {
|
|
67106
67555
|
var format = "%d"
|
|
@@ -67112,6 +67561,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_s
|
|
|
67112
67561
|
};
|
|
67113
67562
|
return (((("sprintf('" + format) + "', ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
|
|
67114
67563
|
});
|
|
67564
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
|
|
67565
|
+
return (((("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + ", 1))")
|
|
67566
|
+
});
|
|
67115
67567
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doName__T__T = (function(s) {
|
|
67116
67568
|
return (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "$_" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "$_buf" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "$i" : (s + "()"))))
|
|
67117
67569
|
});
|
|
@@ -67123,12 +67575,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__Lio_kai
|
|
|
67123
67575
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "Encode");
|
|
67124
67576
|
return (((("Encode::decode(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(encoding)) + ", ") + bytesExpr) + ")")
|
|
67125
67577
|
});
|
|
67126
|
-
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
|
|
67127
|
-
return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
|
|
67128
|
-
});
|
|
67129
67578
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O = (function(value, et) {
|
|
67130
67579
|
return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
67131
67580
|
});
|
|
67581
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
|
|
67582
|
+
return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
|
|
67583
|
+
});
|
|
67132
67584
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
67133
67585
|
return this.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
67134
67586
|
});
|
|
@@ -67168,6 +67620,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doStrCompareOp__Lio_ka
|
|
|
67168
67620
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
67169
67621
|
return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
67170
67622
|
});
|
|
67623
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67624
|
+
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67625
|
+
});
|
|
67171
67626
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
|
|
67172
67627
|
return this.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op, right)
|
|
67173
67628
|
});
|
|
@@ -67206,6 +67661,11 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_ka
|
|
|
67206
67661
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
67207
67662
|
return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
67208
67663
|
});
|
|
67664
|
+
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
|
|
67665
|
+
var this$1 = this.importList$3;
|
|
67666
|
+
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
|
|
67667
|
+
return (("List::Util::min(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
|
|
67668
|
+
});
|
|
67209
67669
|
$c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
67210
67670
|
return this.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
67211
67671
|
});
|
|
@@ -67326,6 +67786,9 @@ $c_Lio_kaitai_struct_translators_PythonTranslator.prototype.bytesLast__Lio_kaita
|
|
|
67326
67786
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
|
|
67327
67787
|
return (("(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + ")[::-1]")
|
|
67328
67788
|
});
|
|
67789
|
+
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
67790
|
+
return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
67791
|
+
});
|
|
67329
67792
|
$c_Lio_kaitai_struct_translators_PythonTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
67330
67793
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
67331
67794
|
});
|
|
@@ -67623,6 +68086,10 @@ $c_Lio_kaitai_struct_translators_RubyTranslator.prototype.strReverse__Lio_kaitai
|
|
|
67623
68086
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
67624
68087
|
return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
67625
68088
|
});
|
|
68089
|
+
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
68090
|
+
var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
|
|
68091
|
+
return this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
68092
|
+
});
|
|
67626
68093
|
$c_Lio_kaitai_struct_translators_RubyTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
67627
68094
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
67628
68095
|
});
|
|
@@ -70128,6 +70595,10 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_
|
|
|
70128
70595
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
70129
70596
|
return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
70130
70597
|
});
|
|
70598
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
70599
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
70600
|
+
return (this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id) + "()")
|
|
70601
|
+
});
|
|
70131
70602
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70132
70603
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70133
70604
|
});
|
|
@@ -70355,6 +70826,9 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.doStrCompareOp__Lio_kai
|
|
|
70355
70826
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70356
70827
|
return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70357
70828
|
});
|
|
70829
|
+
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
70830
|
+
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
70831
|
+
});
|
|
70358
70832
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
|
|
70359
70833
|
return (((("std::string(\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\", ") + arr.length__I()) + ")")
|
|
70360
70834
|
});
|
|
@@ -70377,9 +70851,6 @@ $c_Lio_kaitai_struct_translators_CppTranslator.prototype.numericBinOp__Lio_kaita
|
|
|
70377
70851
|
return $f_Lio_kaitai_struct_translators_CommonOps__numericBinOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$operator__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
|
|
70378
70852
|
}
|
|
70379
70853
|
});
|
|
70380
|
-
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
70381
|
-
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
70382
|
-
});
|
|
70383
70854
|
$c_Lio_kaitai_struct_translators_CppTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__O = (function(t, value) {
|
|
70384
70855
|
return this.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T(t, value)
|
|
70385
70856
|
});
|
|
@@ -70442,34 +70913,6 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strToInt__Lio_kaitai_st
|
|
|
70442
70913
|
var add = ((baseStr === "10") ? "" : (", " + baseStr));
|
|
70443
70914
|
return ((("tonumber(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + add) + ")")
|
|
70444
70915
|
});
|
|
70445
|
-
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
|
|
70446
|
-
var f = (function($this) {
|
|
70447
|
-
return (function(n$2) {
|
|
70448
|
-
var n = $uZ(n$2);
|
|
70449
|
-
return (n ? "1" : "0")
|
|
70450
|
-
})
|
|
70451
|
-
})(this);
|
|
70452
|
-
if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
|
|
70453
|
-
var x4 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
|
|
70454
|
-
var l = x4.n$1;
|
|
70455
|
-
if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
|
|
70456
|
-
var x5 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
|
|
70457
|
-
var r = x5.n$1;
|
|
70458
|
-
return ((((f(l) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r))
|
|
70459
|
-
}
|
|
70460
|
-
};
|
|
70461
|
-
if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
|
|
70462
|
-
var x7 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
|
|
70463
|
-
var l$2 = x7.n$1;
|
|
70464
|
-
return ((((f(l$2) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(right))
|
|
70465
|
-
};
|
|
70466
|
-
if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
|
|
70467
|
-
var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
|
|
70468
|
-
var r$3 = x9.n$1;
|
|
70469
|
-
return ((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(left) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r$3))
|
|
70470
|
-
};
|
|
70471
|
-
return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
|
|
70472
|
-
});
|
|
70473
70916
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
|
|
70474
70917
|
return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
|
|
70475
70918
|
});
|
|
@@ -70507,6 +70950,9 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.bytesLast__Lio_kaitai_s
|
|
|
70507
70950
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s) {
|
|
70508
70951
|
return (("string.reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
|
|
70509
70952
|
});
|
|
70953
|
+
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
70954
|
+
return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(id))
|
|
70955
|
+
});
|
|
70510
70956
|
$c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
70511
70957
|
return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
70512
70958
|
});
|
|
@@ -70966,6 +71412,10 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.init___Lio_kaitai_struc
|
|
|
70966
71412
|
this.namespaceRef$3 = ((thiz === "") ? "" : ("\\" + config.phpNamespace$1));
|
|
70967
71413
|
return this
|
|
70968
71414
|
});
|
|
71415
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doInternalName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
71416
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
|
|
71417
|
+
return (("$this->" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "()")
|
|
71418
|
+
});
|
|
70969
71419
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayNonLiteral__sc_Seq__O = (function(elts) {
|
|
70970
71420
|
return this.doByteArrayNonLiteral__sc_Seq__T(elts)
|
|
70971
71421
|
});
|
|
@@ -71140,6 +71590,9 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arraySize__Lio_kaitai_s
|
|
|
71140
71590
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
|
|
71141
71591
|
return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
|
|
71142
71592
|
});
|
|
71593
|
+
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
71594
|
+
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
71595
|
+
});
|
|
71143
71596
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.doByteArrayLiteral__sc_Seq__T = (function(arr) {
|
|
71144
71597
|
return (("\"" + $m_Lio_kaitai_struct_Utils$().hexEscapeByteArray__sc_Seq__T(arr)) + "\"")
|
|
71145
71598
|
});
|
|
@@ -71176,9 +71629,6 @@ $c_Lio_kaitai_struct_translators_PHPTranslator.prototype.numericBinOp__Lio_kaita
|
|
|
71176
71629
|
}
|
|
71177
71630
|
}
|
|
71178
71631
|
});
|
|
71179
|
-
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
|
|
71180
|
-
return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
|
|
71181
|
-
});
|
|
71182
71632
|
$c_Lio_kaitai_struct_translators_PHPTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
|
|
71183
71633
|
return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
|
|
71184
71634
|
});
|
|
@@ -72439,7 +72889,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.newVector__Lio_kaitai_struc
|
|
|
72439
72889
|
}
|
|
72440
72890
|
});
|
|
72441
72891
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
72442
|
-
return ("p_" +
|
|
72892
|
+
return ("p_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
72443
72893
|
});
|
|
72444
72894
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess$lzycompute$1__p2__V = (function() {
|
|
72445
72895
|
if ((this.PrivateAccess$module$2 === null)) {
|
|
@@ -72491,10 +72941,17 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchCasesUsingIf__Lio_kai
|
|
|
72491
72941
|
});
|
|
72492
72942
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
72493
72943
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
72494
|
-
|
|
72495
|
-
var
|
|
72496
|
-
this$1
|
|
72497
|
-
|
|
72944
|
+
var jsx$2 = this.outHdr$2;
|
|
72945
|
+
var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
|
|
72946
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
72947
|
+
jsx$2.puts__T__V((((jsx$1 + " ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "();"));
|
|
72948
|
+
var this$2 = this.outSrc$2;
|
|
72949
|
+
this$2.sb$2.append__T__scm_StringBuilder("\n");
|
|
72950
|
+
var jsx$5 = this.outSrc$2;
|
|
72951
|
+
var jsx$4 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(dataType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), true);
|
|
72952
|
+
var jsx$3 = $m_Lio_kaitai_struct_languages_CppCompiler$().types2class__sci_List__T(className);
|
|
72953
|
+
var this$3 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
72954
|
+
jsx$5.puts__T__V((((((jsx$4 + " ") + jsx$3) + "::") + this$3.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
72498
72955
|
this.outSrc$2.inc__V()
|
|
72499
72956
|
});
|
|
72500
72957
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructMember__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__Lio_kaitai_struct_datatype_NeedRaw__V = (function(id, innerType, isArray, needRaw) {
|
|
@@ -72544,7 +73001,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructVector__T__T__V = (
|
|
|
72544
73001
|
this.outSrc$2.puts__T__V("}")
|
|
72545
73002
|
});
|
|
72546
73003
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
72547
|
-
return ("m_" +
|
|
73004
|
+
return ("m_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
72548
73005
|
});
|
|
72549
73006
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
|
|
72550
73007
|
this.outSrc$2.puts__T__V("{");
|
|
@@ -73018,38 +73475,6 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrInit__Lio_kaitai_struct
|
|
|
73018
73475
|
this.outSrc$2.puts__T__V((((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attr.id__Lio_kaitai_struct_format_Identifier()) + " = ") + this.nullPtr__T()) + ";"))
|
|
73019
73476
|
}
|
|
73020
73477
|
});
|
|
73021
|
-
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
73022
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
73023
|
-
var x2 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
73024
|
-
var inner = x2.innerId$2;
|
|
73025
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
73026
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
73027
|
-
var x3 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
73028
|
-
var inner$2 = x3.innerId$2;
|
|
73029
|
-
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner$2))
|
|
73030
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
73031
|
-
var x5 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
73032
|
-
$m_Lio_kaitai_struct_Utils$();
|
|
73033
|
-
var s = x5.name$2;
|
|
73034
|
-
return s
|
|
73035
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
73036
|
-
var x6 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
73037
|
-
$m_Lio_kaitai_struct_Utils$();
|
|
73038
|
-
var s$1 = x6.name$2;
|
|
73039
|
-
return s$1
|
|
73040
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
73041
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
73042
|
-
var idx = x4.idx$2;
|
|
73043
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
73044
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
73045
|
-
var x7 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
73046
|
-
$m_Lio_kaitai_struct_Utils$();
|
|
73047
|
-
var s$2 = x7.name$2;
|
|
73048
|
-
return s$2
|
|
73049
|
-
} else {
|
|
73050
|
-
throw new $c_s_MatchError().init___O(id)
|
|
73051
|
-
}
|
|
73052
|
-
});
|
|
73053
73478
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.classDestructorHeader__sci_List__Lio_kaitai_struct_datatype_DataType__sci_List__V = (function(name, parentType, topClassName) {
|
|
73054
73479
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$());
|
|
73055
73480
|
this.outHdr$2.puts__T__V("void _clean_up();");
|
|
@@ -73102,13 +73527,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.destructWithSafeguardHeader
|
|
|
73102
73527
|
this.outSrc$2.inc__V()
|
|
73103
73528
|
});
|
|
73104
73529
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
73105
|
-
var lenVar = ("l_" +
|
|
73530
|
+
var lenVar = ("l_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
73106
73531
|
this.outSrc$2.puts__T__V((((("const int " + lenVar) + " = ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
|
|
73107
73532
|
this.outSrc$2.puts__T__V((("for (int i = 0; i < " + lenVar) + "; i++) {"));
|
|
73108
73533
|
this.outSrc$2.inc__V()
|
|
73109
73534
|
});
|
|
73110
73535
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
73111
|
-
return ("_t_" +
|
|
73536
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
73112
73537
|
});
|
|
73113
73538
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$ = (function() {
|
|
73114
73539
|
if ((this.PrivateAccess$module$2 === null)) {
|
|
@@ -73725,7 +74150,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
73725
74150
|
var jsx$1 = b.result__O()
|
|
73726
74151
|
};
|
|
73727
74152
|
var procClass = $as_sc_TraversableOnce(jsx$1).mkString__T__T("::");
|
|
73728
|
-
var procName$2 = ("_process_" +
|
|
74153
|
+
var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
73729
74154
|
this.importListSrc$2.addLocal__T__V(this.outFileNameHeader__T__T($as_T($f_sc_LinearSeqOptimized__last__O(name))));
|
|
73730
74155
|
var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2$1) {
|
|
73731
74156
|
return (function(e$2) {
|
|
@@ -73748,7 +74173,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
73748
74173
|
$f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__handleAssignment__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_format_RepeatSpec__Z__V(this, varDest, expr$2, rep, false)
|
|
73749
74174
|
});
|
|
73750
74175
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
|
|
73751
|
-
return ("f_" +
|
|
74176
|
+
return ("f_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
|
|
73752
74177
|
});
|
|
73753
74178
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.translator__Lio_kaitai_struct_translators_BaseTranslator = (function() {
|
|
73754
74179
|
return this.translator$2
|
|
@@ -73789,7 +74214,7 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.allocateIO__Lio_kaitai_stru
|
|
|
73789
74214
|
var ioName = (this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(ioId) + ".get()")
|
|
73790
74215
|
}
|
|
73791
74216
|
} else {
|
|
73792
|
-
var localIO = ("io_" +
|
|
74217
|
+
var localIO = ("io_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
73793
74218
|
this.outSrc$2.puts__T__V((((("kaitai::kstream* " + localIO) + " = ") + newStreamRaw) + ";"));
|
|
73794
74219
|
var x$9 = this.config$1.cppConfig$1.pointers$1;
|
|
73795
74220
|
var x$10 = $m_Lio_kaitai_struct_CppRuntimeConfig$UniqueAndRawPointers$();
|
|
@@ -73806,7 +74231,10 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.declareNullFlag__Lio_kaitai
|
|
|
73806
74231
|
if (isNullable) {
|
|
73807
74232
|
this.outHdr$2.puts__T__V((("bool " + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
|
|
73808
74233
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
73809
|
-
|
|
74234
|
+
var jsx$2 = this.outHdr$2;
|
|
74235
|
+
var jsx$1 = $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName);
|
|
74236
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
74237
|
+
jsx$2.puts__T__V((((((("bool _is_null_" + jsx$1) + "() { ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "(); return ") + this.nullFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; };"));
|
|
73810
74238
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PrivateAccess__Lio_kaitai_struct_languages_CppCompiler$PrivateAccess$())
|
|
73811
74239
|
}
|
|
73812
74240
|
});
|
|
@@ -73888,10 +74316,13 @@ $c_Lio_kaitai_struct_languages_CppCompiler.prototype.fileHeader__T__V = (functio
|
|
|
73888
74316
|
});
|
|
73889
74317
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
73890
74318
|
this.ensureMode__Lio_kaitai_struct_languages_CppCompiler$AccessMode__V(this.PublicAccess__Lio_kaitai_struct_languages_CppCompiler$PublicAccess$());
|
|
73891
|
-
|
|
74319
|
+
var jsx$2 = this.outHdr$2;
|
|
74320
|
+
var jsx$1 = this.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType.asNonOwning__Lio_kaitai_struct_datatype_DataType(), false);
|
|
74321
|
+
var this$1 = $m_Lio_kaitai_struct_languages_CppCompiler$();
|
|
74322
|
+
jsx$2.puts__T__V((((((jsx$1 + " ") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() const { return ") + this.nonOwningPointer__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T(attrName, attrType)) + "; }"))
|
|
73892
74323
|
});
|
|
73893
74324
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.nullFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(ksName) {
|
|
73894
|
-
return ("n_" +
|
|
74325
|
+
return ("n_" + $m_Lio_kaitai_struct_languages_CppCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(ksName))
|
|
73895
74326
|
});
|
|
73896
74327
|
$c_Lio_kaitai_struct_languages_CppCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
73897
74328
|
this.outSrc$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
|
|
@@ -74413,7 +74844,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.switchEnd__V = (function() {
|
|
|
74413
74844
|
});
|
|
74414
74845
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
74415
74846
|
this.out$2.puts__T__V((this.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T(attrName) + " bool"));
|
|
74416
|
-
this.out$2.puts__T__V(((
|
|
74847
|
+
this.out$2.puts__T__V((($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)))
|
|
74417
74848
|
});
|
|
74418
74849
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
|
|
74419
74850
|
this.out$2.puts__T__V("for i := 1;; i++ {");
|
|
@@ -74454,12 +74885,12 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParseHybrid__F0__F0__V =
|
|
|
74454
74885
|
this.out$2.puts__T__V("}")
|
|
74455
74886
|
});
|
|
74456
74887
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
74457
|
-
this.out$2.puts__T__V((((((("func (this *" + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T(className)) + ") ") +
|
|
74888
|
+
this.out$2.puts__T__V((((((("func (this *" + $m_Lio_kaitai_struct_languages_GoCompiler$().types2class__sci_List__T(className)) + ") ") + $m_Lio_kaitai_struct_languages_GoCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "() (v ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType)) + ", err error) {"));
|
|
74458
74889
|
this.out$2.inc__V();
|
|
74459
74890
|
this.translator$2.returnRes$2 = new $c_s_Some().init___O(((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) ? "0" : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) ? "false" : ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$StrType) ? "\"\"" : "nil"))))
|
|
74460
74891
|
});
|
|
74461
74892
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
74462
|
-
return ("this." +
|
|
74893
|
+
return ("this." + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
74463
74894
|
});
|
|
74464
74895
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
74465
74896
|
var this$1 = this.importList$2;
|
|
@@ -74531,6 +74962,13 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrValidateExpr__Lio_kaitai
|
|
|
74531
74962
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatEosFooter__V = (function() {
|
|
74532
74963
|
this.universalFooter__V()
|
|
74533
74964
|
});
|
|
74965
|
+
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeHeader__V = (function() {
|
|
74966
|
+
this.out$2.puts__T__V("{");
|
|
74967
|
+
this.out$2.inc__V()
|
|
74968
|
+
});
|
|
74969
|
+
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.blockScopeFooter__V = (function() {
|
|
74970
|
+
this.universalFooter__V()
|
|
74971
|
+
});
|
|
74534
74972
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.pushPos__T__V = (function(io) {
|
|
74535
74973
|
this.out$2.puts__T__V((("_pos, err := " + io) + ".Pos()"));
|
|
74536
74974
|
this.translator$2.outAddErrCheck__V()
|
|
@@ -74584,9 +75022,10 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classConstructorHeader__sci_
|
|
|
74584
75022
|
var arg1$3 = these$1.head__O();
|
|
74585
75023
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
74586
75024
|
var jsx$3 = this.out$2;
|
|
74587
|
-
var jsx$2 = this.idToStr__Lio_kaitai_struct_format_Identifier__T(p$3.id$1);
|
|
74588
75025
|
var id$1 = p$3.id$1;
|
|
74589
|
-
jsx$
|
|
75026
|
+
var jsx$2 = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1);
|
|
75027
|
+
var id$2 = p$3.id$1;
|
|
75028
|
+
jsx$3.puts__T__V((((jsx$2 + ": ") + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(id$2.humanReadable__T())) + ","));
|
|
74590
75029
|
var this$4 = these$1;
|
|
74591
75030
|
these$1 = this$4.tail__sci_List()
|
|
74592
75031
|
};
|
|
@@ -74675,36 +75114,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrParse2$default$7__s_Opti
|
|
|
74675
75114
|
return $m_s_None$()
|
|
74676
75115
|
});
|
|
74677
75116
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
74678
|
-
$
|
|
74679
|
-
});
|
|
74680
|
-
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
74681
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
74682
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
74683
|
-
var name = x2.name$2;
|
|
74684
|
-
return name
|
|
74685
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
74686
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
74687
|
-
var name$2 = x3.name$2;
|
|
74688
|
-
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
74689
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
74690
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
74691
|
-
var idx = x4.idx$2;
|
|
74692
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
74693
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
74694
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
74695
|
-
var name$3 = x5.name$2;
|
|
74696
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
74697
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
74698
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
74699
|
-
var innerId = x6.innerId$2;
|
|
74700
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
74701
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_IoStorageIdentifier)) {
|
|
74702
|
-
var x7 = $as_Lio_kaitai_struct_format_IoStorageIdentifier(id);
|
|
74703
|
-
var innerId$2 = x7.innerId$2;
|
|
74704
|
-
return ("_io_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId$2))
|
|
74705
|
-
} else {
|
|
74706
|
-
throw new $c_s_MatchError().init___O(id)
|
|
74707
|
-
}
|
|
75117
|
+
this.out$2.puts__T__V(((id + " := ") + expr))
|
|
74708
75118
|
});
|
|
74709
75119
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
74710
75120
|
this.out$2.puts__T__V((("for i := 0; i < int(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "); i++ {"));
|
|
@@ -74737,7 +75147,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.type2class__T__T = (function
|
|
|
74737
75147
|
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
74738
75148
|
});
|
|
74739
75149
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
74740
|
-
this.out$2.puts__T__V(((
|
|
75150
|
+
this.out$2.puts__T__V((($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName) + " ") + $m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(attrType)));
|
|
74741
75151
|
this.translator$2.returnRes$2 = $m_s_None$()
|
|
74742
75152
|
});
|
|
74743
75153
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
|
|
@@ -74777,7 +75187,11 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.readHeader__s_Option__Z__V =
|
|
|
74777
75187
|
var p5 = $as_Lio_kaitai_struct_datatype_Endianness(x2.value$2);
|
|
74778
75188
|
var x$3 = $m_Lio_kaitai_struct_datatype_InheritedEndian$();
|
|
74779
75189
|
if ((x$3 === p5)) {
|
|
74780
|
-
|
|
75190
|
+
var jsx$6 = this.out$2;
|
|
75191
|
+
var jsx$5 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_EndianIdentifier$());
|
|
75192
|
+
var jsx$4 = this.privateMemberName__Lio_kaitai_struct_format_Identifier__T($m_Lio_kaitai_struct_format_ParentIdentifier$());
|
|
75193
|
+
var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
|
|
75194
|
+
jsx$6.puts__T__V((((((jsx$5 + " = ") + jsx$4) + ".") + "") + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)));
|
|
74781
75195
|
break matchEnd10
|
|
74782
75196
|
}
|
|
74783
75197
|
}
|
|
@@ -74922,7 +75336,9 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.classFooter__sci_List__V = (
|
|
|
74922
75336
|
var jsx$1 = false
|
|
74923
75337
|
};
|
|
74924
75338
|
if (jsx$1) {
|
|
74925
|
-
this.out$2
|
|
75339
|
+
var jsx$2 = this.out$2;
|
|
75340
|
+
var id = $m_Lio_kaitai_struct_format_EndianIdentifier$();
|
|
75341
|
+
jsx$2.puts__T__V(($m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id) + " int"))
|
|
74926
75342
|
};
|
|
74927
75343
|
this.universalFooter__V()
|
|
74928
75344
|
});
|
|
@@ -74952,40 +75368,6 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.attrDebugEnd__Lio_kaitai_str
|
|
|
74952
75368
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.castToType__p2__Lio_kaitai_struct_translators_TranslatorResult__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_translators_TranslatorResult = (function(r, dataType) {
|
|
74953
75369
|
return (((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntMultiType) || (dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$FloatMultiType)) ? new $c_Lio_kaitai_struct_translators_ResultString().init___T(((($m_Lio_kaitai_struct_languages_GoCompiler$().kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T(dataType) + "(") + this.translator$2.resToStr__Lio_kaitai_struct_translators_TranslatorResult__T(r)) + ")")) : r)
|
|
74954
75370
|
});
|
|
74955
|
-
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
74956
|
-
var x = $m_Lio_kaitai_struct_format_IoIdentifier$();
|
|
74957
|
-
if (x.equals__O__Z(id)) {
|
|
74958
|
-
return "_IO"
|
|
74959
|
-
} else {
|
|
74960
|
-
var x$3 = $m_Lio_kaitai_struct_format_RootIdentifier$();
|
|
74961
|
-
if (x$3.equals__O__Z(id)) {
|
|
74962
|
-
return "_Root"
|
|
74963
|
-
} else {
|
|
74964
|
-
var x$5 = $m_Lio_kaitai_struct_format_ParentIdentifier$();
|
|
74965
|
-
if (x$5.equals__O__Z(id)) {
|
|
74966
|
-
return "_Parent"
|
|
74967
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
74968
|
-
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
74969
|
-
var name = x2.name$2;
|
|
74970
|
-
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
74971
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
74972
|
-
var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
74973
|
-
var idx = x3.idx$2;
|
|
74974
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
74975
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
74976
|
-
var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
74977
|
-
var name$2 = x4.name$2;
|
|
74978
|
-
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
74979
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
74980
|
-
var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
74981
|
-
var innerId = x5.innerId$2;
|
|
74982
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
74983
|
-
} else {
|
|
74984
|
-
throw new $c_s_MatchError().init___O(id)
|
|
74985
|
-
}
|
|
74986
|
-
}
|
|
74987
|
-
}
|
|
74988
|
-
});
|
|
74989
75371
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.condIfFooter__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(expr) {
|
|
74990
75372
|
this.universalFooter__V()
|
|
74991
75373
|
});
|
|
@@ -75089,7 +75471,7 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.handleAssignmentRepeatEos__L
|
|
|
75089
75471
|
this.out$2.puts__T__V((((((name + " = append(") + name) + ", ") + expr) + ")"))
|
|
75090
75472
|
});
|
|
75091
75473
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.calculatedFlagForName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75092
|
-
return ("_f_" +
|
|
75474
|
+
return ("_f_" + $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75093
75475
|
});
|
|
75094
75476
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.translator__Lio_kaitai_struct_translators_AbstractTranslator = (function() {
|
|
75095
75477
|
return this.translator$2
|
|
@@ -75173,7 +75555,8 @@ $c_Lio_kaitai_struct_languages_GoCompiler.prototype.instanceCalculate__Lio_kaita
|
|
|
75173
75555
|
});
|
|
75174
75556
|
$c_Lio_kaitai_struct_languages_GoCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
75175
75557
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
75176
|
-
var
|
|
75558
|
+
var id = new $c_Lio_kaitai_struct_format_IoStorageIdentifier().init___Lio_kaitai_struct_format_Identifier(varName);
|
|
75559
|
+
var ioName = $m_Lio_kaitai_struct_languages_GoCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id);
|
|
75177
75560
|
var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.specialName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep));
|
|
75178
75561
|
var this$1 = this.importList$2;
|
|
75179
75562
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "bytes");
|
|
@@ -75293,7 +75676,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.condRepeatCommonInit
|
|
|
75293
75676
|
};
|
|
75294
75677
|
this.out$2.puts__T__V((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + " = [];"));
|
|
75295
75678
|
if (this.config$1.readStoresPos$1) {
|
|
75296
|
-
this.out$2.puts__T__V((("this._debug." +
|
|
75679
|
+
this.out$2.puts__T__V((("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + ".arr = [];"))
|
|
75297
75680
|
}
|
|
75298
75681
|
});
|
|
75299
75682
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParseHybrid__F0__F0__V = (function(leProc, beProc) {
|
|
@@ -75311,15 +75694,17 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchCasesUsingIf__
|
|
|
75311
75694
|
$f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V(this, id, on, onType, cases, normalCaseProc, elseCaseProc)
|
|
75312
75695
|
});
|
|
75313
75696
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
75314
|
-
var jsx$
|
|
75697
|
+
var jsx$2 = this.out$2;
|
|
75315
75698
|
var name = $as_T($f_sc_LinearSeqOptimized__last__O(className));
|
|
75316
|
-
jsx$1
|
|
75699
|
+
var jsx$1 = $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name);
|
|
75700
|
+
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
75701
|
+
jsx$2.puts__T__V((((("Object.defineProperty(" + jsx$1) + ".prototype, '") + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', {"));
|
|
75317
75702
|
this.out$2.inc__V();
|
|
75318
75703
|
this.out$2.puts__T__V("get: function() {");
|
|
75319
75704
|
this.out$2.inc__V()
|
|
75320
75705
|
});
|
|
75321
75706
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75322
|
-
return ("this." +
|
|
75707
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75323
75708
|
});
|
|
75324
75709
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
|
|
75325
75710
|
this.out$2.puts__T__V("{");
|
|
@@ -75397,7 +75782,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
|
|
|
75397
75782
|
return (function(p$2) {
|
|
75398
75783
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
75399
75784
|
var id = p.id$1;
|
|
75400
|
-
return $
|
|
75785
|
+
return $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
75401
75786
|
})
|
|
75402
75787
|
})(this);
|
|
75403
75788
|
var this$1 = $m_sci_List$();
|
|
@@ -75448,7 +75833,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.classConstructorHead
|
|
|
75448
75833
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
75449
75834
|
var jsx$4 = p$3.id$1;
|
|
75450
75835
|
var id$1 = p$3.id$1;
|
|
75451
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$4,
|
|
75836
|
+
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$4, $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
|
|
75452
75837
|
var this$4 = these$1;
|
|
75453
75838
|
these$1 = this$4.tail__sci_List()
|
|
75454
75839
|
};
|
|
@@ -75763,37 +76148,12 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrParse2$default$7
|
|
|
75763
76148
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
75764
76149
|
this.out$2.puts__T__V((((("var " + id) + " = ") + expr) + ";"))
|
|
75765
76150
|
});
|
|
75766
|
-
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75767
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
75768
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
75769
|
-
var name = x2.name$2;
|
|
75770
|
-
return name
|
|
75771
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
75772
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
75773
|
-
var name$2 = x3.name$2;
|
|
75774
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
75775
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
75776
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
75777
|
-
var idx = x4.idx$2;
|
|
75778
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
75779
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
75780
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
75781
|
-
var name$3 = x5.name$2;
|
|
75782
|
-
return ("_m_" + $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3))
|
|
75783
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
75784
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
75785
|
-
var innerId = x6.innerId$2;
|
|
75786
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
75787
|
-
} else {
|
|
75788
|
-
throw new $c_s_MatchError().init___O(id)
|
|
75789
|
-
}
|
|
75790
|
-
});
|
|
75791
76151
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
75792
76152
|
this.out$2.puts__T__V((("for (var i = 0; i < " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "; i++) {"));
|
|
75793
76153
|
this.out$2.inc__V()
|
|
75794
76154
|
});
|
|
75795
76155
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
75796
|
-
return ("_t_" +
|
|
76156
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
75797
76157
|
});
|
|
75798
76158
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
75799
76159
|
this.out$2.puts__T__V((io + ".alignToByte();"))
|
|
@@ -76009,19 +76369,6 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugEnd__Lio_ka
|
|
|
76009
76369
|
var debugName = this.attrDebugName__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__Z__T(attrId, rep, true);
|
|
76010
76370
|
this.out$2.puts__T__V((((debugName + ".end = ") + io) + ".pos;"))
|
|
76011
76371
|
});
|
|
76012
|
-
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76013
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
76014
|
-
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
76015
|
-
var name = x2.name$2;
|
|
76016
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name)
|
|
76017
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
76018
|
-
var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
76019
|
-
var name$2 = x3.name$2;
|
|
76020
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
76021
|
-
} else {
|
|
76022
|
-
throw new $c_s_MatchError().init___O(id)
|
|
76023
|
-
}
|
|
76024
|
-
});
|
|
76025
76372
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
76026
76373
|
if ((padRight instanceof $c_s_Some)) {
|
|
76027
76374
|
var x2 = $as_s_Some(padRight);
|
|
@@ -76209,7 +76556,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.attrDebugName__Lio_k
|
|
|
76209
76556
|
};
|
|
76210
76557
|
var arrIndexExpr = ((((".arr[" + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrId)) + ".length") + (end ? " - 1" : "")) + "]")
|
|
76211
76558
|
};
|
|
76212
|
-
return (("this._debug." +
|
|
76559
|
+
return (("this._debug." + $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId)) + arrIndexExpr)
|
|
76213
76560
|
});
|
|
76214
76561
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(instName, dataType, value) {
|
|
76215
76562
|
$f_Lio_kaitai_struct_languages_components_EveryReadIsExpression__instanceCalculate__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V(this, instName, dataType, value)
|
|
@@ -76218,7 +76565,7 @@ $c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.outHeader__Lio_kaita
|
|
|
76218
76565
|
return this.outHeader$2
|
|
76219
76566
|
});
|
|
76220
76567
|
$c_Lio_kaitai_struct_languages_JavaScriptCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
76221
|
-
var langName =
|
|
76568
|
+
var langName = $m_Lio_kaitai_struct_languages_JavaScriptCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
76222
76569
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
76223
76570
|
var ioName = ("_io_" + langName);
|
|
76224
76571
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
|
|
@@ -76321,7 +76668,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condRepeatEosHeader__Lio_ka
|
|
|
76321
76668
|
this.out$2.inc__V()
|
|
76322
76669
|
});
|
|
76323
76670
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.paramName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76324
|
-
return ("$" +
|
|
76671
|
+
return ("$" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76325
76672
|
});
|
|
76326
76673
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.kaitaiType2NativeType__Lio_kaitai_struct_datatype_DataType__T = (function(attrType) {
|
|
76327
76674
|
if ((attrType instanceof $c_Lio_kaitai_struct_datatype_DataType$IntType)) {
|
|
@@ -76402,7 +76749,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParseHybrid__F0__F0__V
|
|
|
76402
76749
|
this.out$2.puts__T__V("}")
|
|
76403
76750
|
});
|
|
76404
76751
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
76405
|
-
this.out$2.puts__T__V((("public function " +
|
|
76752
|
+
this.out$2.puts__T__V((("public function " + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
76406
76753
|
this.out$2.inc__V()
|
|
76407
76754
|
});
|
|
76408
76755
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
@@ -76418,7 +76765,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.privateMemberName__Lio_kait
|
|
|
76418
76765
|
if (x$5.equals__O__Z(id)) {
|
|
76419
76766
|
return "$this->_parent"
|
|
76420
76767
|
} else {
|
|
76421
|
-
return ("$this->_m_" +
|
|
76768
|
+
return ("$this->_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76422
76769
|
}
|
|
76423
76770
|
}
|
|
76424
76771
|
}
|
|
@@ -76688,31 +77035,6 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attrParse2$default$7__s_Opt
|
|
|
76688
77035
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
76689
77036
|
this.out$2.puts__T__V((((id + " = ") + expr) + ";"))
|
|
76690
77037
|
});
|
|
76691
|
-
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76692
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
76693
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
76694
|
-
var name = x2.name$2;
|
|
76695
|
-
return name
|
|
76696
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
76697
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
76698
|
-
var name$2 = x3.name$2;
|
|
76699
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
76700
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
76701
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
76702
|
-
var idx = x4.idx$2;
|
|
76703
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
76704
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
76705
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
76706
|
-
var name$3 = x5.name$2;
|
|
76707
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
76708
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
76709
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
76710
|
-
var innerId = x6.innerId$2;
|
|
76711
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
76712
|
-
} else {
|
|
76713
|
-
throw new $c_s_MatchError().init___O(id)
|
|
76714
|
-
}
|
|
76715
|
-
});
|
|
76716
77038
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
76717
77039
|
this.out$2.puts__T__V((("$n = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
|
|
76718
77040
|
this.out$2.puts__T__V("for ($i = 0; $i < $n; $i++) {");
|
|
@@ -76722,7 +77044,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.alignToByte__T__V = (functi
|
|
|
76722
77044
|
this.out$2.puts__T__V((io + "->alignToByte();"))
|
|
76723
77045
|
});
|
|
76724
77046
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
76725
|
-
return ("$_t_" +
|
|
77047
|
+
return ("$_t_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
76726
77048
|
});
|
|
76727
77049
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
76728
77050
|
return this.out$2
|
|
@@ -76753,7 +77075,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeDeclaration__Lio_k
|
|
|
76753
77075
|
}
|
|
76754
77076
|
};
|
|
76755
77077
|
if ((!jsx$1)) {
|
|
76756
|
-
this.out$2.puts__T__V((("protected $_m_" +
|
|
77078
|
+
this.out$2.puts__T__V((("protected $_m_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
|
|
76757
77079
|
}
|
|
76758
77080
|
});
|
|
76759
77081
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.io$kaitai$struct$languages$components$SingleOutputFile$$undsetter$und$out$und$eq__Lio_kaitai_struct_StringLanguageOutputWriter__V = (function(x$1) {
|
|
@@ -77081,7 +77403,7 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.instanceCalculate__Lio_kait
|
|
|
77081
77403
|
});
|
|
77082
77404
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
77083
77405
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
77084
|
-
var ioName = ("$_io_" +
|
|
77406
|
+
var ioName = ("$_io_" + $m_Lio_kaitai_struct_languages_PHPCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77085
77407
|
var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doLocalName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep));
|
|
77086
77408
|
this.out$2.puts__T__V((((ioName + " = new \\Kaitai\\Struct\\Stream(") + args) + ");"));
|
|
77087
77409
|
return ioName
|
|
@@ -77095,7 +77417,9 @@ $c_Lio_kaitai_struct_languages_PHPCompiler.prototype.attributeReader__Lio_kaitai
|
|
|
77095
77417
|
var jsx$1 = x$3.equals__O__Z(attrName)
|
|
77096
77418
|
};
|
|
77097
77419
|
if ((!jsx$1)) {
|
|
77098
|
-
|
|
77420
|
+
var jsx$2 = this.out$2;
|
|
77421
|
+
var this$1 = $m_Lio_kaitai_struct_languages_PHPCompiler$();
|
|
77422
|
+
jsx$2.puts__T__V((((("public function " + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
|
|
77099
77423
|
}
|
|
77100
77424
|
});
|
|
77101
77425
|
$c_Lio_kaitai_struct_languages_PHPCompiler.prototype.fileHeader__T__V = (function(topClassName) {
|
|
@@ -77192,7 +77516,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.switchIfStart__Lio_kaitai_
|
|
|
77192
77516
|
this.out$2.puts__T__V((("my $_on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)) + ";"))
|
|
77193
77517
|
});
|
|
77194
77518
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
77195
|
-
return (("$self->{" +
|
|
77519
|
+
return (("$self->{" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "}")
|
|
77196
77520
|
});
|
|
77197
77521
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
77198
77522
|
this.out$2.puts__T__V((((io + "->seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ");"))
|
|
@@ -77359,32 +77683,8 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.handleAssignmentTempVar__L
|
|
|
77359
77683
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attrParse2$default$7__s_Option = (function() {
|
|
77360
77684
|
return $m_s_None$()
|
|
77361
77685
|
});
|
|
77362
|
-
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
77363
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
77364
|
-
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
77365
|
-
var name = x2.name$2;
|
|
77366
|
-
return name
|
|
77367
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
77368
|
-
var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
77369
|
-
var idx = x3.idx$2;
|
|
77370
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
77371
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
77372
|
-
var x6 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
77373
|
-
return x6.name$2
|
|
77374
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
77375
|
-
var x4 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
77376
|
-
var inner = x4.innerId$2;
|
|
77377
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
77378
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
77379
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
77380
|
-
var name$2 = x5.name$2;
|
|
77381
|
-
return name$2
|
|
77382
|
-
} else {
|
|
77383
|
-
throw new $c_s_MatchError().init___O(id)
|
|
77384
|
-
}
|
|
77385
|
-
});
|
|
77386
77686
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
77387
|
-
var nVar = ("$n_" +
|
|
77687
|
+
var nVar = ("$n_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77388
77688
|
this.out$2.puts__T__V((((("my " + nVar) + " = ") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ";"));
|
|
77389
77689
|
this.out$2.puts__T__V((("for (my $i = 0; $i < " + nVar) + "; $i++) {"));
|
|
77390
77690
|
this.out$2.inc__V()
|
|
@@ -77393,7 +77693,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.alignToByte__T__V = (funct
|
|
|
77393
77693
|
this.out$2.puts__T__V((io + "->align_to_byte();"))
|
|
77394
77694
|
});
|
|
77395
77695
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
77396
|
-
return ("$_t_" +
|
|
77696
|
+
return ("$_t_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
77397
77697
|
});
|
|
77398
77698
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
77399
77699
|
return this.out$2
|
|
@@ -77706,7 +78006,7 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.instanceCalculate__Lio_kai
|
|
|
77706
78006
|
$c_Lio_kaitai_struct_languages_PerlCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
77707
78007
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
77708
78008
|
var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep));
|
|
77709
|
-
var ioName = ("$io_" +
|
|
78009
|
+
var ioName = ("$io_" + $m_Lio_kaitai_struct_languages_PerlCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
77710
78010
|
this.out$2.puts__T__V((((((("my " + ioName) + " = ") + $m_Lio_kaitai_struct_languages_PerlCompiler$().kstreamName__T()) + "->new(") + args) + ");"));
|
|
77711
78011
|
return ioName
|
|
77712
78012
|
});
|
|
@@ -77733,7 +78033,9 @@ $c_Lio_kaitai_struct_languages_PerlCompiler.prototype.attributeReader__Lio_kaita
|
|
|
77733
78033
|
if ((!jsx$1)) {
|
|
77734
78034
|
var this$1 = this.out$2;
|
|
77735
78035
|
this$1.sb$2.append__T__scm_StringBuilder("\n");
|
|
77736
|
-
|
|
78036
|
+
var jsx$2 = this.out$2;
|
|
78037
|
+
var this$2 = $m_Lio_kaitai_struct_languages_PerlCompiler$();
|
|
78038
|
+
jsx$2.puts__T__V((("sub " + this$2.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + " {"));
|
|
77737
78039
|
this.out$2.inc__V();
|
|
77738
78040
|
this.out$2.puts__T__V("my ($self) = @_;");
|
|
77739
78041
|
this.out$2.puts__T__V((("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"));
|
|
@@ -78760,7 +79062,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.switchEnd__V = (function
|
|
|
78760
79062
|
this.out$2.puts__T__V("}")
|
|
78761
79063
|
});
|
|
78762
79064
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
78763
|
-
this.out$2.puts__T__V(((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, isNullable)) + " ") +
|
|
79065
|
+
this.out$2.puts__T__V(((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(dataType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
|
|
78764
79066
|
this.out$2.puts__T__V("{");
|
|
78765
79067
|
this.out$2.inc__V();
|
|
78766
79068
|
this.out$2.puts__T__V("get");
|
|
@@ -79321,33 +79623,6 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attributeDoc__Lio_kaitai
|
|
|
79321
79623
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
|
|
79322
79624
|
/*<skip>*/
|
|
79323
79625
|
});
|
|
79324
|
-
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
79325
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
79326
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
79327
|
-
var name = x2.name$2;
|
|
79328
|
-
return ("M" + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name))
|
|
79329
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
79330
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
79331
|
-
var name$2 = x3.name$2;
|
|
79332
|
-
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$2)
|
|
79333
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
79334
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
79335
|
-
var idx = x4.idx$2;
|
|
79336
|
-
var x = $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1;
|
|
79337
|
-
var this$2 = new $c_sci_StringOps().init___T(x);
|
|
79338
|
-
return (($f_sci_StringLike__capitalize__T(this$2) + "_") + idx)
|
|
79339
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
79340
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
79341
|
-
var name$3 = x5.name$2;
|
|
79342
|
-
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$3)
|
|
79343
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
79344
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
79345
|
-
var innerId = x6.innerId$2;
|
|
79346
|
-
return ("M_Raw" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
79347
|
-
} else {
|
|
79348
|
-
throw new $c_s_MatchError().init___O(id)
|
|
79349
|
-
}
|
|
79350
|
-
});
|
|
79351
79626
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
79352
79627
|
if ((padRight instanceof $c_s_Some)) {
|
|
79353
79628
|
var x2 = $as_s_Some(padRight);
|
|
@@ -79614,7 +79889,7 @@ $c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.fileHeader__T__V = (func
|
|
|
79614
79889
|
this.out$2.inc__V()
|
|
79615
79890
|
});
|
|
79616
79891
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
79617
|
-
this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") +
|
|
79892
|
+
this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_CSharpCompiler$().kaitaiType2NativeTypeNullable__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_CSharpCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + " { get { return ") + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; } }"))
|
|
79618
79893
|
});
|
|
79619
79894
|
$c_Lio_kaitai_struct_languages_CSharpCompiler.prototype.instanceClear__Lio_kaitai_struct_format_InstanceIdentifier__V = (function(instName) {
|
|
79620
79895
|
this.out$2.puts__T__V((this.flagForInstName__Lio_kaitai_struct_format_Identifier__T(instName) + " = false;"))
|
|
@@ -79665,8 +79940,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatUntilFooter__Lio_
|
|
|
79665
79940
|
this.out$2.puts__T__V("end");
|
|
79666
79941
|
this.out$2.puts__T__V("i = i + 1");
|
|
79667
79942
|
this.out$2.dec__V();
|
|
79668
|
-
this.out$2.puts__T__V("end")
|
|
79669
|
-
this.out$2.dec__V()
|
|
79943
|
+
this.out$2.puts__T__V("end")
|
|
79670
79944
|
});
|
|
79671
79945
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchEnd__V = (function() {
|
|
79672
79946
|
/*<skip>*/
|
|
@@ -79707,12 +79981,12 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCasesUsingIf__Lio_kai
|
|
|
79707
79981
|
$f_Lio_kaitai_struct_languages_components_SwitchIfOps__switchCasesUsingIf__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__sci_Map__F1__F1__V(this, id, on, onType, cases, normalCaseProc, elseCaseProc)
|
|
79708
79982
|
});
|
|
79709
79983
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceHeader__sci_List__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
79710
|
-
this.out$2.puts__T__V(((($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className) + ".property.") +
|
|
79711
|
-
this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") +
|
|
79984
|
+
this.out$2.puts__T__V(((($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className) + ".property.") + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + " = {}"));
|
|
79985
|
+
this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(className)) + ".property.") + $m_Lio_kaitai_struct_languages_LuaCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + ":get()"));
|
|
79712
79986
|
this.out$2.inc__V()
|
|
79713
79987
|
});
|
|
79714
79988
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
79715
|
-
return ("self." +
|
|
79989
|
+
return ("self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
79716
79990
|
});
|
|
79717
79991
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
|
|
79718
79992
|
this.out$2.puts__T__V(("local _on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)))
|
|
@@ -79799,7 +80073,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
|
|
|
79799
80073
|
return (function(p$2) {
|
|
79800
80074
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
79801
80075
|
var id = p.id$1;
|
|
79802
|
-
return $
|
|
80076
|
+
return $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
79803
80077
|
})
|
|
79804
80078
|
})(this);
|
|
79805
80079
|
var this$1 = $m_sci_List$();
|
|
@@ -79848,7 +80122,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorHeader__sci
|
|
|
79848
80122
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
79849
80123
|
var jsx$3 = p$3.id$1;
|
|
79850
80124
|
var id$1 = p$3.id$1;
|
|
79851
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
80125
|
+
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
|
|
79852
80126
|
var this$4 = these$1;
|
|
79853
80127
|
these$1 = this$4.tail__sci_List()
|
|
79854
80128
|
}
|
|
@@ -79883,7 +80157,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.parseExpr__Lio_kaitai_struc
|
|
|
79883
80157
|
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType1)) {
|
|
79884
80158
|
var x4 = $as_Lio_kaitai_struct_datatype_DataType$BitsType1(dataType);
|
|
79885
80159
|
var bitEndian = x4.bitEndian$2;
|
|
79886
|
-
return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1)")
|
|
80160
|
+
return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1) ~= 0")
|
|
79887
80161
|
} else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType)) {
|
|
79888
80162
|
var x5 = $as_Lio_kaitai_struct_datatype_DataType$BitsType(dataType);
|
|
79889
80163
|
var width = x5.width$3;
|
|
@@ -79974,32 +80248,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrParse2$default$7__s_Opt
|
|
|
79974
80248
|
return $m_s_None$()
|
|
79975
80249
|
});
|
|
79976
80250
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
79977
|
-
$
|
|
79978
|
-
});
|
|
79979
|
-
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
79980
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
79981
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
79982
|
-
var name = x2.name$2;
|
|
79983
|
-
return name
|
|
79984
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
79985
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
79986
|
-
var name$2 = x3.name$2;
|
|
79987
|
-
return name$2
|
|
79988
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
79989
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
79990
|
-
var idx = x4.idx$2;
|
|
79991
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
79992
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
79993
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
79994
|
-
var name$3 = x5.name$2;
|
|
79995
|
-
return ("_m_" + name$3)
|
|
79996
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
79997
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
79998
|
-
var innerId = x6.innerId$2;
|
|
79999
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
80000
|
-
} else {
|
|
80001
|
-
throw new $c_s_MatchError().init___O(id)
|
|
80002
|
-
}
|
|
80251
|
+
this.out$2.puts__T__V(((("local " + id) + " = ") + expr))
|
|
80003
80252
|
});
|
|
80004
80253
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
80005
80254
|
this.out$2.puts__T__V((("for i = 0, " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + " - 1 do"));
|
|
@@ -80009,7 +80258,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.alignToByte__T__V = (functi
|
|
|
80009
80258
|
this.out$2.puts__T__V((io + ":align_to_byte()"))
|
|
80010
80259
|
});
|
|
80011
80260
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
80012
|
-
return ("_t_" +
|
|
80261
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
80013
80262
|
});
|
|
80014
80263
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
80015
80264
|
return this.out$2
|
|
@@ -80022,7 +80271,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchCaseEnd__V = (functio
|
|
|
80022
80271
|
});
|
|
80023
80272
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatUntil__Lio_kaitai_struct_format_Identifier__T__Z__V = (function(id, expr, isRaw) {
|
|
80024
80273
|
var s = (isRaw ? $m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 : $m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1);
|
|
80025
|
-
this.out$2.puts__T__V(((s + " = ") + expr));
|
|
80274
|
+
this.out$2.puts__T__V(((("local " + s) + " = ") + expr));
|
|
80026
80275
|
this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + s))
|
|
80027
80276
|
});
|
|
80028
80277
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.opaqueClassDeclaration__Lio_kaitai_struct_format_ClassSpec__V = (function(classSpec) {
|
|
@@ -80050,11 +80299,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatEos__
|
|
|
80050
80299
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.handleAssignmentRepeatExpr__Lio_kaitai_struct_format_Identifier__T__V = (function(id, expr) {
|
|
80051
80300
|
this.out$2.puts__T__V(((this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id) + "[i + 1] = ") + expr))
|
|
80052
80301
|
});
|
|
80053
|
-
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classHeader__sci_List__V = (function(name) {
|
|
80054
|
-
this.out$2.puts__T__V(($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(name) + " = class.class(KaitaiStruct)"));
|
|
80055
|
-
var this$1 = this.out$2;
|
|
80056
|
-
this$1.sb$2.append__T__scm_StringBuilder("\n")
|
|
80057
|
-
});
|
|
80058
80302
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V = (function(endian, isEmpty) {
|
|
80059
80303
|
if ((endian instanceof $c_s_Some)) {
|
|
80060
80304
|
var x2 = $as_s_Some(endian);
|
|
@@ -80070,6 +80314,11 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.readHeader__s_Option__Z__V
|
|
|
80070
80314
|
this.out$2.puts__T__V((((("function " + $m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(this.typeProvider$1.nowClass$1.name$1)) + ":_read") + suffix) + "()"));
|
|
80071
80315
|
this.out$2.inc__V()
|
|
80072
80316
|
});
|
|
80317
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classHeader__sci_List__V = (function(name) {
|
|
80318
|
+
this.out$2.puts__T__V(($m_Lio_kaitai_struct_languages_LuaCompiler$().types2class__sci_List__T(name) + " = class.class(KaitaiStruct)"));
|
|
80319
|
+
var this$1 = this.out$2;
|
|
80320
|
+
this$1.sb$2.append__T__scm_StringBuilder("\n")
|
|
80321
|
+
});
|
|
80073
80322
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.results__Lio_kaitai_struct_format_ClassSpec__sci_Map = (function(topClass) {
|
|
80074
80323
|
return $f_Lio_kaitai_struct_languages_components_SingleOutputFile__results__Lio_kaitai_struct_format_ClassSpec__sci_Map(this, topClass)
|
|
80075
80324
|
});
|
|
@@ -80085,7 +80334,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.classConstructorFooter__V =
|
|
|
80085
80334
|
var this$1 = this.out$2;
|
|
80086
80335
|
this$1.sb$2.append__T__scm_StringBuilder("\n")
|
|
80087
80336
|
});
|
|
80088
|
-
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType,
|
|
80337
|
+
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
|
|
80089
80338
|
this.out$2.puts__T__V("local i = 0");
|
|
80090
80339
|
this.out$2.puts__T__V("while true do");
|
|
80091
80340
|
this.out$2.inc__V()
|
|
@@ -80253,27 +80502,6 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attributeDoc__Lio_kaitai_st
|
|
|
80253
80502
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrDebugEnd__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__T__Lio_kaitai_struct_format_RepeatSpec__V = (function(attrName, attrType, io, repeat) {
|
|
80254
80503
|
/*<skip>*/
|
|
80255
80504
|
});
|
|
80256
|
-
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
80257
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
80258
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
80259
|
-
var name = x2.name$2;
|
|
80260
|
-
return name
|
|
80261
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
80262
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
80263
|
-
var name$2 = x3.name$2;
|
|
80264
|
-
return name$2
|
|
80265
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
80266
|
-
var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
80267
|
-
var name$3 = x4.name$2;
|
|
80268
|
-
return name$3
|
|
80269
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
80270
|
-
var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
80271
|
-
var innerId = x5.innerId$2;
|
|
80272
|
-
return ("_raw_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
80273
|
-
} else {
|
|
80274
|
-
throw new $c_s_MatchError().init___O(id)
|
|
80275
|
-
}
|
|
80276
|
-
});
|
|
80277
80505
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
80278
80506
|
if ((padRight instanceof $c_s_Some)) {
|
|
80279
80507
|
var x2 = $as_s_Some(padRight);
|
|
@@ -80348,7 +80576,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchIfCaseFirstStart__Lio
|
|
|
80348
80576
|
this.out$2.inc__V()
|
|
80349
80577
|
});
|
|
80350
80578
|
$c_Lio_kaitai_struct_languages_LuaCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
|
|
80351
|
-
this.out$2.puts__T__V((("if self." +
|
|
80579
|
+
this.out$2.puts__T__V((("if self." + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + " ~= nil then"));
|
|
80352
80580
|
this.out$2.inc__V();
|
|
80353
80581
|
this.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V(instName, dataType);
|
|
80354
80582
|
this.out$2.dec__V();
|
|
@@ -80380,9 +80608,8 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
80380
80608
|
} else {
|
|
80381
80609
|
var x = $m_Lio_kaitai_struct_format_ProcessZlib$();
|
|
80382
80610
|
if ((x === proc)) {
|
|
80383
|
-
|
|
80384
|
-
}
|
|
80385
|
-
if ((proc instanceof $c_Lio_kaitai_struct_format_ProcessRotate)) {
|
|
80611
|
+
var expr$2 = (("KaitaiStream.process_zlib(" + srcExpr) + ")")
|
|
80612
|
+
} else if ((proc instanceof $c_Lio_kaitai_struct_format_ProcessRotate)) {
|
|
80386
80613
|
var x3 = $as_Lio_kaitai_struct_format_ProcessRotate(proc);
|
|
80387
80614
|
var isLeft = x3.left$1;
|
|
80388
80615
|
var rotValue = x3.key$1;
|
|
@@ -80395,7 +80622,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.attrProcess__Lio_kaitai_str
|
|
|
80395
80622
|
var x4 = $as_Lio_kaitai_struct_format_ProcessCustom(proc);
|
|
80396
80623
|
var name = x4.name$1;
|
|
80397
80624
|
var args = x4.args$1;
|
|
80398
|
-
var procName$2 = ("_process_" +
|
|
80625
|
+
var procName$2 = ("_process_" + $m_Lio_kaitai_struct_languages_LuaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
80399
80626
|
var this$1 = this.importList$2;
|
|
80400
80627
|
var s = ((("require(\"" + "") + $f_sc_LinearSeqOptimized__last__O(name)) + "\")");
|
|
80401
80628
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, s);
|
|
@@ -80491,9 +80718,9 @@ function $h_Lio_kaitai_struct_languages_NimCompiler() {
|
|
|
80491
80718
|
/*<skip>*/
|
|
80492
80719
|
}
|
|
80493
80720
|
$h_Lio_kaitai_struct_languages_NimCompiler.prototype = $c_Lio_kaitai_struct_languages_NimCompiler.prototype;
|
|
80494
|
-
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.condRepeatUntilFooter__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType,
|
|
80721
|
+
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.condRepeatUntilFooter__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
|
|
80495
80722
|
this.typeProvider$1.$$undcurrentIteratorType$1 = new $c_s_Some().init___O(dataType);
|
|
80496
|
-
this.out$2.puts__T__V((("if " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this,
|
|
80723
|
+
this.out$2.puts__T__V((("if " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, untilExpr)) + ":"));
|
|
80497
80724
|
this.out$2.inc__V();
|
|
80498
80725
|
this.out$2.puts__T__V("break");
|
|
80499
80726
|
this.out$2.dec__V();
|
|
@@ -81081,7 +81308,7 @@ $c_Lio_kaitai_struct_languages_NimCompiler.prototype.switchCaseStart__Lio_kaitai
|
|
|
81081
81308
|
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.classConstructorFooter__V = (function() {
|
|
81082
81309
|
this.out$2.dec__V()
|
|
81083
81310
|
});
|
|
81084
|
-
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType,
|
|
81311
|
+
$c_Lio_kaitai_struct_languages_NimCompiler.prototype.condRepeatUntilHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, untilExpr) {
|
|
81085
81312
|
this.out$2.puts__T__V("block:");
|
|
81086
81313
|
this.out$2.inc__V();
|
|
81087
81314
|
this.out$2.puts__T__V("var i: int");
|
|
@@ -81424,7 +81651,8 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.debugClassSequence__sci_Li
|
|
|
81424
81651
|
var f = (function($this) {
|
|
81425
81652
|
return (function(attr$2) {
|
|
81426
81653
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
81427
|
-
|
|
81654
|
+
var id = attr.id$1;
|
|
81655
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
81428
81656
|
})
|
|
81429
81657
|
})(this);
|
|
81430
81658
|
var this$1 = $m_sci_List$();
|
|
@@ -81553,7 +81781,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceHeader__sci_List__
|
|
|
81553
81781
|
this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
|
|
81554
81782
|
});
|
|
81555
81783
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
81556
|
-
return ("@" +
|
|
81784
|
+
return ("@" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
81557
81785
|
});
|
|
81558
81786
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.seek__T__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(io, pos) {
|
|
81559
81787
|
this.out$2.puts__T__V((((io + ".seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ")"))
|
|
@@ -81720,7 +81948,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugStart__Lio_kaitai
|
|
|
81720
81948
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
81721
81949
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
81722
81950
|
};
|
|
81723
|
-
var name =
|
|
81951
|
+
var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
81724
81952
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
81725
81953
|
if ((x === rep)) {
|
|
81726
81954
|
this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:start] = ") + io) + ".pos"))
|
|
@@ -81806,32 +82034,6 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrParse2$default$7__s_Op
|
|
|
81806
82034
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
81807
82035
|
this.out$2.puts__T__V(((id + " = ") + expr))
|
|
81808
82036
|
});
|
|
81809
|
-
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
81810
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
81811
|
-
var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
81812
|
-
var name = x2.name$2;
|
|
81813
|
-
$m_Lio_kaitai_struct_Utils$();
|
|
81814
|
-
return name
|
|
81815
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
81816
|
-
var x3 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
81817
|
-
var idx = x3.idx$2;
|
|
81818
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
81819
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
81820
|
-
var x6 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
81821
|
-
return x6.name$2
|
|
81822
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
81823
|
-
var x4 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
81824
|
-
var inner = x4.innerId$2;
|
|
81825
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(inner))
|
|
81826
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
81827
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
81828
|
-
var name$2 = x5.name$2;
|
|
81829
|
-
$m_Lio_kaitai_struct_Utils$();
|
|
81830
|
-
return name$2
|
|
81831
|
-
} else {
|
|
81832
|
-
throw new $c_s_MatchError().init___O(id)
|
|
81833
|
-
}
|
|
81834
|
-
});
|
|
81835
82037
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
81836
82038
|
this.out$2.puts__T__V((("(" + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + ").times { |i|"));
|
|
81837
82039
|
this.out$2.inc__V()
|
|
@@ -81840,7 +82042,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.alignToByte__T__V = (funct
|
|
|
81840
82042
|
this.out$2.puts__T__V((io + ".align_to_byte"))
|
|
81841
82043
|
});
|
|
81842
82044
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
81843
|
-
return ("_t_" +
|
|
82045
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
81844
82046
|
});
|
|
81845
82047
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.out__Lio_kaitai_struct_StringLanguageOutputWriter = (function() {
|
|
81846
82048
|
return this.out$2
|
|
@@ -82010,7 +82212,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attrDebugEnd__Lio_kaitai_s
|
|
|
82010
82212
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
82011
82213
|
return (void 0)
|
|
82012
82214
|
};
|
|
82013
|
-
var name =
|
|
82215
|
+
var name = $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
82014
82216
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
82015
82217
|
if ((x === rep)) {
|
|
82016
82218
|
this.out$2.puts__T__V((((("(@_debug['" + name) + "'] ||= {})[:end] = ") + io) + ".pos"))
|
|
@@ -82197,7 +82399,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
|
|
|
82197
82399
|
return (function(p$2) {
|
|
82198
82400
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
82199
82401
|
var id = p.id$1;
|
|
82200
|
-
return $
|
|
82402
|
+
return $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
82201
82403
|
})
|
|
82202
82404
|
})(this);
|
|
82203
82405
|
var this$1 = $m_sci_List$();
|
|
@@ -82244,7 +82446,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.classConstructorHeader__T_
|
|
|
82244
82446
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
82245
82447
|
var jsx$3 = p$3.id$1;
|
|
82246
82448
|
var id$1 = p$3.id$1;
|
|
82247
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
82449
|
+
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
|
|
82248
82450
|
var this$4 = these$1;
|
|
82249
82451
|
these$1 = this$4.tail__sci_List()
|
|
82250
82452
|
};
|
|
@@ -82264,7 +82466,7 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.instanceCalculate__Lio_kai
|
|
|
82264
82466
|
});
|
|
82265
82467
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(id, rep) {
|
|
82266
82468
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(id);
|
|
82267
|
-
var ioName = ("_io_" +
|
|
82469
|
+
var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_RubyCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id));
|
|
82268
82470
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(id, rep);
|
|
82269
82471
|
this.out$2.puts__T__V((((ioName + " = Kaitai::Struct::Stream.new(") + args) + ")"));
|
|
82270
82472
|
return ioName
|
|
@@ -82294,7 +82496,9 @@ $c_Lio_kaitai_struct_languages_RubyCompiler.prototype.attributeReader__Lio_kaita
|
|
|
82294
82496
|
var jsx$1 = x$3.equals__O__Z(attrName)
|
|
82295
82497
|
};
|
|
82296
82498
|
if ((!jsx$1)) {
|
|
82297
|
-
|
|
82499
|
+
var jsx$2 = this.out$2;
|
|
82500
|
+
var this$1 = $m_Lio_kaitai_struct_languages_RubyCompiler$();
|
|
82501
|
+
jsx$2.puts__T__V(("attr_reader :" + this$1.idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)))
|
|
82298
82502
|
}
|
|
82299
82503
|
});
|
|
82300
82504
|
$c_Lio_kaitai_struct_languages_RubyCompiler.prototype.enumValue__T__T__T = (function(enumName, enumLabel) {
|
|
@@ -82505,7 +82709,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatUntilFooter__Lio
|
|
|
82505
82709
|
this.out$2.puts__T__V("}")
|
|
82506
82710
|
});
|
|
82507
82711
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceDeclaration__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
82508
|
-
this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType)) + " ") +
|
|
82712
|
+
this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(attrType)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
|
|
82509
82713
|
});
|
|
82510
82714
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchEnd__V = (function() {
|
|
82511
82715
|
this.out$2.puts__T__V("}")
|
|
@@ -82514,7 +82718,8 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
|
|
|
82514
82718
|
var f = (function($this) {
|
|
82515
82719
|
return (function(attr$2) {
|
|
82516
82720
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
82517
|
-
|
|
82721
|
+
var id = attr.id$1;
|
|
82722
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
82518
82723
|
})
|
|
82519
82724
|
})(this);
|
|
82520
82725
|
var this$1 = $m_sci_List$();
|
|
@@ -82552,7 +82757,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.debugClassSequence__sci_Li
|
|
|
82552
82757
|
this.out$2.puts__T__V((("public static String[] _seqFields = new String[] { " + seqStr) + " };"))
|
|
82553
82758
|
});
|
|
82554
82759
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
82555
|
-
this.out$2.puts__T__V((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(dataType)) + " ") +
|
|
82760
|
+
this.out$2.puts__T__V((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaTypeBoxed__Lio_kaitai_struct_datatype_DataType__T(dataType)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "() {"));
|
|
82556
82761
|
this.out$2.inc__V()
|
|
82557
82762
|
});
|
|
82558
82763
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
|
|
@@ -82651,7 +82856,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.instanceHeader__sci_List__
|
|
|
82651
82856
|
this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
|
|
82652
82857
|
});
|
|
82653
82858
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
82654
|
-
return ("this." +
|
|
82859
|
+
return ("this." + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
82655
82860
|
});
|
|
82656
82861
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
|
|
82657
82862
|
this.out$2.puts__T__V("{");
|
|
@@ -82868,7 +83073,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugStart__Lio_kaitai
|
|
|
82868
83073
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
82869
83074
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
82870
83075
|
};
|
|
82871
|
-
var name =
|
|
83076
|
+
var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
82872
83077
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
82873
83078
|
if ((x === rep)) {
|
|
82874
83079
|
this.out$2.puts__T__V((((("_attrStart.put(\"" + name) + "\", ") + io) + ".pos());"))
|
|
@@ -82975,31 +83180,6 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.handleAssignmentTempVar__L
|
|
|
82975
83180
|
var this$1 = $m_Lio_kaitai_struct_languages_JavaCompiler$();
|
|
82976
83181
|
jsx$1.puts__T__V((((((this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(dataType) + " ") + id) + " = ") + expr) + ";"))
|
|
82977
83182
|
});
|
|
82978
|
-
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
82979
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
82980
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
82981
|
-
var name = x2.name$2;
|
|
82982
|
-
return name
|
|
82983
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
82984
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
82985
|
-
var name$2 = x3.name$2;
|
|
82986
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$2)
|
|
82987
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
82988
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
82989
|
-
var idx = x4.idx$2;
|
|
82990
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
82991
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
82992
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
82993
|
-
var name$3 = x5.name$2;
|
|
82994
|
-
return $m_Lio_kaitai_struct_Utils$().lowerCamelCase__T__T(name$3)
|
|
82995
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
82996
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
82997
|
-
var innerId = x6.innerId$2;
|
|
82998
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
82999
|
-
} else {
|
|
83000
|
-
throw new $c_s_MatchError().init___O(id)
|
|
83001
|
-
}
|
|
83002
|
-
});
|
|
83003
83183
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatExprHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__Lio_kaitai_struct_exprlang_Ast$expr__V = (function(id, io, dataType, repeatExpr) {
|
|
83004
83184
|
this.out$2.puts__T__V((("for (int i = 0; i < " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, repeatExpr)) + "; i++) {"));
|
|
83005
83185
|
this.out$2.inc__V();
|
|
@@ -83007,7 +83187,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.condRepeatExprHeader__Lio_
|
|
|
83007
83187
|
$m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "java.util.ArrayList")
|
|
83008
83188
|
});
|
|
83009
83189
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
83010
|
-
return ("_t_" +
|
|
83190
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83011
83191
|
});
|
|
83012
83192
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
83013
83193
|
this.out$2.puts__T__V((io + ".alignToByte();"))
|
|
@@ -83042,7 +83222,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.type2class__T__T = (functi
|
|
|
83042
83222
|
return $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name)
|
|
83043
83223
|
});
|
|
83044
83224
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeDeclaration__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
83045
|
-
this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") +
|
|
83225
|
+
this.out$2.puts__T__V((((("private " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + ";"))
|
|
83046
83226
|
});
|
|
83047
83227
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.extraAttrForIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__sci_List = (function(id, rep) {
|
|
83048
83228
|
return $m_sci_Nil$()
|
|
@@ -83115,7 +83295,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.popPos__T__V = (function(i
|
|
|
83115
83295
|
this.out$2.puts__T__V((io + ".seek(_pos);"))
|
|
83116
83296
|
});
|
|
83117
83297
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
83118
|
-
var memberName =
|
|
83298
|
+
var memberName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
83119
83299
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
83120
83300
|
if ((x === rep)) {
|
|
83121
83301
|
return memberName
|
|
@@ -83223,7 +83403,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrDebugEnd__Lio_kaitai_s
|
|
|
83223
83403
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
83224
83404
|
return (void 0)
|
|
83225
83405
|
};
|
|
83226
|
-
var name =
|
|
83406
|
+
var name = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
83227
83407
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
83228
83408
|
if ((x === rep)) {
|
|
83229
83409
|
this.out$2.puts__T__V((((("_attrEnd.put(\"" + name) + "\", ") + io) + ".pos());"))
|
|
@@ -83405,7 +83585,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attrProcess__Lio_kaitai_st
|
|
|
83405
83585
|
};
|
|
83406
83586
|
var name$1 = $as_T($f_sc_LinearSeqOptimized__last__O(name));
|
|
83407
83587
|
var procClass = ((namespace + jsx$1) + $m_Lio_kaitai_struct_Utils$().upperCamelCase__T__T(name$1));
|
|
83408
|
-
var procName = ("_process_" +
|
|
83588
|
+
var procName = ("_process_" + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varSrc));
|
|
83409
83589
|
var jsx$3 = this.out$2;
|
|
83410
83590
|
var jsx$2 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
|
|
83411
83591
|
return (function(e$2) {
|
|
@@ -83463,7 +83643,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83463
83643
|
var attrType = p.dataType$1;
|
|
83464
83644
|
var jsx$2 = this$1.kaitaiType2JavaTypePrim__Lio_kaitai_struct_datatype_DataType__T(attrType);
|
|
83465
83645
|
var id = p.id$1;
|
|
83466
|
-
return ((jsx$2 + " ") + $
|
|
83646
|
+
return ((jsx$2 + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83467
83647
|
})
|
|
83468
83648
|
})(this);
|
|
83469
83649
|
var this$2 = $m_sci_List$();
|
|
@@ -83516,7 +83696,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83516
83696
|
return (function(p$3$2) {
|
|
83517
83697
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(p$3$2);
|
|
83518
83698
|
var id$1 = p$3.id$1;
|
|
83519
|
-
return
|
|
83699
|
+
return $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1)
|
|
83520
83700
|
})
|
|
83521
83701
|
})(this);
|
|
83522
83702
|
var this$7 = $m_sci_List$();
|
|
@@ -83589,7 +83769,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.classConstructorHeader__T_
|
|
|
83589
83769
|
var p$4 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$6);
|
|
83590
83770
|
var jsx$13 = p$4.id$1;
|
|
83591
83771
|
var id$2 = p$4.id$1;
|
|
83592
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$13,
|
|
83772
|
+
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$13, $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$2));
|
|
83593
83773
|
var this$15 = these$2;
|
|
83594
83774
|
these$2 = this$15.tail__sci_List()
|
|
83595
83775
|
}
|
|
@@ -83650,7 +83830,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.outHeader__Lio_kaitai_stru
|
|
|
83650
83830
|
return this.outHeader$2
|
|
83651
83831
|
});
|
|
83652
83832
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
83653
|
-
var javaName =
|
|
83833
|
+
var javaName = $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
83654
83834
|
var ioName = ("_io_" + javaName);
|
|
83655
83835
|
var args = ((rep instanceof $c_Lio_kaitai_struct_format_RepeatUntil) ? this.translator$2.doName__T__T($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1) : this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep));
|
|
83656
83836
|
var this$1 = this.importList$2;
|
|
@@ -83679,7 +83859,7 @@ $c_Lio_kaitai_struct_languages_JavaCompiler.prototype.fileHeader__T__V = (functi
|
|
|
83679
83859
|
this$6.sb$2.append__T__scm_StringBuilder("\n")
|
|
83680
83860
|
});
|
|
83681
83861
|
$c_Lio_kaitai_struct_languages_JavaCompiler.prototype.attributeReader__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(attrName, attrType, isNullable) {
|
|
83682
|
-
this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") +
|
|
83862
|
+
this.out$2.puts__T__V((((((("public " + $m_Lio_kaitai_struct_languages_JavaCompiler$().kaitaiType2JavaType__Lio_kaitai_struct_datatype_DataType__Z__T(attrType, isNullable)) + " ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "() { return ") + $m_Lio_kaitai_struct_languages_JavaCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrName)) + "; }"))
|
|
83683
83863
|
});
|
|
83684
83864
|
var $d_Lio_kaitai_struct_languages_JavaCompiler = new $TypeData().initClass({
|
|
83685
83865
|
Lio_kaitai_struct_languages_JavaCompiler: 0
|
|
@@ -83735,7 +83915,8 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.debugClassSequence__sci_
|
|
|
83735
83915
|
var f = (function($this) {
|
|
83736
83916
|
return (function(attr$2) {
|
|
83737
83917
|
var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
|
|
83738
|
-
|
|
83918
|
+
var id = attr.id$1;
|
|
83919
|
+
return (("\"" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)) + "\"")
|
|
83739
83920
|
})
|
|
83740
83921
|
})(this);
|
|
83741
83922
|
var this$1 = $m_sci_List$();
|
|
@@ -83782,7 +83963,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classToString__Lio_kaita
|
|
|
83782
83963
|
});
|
|
83783
83964
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V = (function(className, instName, dataType, isNullable) {
|
|
83784
83965
|
this.out$2.puts__T__V("@property");
|
|
83785
|
-
this.out$2.puts__T__V((("def " +
|
|
83966
|
+
this.out$2.puts__T__V((("def " + $m_Lio_kaitai_struct_languages_PythonCompiler$().publicMemberName__Lio_kaitai_struct_format_Identifier__T(instName)) + "(self):"));
|
|
83786
83967
|
this.out$2.inc__V()
|
|
83787
83968
|
});
|
|
83788
83969
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condRepeatEosHeader__Lio_kaitai_struct_format_Identifier__T__Lio_kaitai_struct_datatype_DataType__V = (function(id, io, dataType) {
|
|
@@ -83827,7 +84008,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceHeader__sci_List
|
|
|
83827
84008
|
this.instanceHeader__T__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__Z__V($as_T($f_sc_LinearSeqOptimized__last__O(className)), instName, dataType, isNullable)
|
|
83828
84009
|
});
|
|
83829
84010
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.privateMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
83830
|
-
return ("self." +
|
|
84011
|
+
return ("self." + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
83831
84012
|
});
|
|
83832
84013
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchIfStart__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType__V = (function(id, on, onType) {
|
|
83833
84014
|
this.out$2.puts__T__V(("_on = " + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, on)))
|
|
@@ -83836,7 +84017,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.seek__T__Lio_kaitai_stru
|
|
|
83836
84017
|
this.out$2.puts__T__V((((io + ".seek(") + $f_Lio_kaitai_struct_languages_components_ObjectOrientedLanguage__expression__Lio_kaitai_struct_exprlang_Ast$expr__T(this, pos)) + ")"))
|
|
83837
84018
|
});
|
|
83838
84019
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, attrType) {
|
|
83839
|
-
this.out$2.puts__T__V((("return getattr(self, '" +
|
|
84020
|
+
this.out$2.puts__T__V((("return getattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "', None)"))
|
|
83840
84021
|
});
|
|
83841
84022
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bool2Py__Z__T = (function(b) {
|
|
83842
84023
|
return (b ? "True" : "False")
|
|
@@ -84006,7 +84187,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugStart__Lio_kait
|
|
|
84006
84187
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
84007
84188
|
throw new $c_sr_NonLocalReturnControl$mcV$sp().init___O__sr_BoxedUnit(nonLocalReturnKey1, (void 0))
|
|
84008
84189
|
};
|
|
84009
|
-
var name =
|
|
84190
|
+
var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
84010
84191
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
84011
84192
|
if ((x === rep)) {
|
|
84012
84193
|
this.out$2.puts__T__V((((("self._debug['" + name) + "']['start'] = ") + io) + ".pos()"))
|
|
@@ -84065,31 +84246,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrParse2$default$7__s_
|
|
|
84065
84246
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.handleAssignmentTempVar__Lio_kaitai_struct_datatype_DataType__T__T__V = (function(dataType, id, expr) {
|
|
84066
84247
|
this.out$2.puts__T__V(((id + " = ") + expr))
|
|
84067
84248
|
});
|
|
84068
|
-
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.idToStr__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
84069
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
84070
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
84071
|
-
var name = x2.name$2;
|
|
84072
|
-
return name
|
|
84073
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
84074
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
84075
|
-
var name$2 = x3.name$2;
|
|
84076
|
-
return name$2
|
|
84077
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NumberedIdentifier)) {
|
|
84078
|
-
var x4 = $as_Lio_kaitai_struct_format_NumberedIdentifier(id);
|
|
84079
|
-
var idx = x4.idx$2;
|
|
84080
|
-
return (("_" + $m_Lio_kaitai_struct_format_NumberedIdentifier$().TEMPLATE$1) + idx)
|
|
84081
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
84082
|
-
var x5 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
84083
|
-
var name$3 = x5.name$2;
|
|
84084
|
-
return ("_m_" + name$3)
|
|
84085
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
84086
|
-
var x6 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
84087
|
-
var innerId = x6.innerId$2;
|
|
84088
|
-
return ("_raw_" + this.idToStr__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
84089
|
-
} else {
|
|
84090
|
-
throw new $c_s_MatchError().init___O(id)
|
|
84091
|
-
}
|
|
84092
|
-
});
|
|
84093
84249
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.userType2class__Lio_kaitai_struct_datatype_DataType$UserType__T = (function(t) {
|
|
84094
84250
|
var name = $as_Lio_kaitai_struct_format_ClassSpec(t.classSpec$3.get__O()).name$1;
|
|
84095
84251
|
var firstName = $as_T(name.head__O());
|
|
@@ -84101,7 +84257,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.condRepeatExprHeader__Li
|
|
|
84101
84257
|
this.out$2.inc__V()
|
|
84102
84258
|
});
|
|
84103
84259
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.localTemporaryName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
84104
|
-
return ("_t_" +
|
|
84260
|
+
return ("_t_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id))
|
|
84105
84261
|
});
|
|
84106
84262
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.alignToByte__T__V = (function(io) {
|
|
84107
84263
|
this.out$2.puts__T__V((io + ".align_to_byte()"))
|
|
@@ -84344,7 +84500,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
|
|
|
84344
84500
|
if (((attrId instanceof $c_Lio_kaitai_struct_format_RawIdentifier) || (attrId instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier))) {
|
|
84345
84501
|
return (void 0)
|
|
84346
84502
|
};
|
|
84347
|
-
var name =
|
|
84503
|
+
var name = $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(attrId);
|
|
84348
84504
|
var x = $m_Lio_kaitai_struct_format_NoRepeat$();
|
|
84349
84505
|
if ((x === rep)) {
|
|
84350
84506
|
this.out$2.puts__T__V((((("self._debug['" + name) + "']['end'] = ") + io) + ".pos()"))
|
|
@@ -84359,27 +84515,6 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.attrDebugEnd__Lio_kaitai
|
|
|
84359
84515
|
}
|
|
84360
84516
|
}
|
|
84361
84517
|
});
|
|
84362
|
-
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.publicMemberName__Lio_kaitai_struct_format_Identifier__T = (function(id) {
|
|
84363
|
-
if ((id instanceof $c_Lio_kaitai_struct_format_SpecialIdentifier)) {
|
|
84364
|
-
var x2 = $as_Lio_kaitai_struct_format_SpecialIdentifier(id);
|
|
84365
|
-
var name = x2.name$2;
|
|
84366
|
-
return name
|
|
84367
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
|
|
84368
|
-
var x3 = $as_Lio_kaitai_struct_format_NamedIdentifier(id);
|
|
84369
|
-
var name$2 = x3.name$2;
|
|
84370
|
-
return name$2
|
|
84371
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
|
|
84372
|
-
var x4 = $as_Lio_kaitai_struct_format_InstanceIdentifier(id);
|
|
84373
|
-
var name$3 = x4.name$2;
|
|
84374
|
-
return name$3
|
|
84375
|
-
} else if ((id instanceof $c_Lio_kaitai_struct_format_RawIdentifier)) {
|
|
84376
|
-
var x5 = $as_Lio_kaitai_struct_format_RawIdentifier(id);
|
|
84377
|
-
var innerId = x5.innerId$2;
|
|
84378
|
-
return ("_raw_" + this.publicMemberName__Lio_kaitai_struct_format_Identifier__T(innerId))
|
|
84379
|
-
} else {
|
|
84380
|
-
throw new $c_s_MatchError().init___O(id)
|
|
84381
|
-
}
|
|
84382
|
-
});
|
|
84383
84518
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.bytesPadTermExpr__T__s_Option__s_Option__Z__T = (function(expr0, padRight, terminator, include) {
|
|
84384
84519
|
if ((padRight instanceof $c_s_Some)) {
|
|
84385
84520
|
var x2 = $as_s_Some(padRight);
|
|
@@ -84459,7 +84594,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.switchIfCaseFirstStart__
|
|
|
84459
84594
|
this.out$2.inc__V()
|
|
84460
84595
|
});
|
|
84461
84596
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCheckCacheAndReturn__Lio_kaitai_struct_format_InstanceIdentifier__Lio_kaitai_struct_datatype_DataType__V = (function(instName, dataType) {
|
|
84462
|
-
this.out$2.puts__T__V((("if hasattr(self, '" +
|
|
84597
|
+
this.out$2.puts__T__V((("if hasattr(self, '" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(instName)) + "'):"));
|
|
84463
84598
|
this.out$2.inc__V();
|
|
84464
84599
|
this.out$2.puts__T__V(("return " + this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(instName)));
|
|
84465
84600
|
this.out$2.dec__V();
|
|
@@ -84555,7 +84690,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
|
|
|
84555
84690
|
return (function(p$2) {
|
|
84556
84691
|
var p = $as_Lio_kaitai_struct_format_ParamDefSpec(p$2);
|
|
84557
84692
|
var id = p.id$1;
|
|
84558
|
-
return $
|
|
84693
|
+
return $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id)
|
|
84559
84694
|
})
|
|
84560
84695
|
})(this);
|
|
84561
84696
|
var this$1 = $m_sci_List$();
|
|
@@ -84604,7 +84739,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.classConstructorHeader__
|
|
|
84604
84739
|
var p$3 = $as_Lio_kaitai_struct_format_ParamDefSpec(arg1$3);
|
|
84605
84740
|
var jsx$3 = p$3.id$1;
|
|
84606
84741
|
var id$1 = p$3.id$1;
|
|
84607
|
-
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3,
|
|
84742
|
+
this.handleAssignmentSimple__Lio_kaitai_struct_format_Identifier__T__V(jsx$3, $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(id$1));
|
|
84608
84743
|
var this$4 = these$1;
|
|
84609
84744
|
these$1 = this$4.tail__sci_List()
|
|
84610
84745
|
};
|
|
@@ -84627,7 +84762,7 @@ $c_Lio_kaitai_struct_languages_PythonCompiler.prototype.instanceCalculate__Lio_k
|
|
|
84627
84762
|
});
|
|
84628
84763
|
$c_Lio_kaitai_struct_languages_PythonCompiler.prototype.allocateIO__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T = (function(varName, rep) {
|
|
84629
84764
|
this.privateMemberName__Lio_kaitai_struct_format_Identifier__T(varName);
|
|
84630
|
-
var ioName = ("_io_" +
|
|
84765
|
+
var ioName = ("_io_" + $m_Lio_kaitai_struct_languages_PythonCompiler$().idToStr__Lio_kaitai_struct_format_Identifier__T(varName));
|
|
84631
84766
|
var args = this.getRawIdExpr__Lio_kaitai_struct_format_Identifier__Lio_kaitai_struct_format_RepeatSpec__T(varName, rep);
|
|
84632
84767
|
this.out$2.puts__T__V((((ioName + " = KaitaiStream(BytesIO(") + args) + "))"));
|
|
84633
84768
|
return ioName
|