purus 0.9.1 → 0.10.1
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/bin/purus.js +9 -0
- package/package.json +2 -2
- package/pkg/lib/create.js +5 -47
- package/pkg/lib/generate-config.js +35 -0
- package/pkg/lib/init.js +85 -0
- package/pkg/lib/purus-compiler.js +751 -753
- package/pkg/lib/templates.js +50 -0
|
@@ -107,20 +107,6 @@ function _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE2Ok(param0) {
|
|
|
107
107
|
this._0 = param0;
|
|
108
108
|
}
|
|
109
109
|
_M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE2Ok.prototype.$tag = 1;
|
|
110
|
-
const _M0FP311moonbitlang1x2fs17path__exists__ffi = function(path) {
|
|
111
|
-
var fs = require('fs');
|
|
112
|
-
return fs.existsSync(path);
|
|
113
|
-
};
|
|
114
|
-
const _M0FP311moonbitlang1x2fs16create__dir__ffi = function(path) {
|
|
115
|
-
var fs = require('fs');
|
|
116
|
-
try {
|
|
117
|
-
fs.mkdirSync(path, { recursive: true });
|
|
118
|
-
return 0;
|
|
119
|
-
} catch (error) {
|
|
120
|
-
globalThis.errorMessage = error.message;
|
|
121
|
-
return -1;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
110
|
const _M0FP511moonbitlang1x3sys8internal3ffi24get__cli__args__internal = function() {
|
|
125
111
|
return process.argv.slice(1);
|
|
126
112
|
};
|
|
@@ -753,150 +739,157 @@ function _M0DTP48username4core3src6parser4Stmt15ObjDestructDecl(param0, param1,
|
|
|
753
739
|
this._2 = param2;
|
|
754
740
|
}
|
|
755
741
|
_M0DTP48username4core3src6parser4Stmt15ObjDestructDecl.prototype.$tag = 2;
|
|
742
|
+
function _M0DTP48username4core3src6parser4Stmt13DottedVarInit(param0, param1, param2, param3) {
|
|
743
|
+
this._0 = param0;
|
|
744
|
+
this._1 = param1;
|
|
745
|
+
this._2 = param2;
|
|
746
|
+
this._3 = param3;
|
|
747
|
+
}
|
|
748
|
+
_M0DTP48username4core3src6parser4Stmt13DottedVarInit.prototype.$tag = 3;
|
|
756
749
|
function _M0DTP48username4core3src6parser4Stmt6Assign(param0, param1) {
|
|
757
750
|
this._0 = param0;
|
|
758
751
|
this._1 = param1;
|
|
759
752
|
}
|
|
760
|
-
_M0DTP48username4core3src6parser4Stmt6Assign.prototype.$tag =
|
|
753
|
+
_M0DTP48username4core3src6parser4Stmt6Assign.prototype.$tag = 4;
|
|
761
754
|
function _M0DTP48username4core3src6parser4Stmt14CompoundAssign(param0, param1, param2) {
|
|
762
755
|
this._0 = param0;
|
|
763
756
|
this._1 = param1;
|
|
764
757
|
this._2 = param2;
|
|
765
758
|
}
|
|
766
|
-
_M0DTP48username4core3src6parser4Stmt14CompoundAssign.prototype.$tag =
|
|
759
|
+
_M0DTP48username4core3src6parser4Stmt14CompoundAssign.prototype.$tag = 5;
|
|
767
760
|
function _M0DTP48username4core3src6parser4Stmt6FnDecl(param0) {
|
|
768
761
|
this._0 = param0;
|
|
769
762
|
}
|
|
770
|
-
_M0DTP48username4core3src6parser4Stmt6FnDecl.prototype.$tag =
|
|
763
|
+
_M0DTP48username4core3src6parser4Stmt6FnDecl.prototype.$tag = 6;
|
|
771
764
|
function _M0DTP48username4core3src6parser4Stmt2If(param0, param1, param2, param3) {
|
|
772
765
|
this._0 = param0;
|
|
773
766
|
this._1 = param1;
|
|
774
767
|
this._2 = param2;
|
|
775
768
|
this._3 = param3;
|
|
776
769
|
}
|
|
777
|
-
_M0DTP48username4core3src6parser4Stmt2If.prototype.$tag =
|
|
770
|
+
_M0DTP48username4core3src6parser4Stmt2If.prototype.$tag = 7;
|
|
778
771
|
function _M0DTP48username4core3src6parser4Stmt6Unless(param0, param1) {
|
|
779
772
|
this._0 = param0;
|
|
780
773
|
this._1 = param1;
|
|
781
774
|
}
|
|
782
|
-
_M0DTP48username4core3src6parser4Stmt6Unless.prototype.$tag =
|
|
775
|
+
_M0DTP48username4core3src6parser4Stmt6Unless.prototype.$tag = 8;
|
|
783
776
|
function _M0DTP48username4core3src6parser4Stmt5While(param0, param1) {
|
|
784
777
|
this._0 = param0;
|
|
785
778
|
this._1 = param1;
|
|
786
779
|
}
|
|
787
|
-
_M0DTP48username4core3src6parser4Stmt5While.prototype.$tag =
|
|
780
|
+
_M0DTP48username4core3src6parser4Stmt5While.prototype.$tag = 9;
|
|
788
781
|
function _M0DTP48username4core3src6parser4Stmt5Until(param0, param1) {
|
|
789
782
|
this._0 = param0;
|
|
790
783
|
this._1 = param1;
|
|
791
784
|
}
|
|
792
|
-
_M0DTP48username4core3src6parser4Stmt5Until.prototype.$tag =
|
|
785
|
+
_M0DTP48username4core3src6parser4Stmt5Until.prototype.$tag = 10;
|
|
793
786
|
function _M0DTP48username4core3src6parser4Stmt7DoWhile(param0, param1) {
|
|
794
787
|
this._0 = param0;
|
|
795
788
|
this._1 = param1;
|
|
796
789
|
}
|
|
797
|
-
_M0DTP48username4core3src6parser4Stmt7DoWhile.prototype.$tag =
|
|
790
|
+
_M0DTP48username4core3src6parser4Stmt7DoWhile.prototype.$tag = 11;
|
|
798
791
|
function _M0DTP48username4core3src6parser4Stmt5ForIn(param0, param1, param2, param3) {
|
|
799
792
|
this._0 = param0;
|
|
800
793
|
this._1 = param1;
|
|
801
794
|
this._2 = param2;
|
|
802
795
|
this._3 = param3;
|
|
803
796
|
}
|
|
804
|
-
_M0DTP48username4core3src6parser4Stmt5ForIn.prototype.$tag =
|
|
797
|
+
_M0DTP48username4core3src6parser4Stmt5ForIn.prototype.$tag = 12;
|
|
805
798
|
function _M0DTP48username4core3src6parser4Stmt8ForRange(param0, param1, param2, param3) {
|
|
806
799
|
this._0 = param0;
|
|
807
800
|
this._1 = param1;
|
|
808
801
|
this._2 = param2;
|
|
809
802
|
this._3 = param3;
|
|
810
803
|
}
|
|
811
|
-
_M0DTP48username4core3src6parser4Stmt8ForRange.prototype.$tag =
|
|
804
|
+
_M0DTP48username4core3src6parser4Stmt8ForRange.prototype.$tag = 13;
|
|
812
805
|
function _M0DTP48username4core3src6parser4Stmt10ForClassic(param0, param1, param2, param3) {
|
|
813
806
|
this._0 = param0;
|
|
814
807
|
this._1 = param1;
|
|
815
808
|
this._2 = param2;
|
|
816
809
|
this._3 = param3;
|
|
817
810
|
}
|
|
818
|
-
_M0DTP48username4core3src6parser4Stmt10ForClassic.prototype.$tag =
|
|
811
|
+
_M0DTP48username4core3src6parser4Stmt10ForClassic.prototype.$tag = 14;
|
|
819
812
|
function _M0DTP48username4core3src6parser4Stmt9MatchStmt(param0, param1) {
|
|
820
813
|
this._0 = param0;
|
|
821
814
|
this._1 = param1;
|
|
822
815
|
}
|
|
823
|
-
_M0DTP48username4core3src6parser4Stmt9MatchStmt.prototype.$tag =
|
|
816
|
+
_M0DTP48username4core3src6parser4Stmt9MatchStmt.prototype.$tag = 15;
|
|
824
817
|
function _M0DTP48username4core3src6parser4Stmt9PostfixIf(param0, param1) {
|
|
825
818
|
this._0 = param0;
|
|
826
819
|
this._1 = param1;
|
|
827
820
|
}
|
|
828
|
-
_M0DTP48username4core3src6parser4Stmt9PostfixIf.prototype.$tag =
|
|
821
|
+
_M0DTP48username4core3src6parser4Stmt9PostfixIf.prototype.$tag = 16;
|
|
829
822
|
function _M0DTP48username4core3src6parser4Stmt13PostfixUnless(param0, param1) {
|
|
830
823
|
this._0 = param0;
|
|
831
824
|
this._1 = param1;
|
|
832
825
|
}
|
|
833
|
-
_M0DTP48username4core3src6parser4Stmt13PostfixUnless.prototype.$tag =
|
|
826
|
+
_M0DTP48username4core3src6parser4Stmt13PostfixUnless.prototype.$tag = 17;
|
|
834
827
|
function _M0DTP48username4core3src6parser4Stmt10PostfixFor(param0, param1, param2) {
|
|
835
828
|
this._0 = param0;
|
|
836
829
|
this._1 = param1;
|
|
837
830
|
this._2 = param2;
|
|
838
831
|
}
|
|
839
|
-
_M0DTP48username4core3src6parser4Stmt10PostfixFor.prototype.$tag =
|
|
832
|
+
_M0DTP48username4core3src6parser4Stmt10PostfixFor.prototype.$tag = 18;
|
|
840
833
|
function _M0DTP48username4core3src6parser4Stmt8TryCatch(param0, param1, param2, param3) {
|
|
841
834
|
this._0 = param0;
|
|
842
835
|
this._1 = param1;
|
|
843
836
|
this._2 = param2;
|
|
844
837
|
this._3 = param3;
|
|
845
838
|
}
|
|
846
|
-
_M0DTP48username4core3src6parser4Stmt8TryCatch.prototype.$tag =
|
|
839
|
+
_M0DTP48username4core3src6parser4Stmt8TryCatch.prototype.$tag = 19;
|
|
847
840
|
function _M0DTP48username4core3src6parser4Stmt5Throw(param0) {
|
|
848
841
|
this._0 = param0;
|
|
849
842
|
}
|
|
850
|
-
_M0DTP48username4core3src6parser4Stmt5Throw.prototype.$tag =
|
|
843
|
+
_M0DTP48username4core3src6parser4Stmt5Throw.prototype.$tag = 20;
|
|
851
844
|
function _M0DTP48username4core3src6parser4Stmt6Return(param0) {
|
|
852
845
|
this._0 = param0;
|
|
853
846
|
}
|
|
854
|
-
_M0DTP48username4core3src6parser4Stmt6Return.prototype.$tag =
|
|
847
|
+
_M0DTP48username4core3src6parser4Stmt6Return.prototype.$tag = 21;
|
|
855
848
|
function _M0DTP48username4core3src6parser4Stmt5Break() {}
|
|
856
|
-
_M0DTP48username4core3src6parser4Stmt5Break.prototype.$tag =
|
|
849
|
+
_M0DTP48username4core3src6parser4Stmt5Break.prototype.$tag = 22;
|
|
857
850
|
const _M0DTP48username4core3src6parser4Stmt5Break__ = new _M0DTP48username4core3src6parser4Stmt5Break();
|
|
858
851
|
function _M0DTP48username4core3src6parser4Stmt8Continue() {}
|
|
859
|
-
_M0DTP48username4core3src6parser4Stmt8Continue.prototype.$tag =
|
|
852
|
+
_M0DTP48username4core3src6parser4Stmt8Continue.prototype.$tag = 23;
|
|
860
853
|
const _M0DTP48username4core3src6parser4Stmt8Continue__ = new _M0DTP48username4core3src6parser4Stmt8Continue();
|
|
861
854
|
function _M0DTP48username4core3src6parser4Stmt8ExprStmt(param0) {
|
|
862
855
|
this._0 = param0;
|
|
863
856
|
}
|
|
864
|
-
_M0DTP48username4core3src6parser4Stmt8ExprStmt.prototype.$tag =
|
|
857
|
+
_M0DTP48username4core3src6parser4Stmt8ExprStmt.prototype.$tag = 24;
|
|
865
858
|
function _M0DTP48username4core3src6parser4Stmt10ImportDecl(param0) {
|
|
866
859
|
this._0 = param0;
|
|
867
860
|
}
|
|
868
|
-
_M0DTP48username4core3src6parser4Stmt10ImportDecl.prototype.$tag =
|
|
861
|
+
_M0DTP48username4core3src6parser4Stmt10ImportDecl.prototype.$tag = 25;
|
|
869
862
|
function _M0DTP48username4core3src6parser4Stmt9UseStdlib(param0, param1) {
|
|
870
863
|
this._0 = param0;
|
|
871
864
|
this._1 = param1;
|
|
872
865
|
}
|
|
873
|
-
_M0DTP48username4core3src6parser4Stmt9UseStdlib.prototype.$tag =
|
|
866
|
+
_M0DTP48username4core3src6parser4Stmt9UseStdlib.prototype.$tag = 26;
|
|
874
867
|
function _M0DTP48username4core3src6parser4Stmt7ModDecl(param0, param1) {
|
|
875
868
|
this._0 = param0;
|
|
876
869
|
this._1 = param1;
|
|
877
870
|
}
|
|
878
|
-
_M0DTP48username4core3src6parser4Stmt7ModDecl.prototype.$tag =
|
|
871
|
+
_M0DTP48username4core3src6parser4Stmt7ModDecl.prototype.$tag = 27;
|
|
879
872
|
function _M0DTP48username4core3src6parser4Stmt13ExportDefault(param0) {
|
|
880
873
|
this._0 = param0;
|
|
881
874
|
}
|
|
882
|
-
_M0DTP48username4core3src6parser4Stmt13ExportDefault.prototype.$tag =
|
|
875
|
+
_M0DTP48username4core3src6parser4Stmt13ExportDefault.prototype.$tag = 28;
|
|
883
876
|
function _M0DTP48username4core3src6parser4Stmt10PublicDecl(param0) {
|
|
884
877
|
this._0 = param0;
|
|
885
878
|
}
|
|
886
|
-
_M0DTP48username4core3src6parser4Stmt10PublicDecl.prototype.$tag =
|
|
879
|
+
_M0DTP48username4core3src6parser4Stmt10PublicDecl.prototype.$tag = 29;
|
|
887
880
|
function _M0DTP48username4core3src6parser4Stmt8TypeDecl(param0, param1) {
|
|
888
881
|
this._0 = param0;
|
|
889
882
|
this._1 = param1;
|
|
890
883
|
}
|
|
891
|
-
_M0DTP48username4core3src6parser4Stmt8TypeDecl.prototype.$tag =
|
|
884
|
+
_M0DTP48username4core3src6parser4Stmt8TypeDecl.prototype.$tag = 30;
|
|
892
885
|
function _M0DTP48username4core3src6parser4Stmt9ClassDecl(param0) {
|
|
893
886
|
this._0 = param0;
|
|
894
887
|
}
|
|
895
|
-
_M0DTP48username4core3src6parser4Stmt9ClassDecl.prototype.$tag =
|
|
888
|
+
_M0DTP48username4core3src6parser4Stmt9ClassDecl.prototype.$tag = 31;
|
|
896
889
|
function _M0DTP48username4core3src6parser4Stmt10DeleteStmt(param0) {
|
|
897
890
|
this._0 = param0;
|
|
898
891
|
}
|
|
899
|
-
_M0DTP48username4core3src6parser4Stmt10DeleteStmt.prototype.$tag =
|
|
892
|
+
_M0DTP48username4core3src6parser4Stmt10DeleteStmt.prototype.$tag = 32;
|
|
900
893
|
function _M0TPB8MutLocalGRP48username4core3src6parser4ExprE(param0) {
|
|
901
894
|
this.val = param0;
|
|
902
895
|
}
|
|
@@ -1031,11 +1024,12 @@ function _M0TPB8MutLocalGOsE(param0) {
|
|
|
1031
1024
|
function _M0TPB8MutLocalGRPB5ArrayGRP48username4core3src6parser4StmtEE(param0) {
|
|
1032
1025
|
this.val = param0;
|
|
1033
1026
|
}
|
|
1034
|
-
function _M0TP48username4core3src7codegen9JsCodegen(param0, param1, param2, param3) {
|
|
1027
|
+
function _M0TP48username4core3src7codegen9JsCodegen(param0, param1, param2, param3, param4) {
|
|
1035
1028
|
this.buf = param0;
|
|
1036
1029
|
this.indent_level = param1;
|
|
1037
1030
|
this.private_fields = param2;
|
|
1038
|
-
this.
|
|
1031
|
+
this.declared_vars = param3;
|
|
1032
|
+
this.cjs = param4;
|
|
1039
1033
|
}
|
|
1040
1034
|
function _M0TPB8MutLocalGsE(param0) {
|
|
1041
1035
|
this.val = param0;
|
|
@@ -1822,942 +1816,925 @@ function _M0FP311moonbitlang1x2fs41write__string__to__file__internal_2einner(pat
|
|
|
1822
1816
|
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE3Err(new _M0DTPC15error5Error40moonbitlang_2fx_2ffs_2eIOError_2eIOError(`Unsupported encoding: ${_M0IPC16string6StringPB4Show10to__string(encoding)}, only utf8 is supported for now`));
|
|
1823
1817
|
}
|
|
1824
1818
|
}
|
|
1825
|
-
function _M0FP311moonbitlang1x2fs22path__exists__internal(path) {
|
|
1826
|
-
return _M0FP311moonbitlang1x2fs17path__exists__ffi(path);
|
|
1827
|
-
}
|
|
1828
|
-
function _M0FP311moonbitlang1x2fs21create__dir__internal(path) {
|
|
1829
|
-
const res = _M0FP311moonbitlang1x2fs16create__dir__ffi(path);
|
|
1830
|
-
if (res === -1) {
|
|
1831
|
-
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE3Err(new _M0DTPC15error5Error40moonbitlang_2fx_2ffs_2eIOError_2eIOError(_M0FP311moonbitlang1x2fs24get__error__message__ffi()));
|
|
1832
|
-
} else {
|
|
1833
|
-
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE2Ok(undefined);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
1819
|
function _M0FP311moonbitlang1x2fs30read__file__to__string_2einner(path, encoding) {
|
|
1837
1820
|
return _M0FP311moonbitlang1x2fs40read__file__to__string__internal_2einner(path, encoding);
|
|
1838
1821
|
}
|
|
1839
1822
|
function _M0FP311moonbitlang1x2fs31write__string__to__file_2einner(path, content, encoding) {
|
|
1840
1823
|
return _M0FP311moonbitlang1x2fs41write__string__to__file__internal_2einner(path, content, encoding);
|
|
1841
1824
|
}
|
|
1842
|
-
function _M0FP311moonbitlang1x2fs12path__exists(path) {
|
|
1843
|
-
return _M0FP311moonbitlang1x2fs22path__exists__internal(path);
|
|
1844
|
-
}
|
|
1845
|
-
function _M0FP311moonbitlang1x2fs11create__dir(path) {
|
|
1846
|
-
return _M0FP311moonbitlang1x2fs21create__dir__internal(path);
|
|
1847
|
-
}
|
|
1848
1825
|
function _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args() {
|
|
1849
1826
|
return _M0FP511moonbitlang1x3sys8internal3ffi24get__cli__args__internal();
|
|
1850
1827
|
}
|
|
1851
1828
|
function _M0FP311moonbitlang1x3sys14get__cli__args() {
|
|
1852
1829
|
return _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args();
|
|
1853
1830
|
}
|
|
1854
|
-
function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(
|
|
1855
|
-
let
|
|
1856
|
-
let
|
|
1831
|
+
function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(_x_104, _x_105) {
|
|
1832
|
+
let _x0_128;
|
|
1833
|
+
let _y0_129;
|
|
1857
1834
|
_L: {
|
|
1858
|
-
let
|
|
1859
|
-
let
|
|
1835
|
+
let _x0_126;
|
|
1836
|
+
let _y0_127;
|
|
1860
1837
|
_L$2: {
|
|
1861
|
-
let
|
|
1862
|
-
let
|
|
1838
|
+
let _x0_124;
|
|
1839
|
+
let _y0_125;
|
|
1863
1840
|
_L$3: {
|
|
1864
|
-
let
|
|
1865
|
-
let
|
|
1841
|
+
let _x0_122;
|
|
1842
|
+
let _y0_123;
|
|
1866
1843
|
_L$4: {
|
|
1867
|
-
let
|
|
1868
|
-
let
|
|
1844
|
+
let _x0_120;
|
|
1845
|
+
let _y0_121;
|
|
1869
1846
|
_L$5: {
|
|
1870
|
-
let
|
|
1871
|
-
let
|
|
1847
|
+
let _x0_118;
|
|
1848
|
+
let _y0_119;
|
|
1872
1849
|
_L$6: {
|
|
1873
|
-
let
|
|
1874
|
-
let
|
|
1875
|
-
let
|
|
1876
|
-
let
|
|
1850
|
+
let _x1_115;
|
|
1851
|
+
let _x0_114;
|
|
1852
|
+
let _y0_116;
|
|
1853
|
+
let _y1_117;
|
|
1877
1854
|
_L$7: {
|
|
1878
|
-
let
|
|
1879
|
-
let
|
|
1855
|
+
let _x0_112;
|
|
1856
|
+
let _y0_113;
|
|
1880
1857
|
_L$8: {
|
|
1881
|
-
let
|
|
1882
|
-
let
|
|
1858
|
+
let _x0_110;
|
|
1859
|
+
let _y0_111;
|
|
1883
1860
|
_L$9: {
|
|
1884
|
-
let
|
|
1885
|
-
let
|
|
1861
|
+
let _x0_108;
|
|
1862
|
+
let _y0_109;
|
|
1886
1863
|
_L$10: {
|
|
1887
|
-
let
|
|
1888
|
-
let
|
|
1864
|
+
let _x0_106;
|
|
1865
|
+
let _y0_107;
|
|
1889
1866
|
_L$11: {
|
|
1890
|
-
switch (
|
|
1867
|
+
switch (_x_104.$tag) {
|
|
1891
1868
|
case 0: {
|
|
1892
|
-
const _Int =
|
|
1893
|
-
const _$42$
|
|
1894
|
-
if (
|
|
1895
|
-
const _Int$2 =
|
|
1896
|
-
const _$42$
|
|
1897
|
-
|
|
1898
|
-
|
|
1869
|
+
const _Int = _x_104;
|
|
1870
|
+
const _$42$x0_106 = _Int._0;
|
|
1871
|
+
if (_x_105.$tag === 0) {
|
|
1872
|
+
const _Int$2 = _x_105;
|
|
1873
|
+
const _$42$y0_107 = _Int$2._0;
|
|
1874
|
+
_x0_106 = _$42$x0_106;
|
|
1875
|
+
_y0_107 = _$42$y0_107;
|
|
1899
1876
|
break _L$11;
|
|
1900
1877
|
} else {
|
|
1901
1878
|
return false;
|
|
1902
1879
|
}
|
|
1903
1880
|
}
|
|
1904
1881
|
case 1: {
|
|
1905
|
-
const _BigInt =
|
|
1906
|
-
const _$42$
|
|
1907
|
-
if (
|
|
1908
|
-
const _BigInt$2 =
|
|
1909
|
-
const _$42$
|
|
1910
|
-
|
|
1911
|
-
|
|
1882
|
+
const _BigInt = _x_104;
|
|
1883
|
+
const _$42$x0_108 = _BigInt._0;
|
|
1884
|
+
if (_x_105.$tag === 1) {
|
|
1885
|
+
const _BigInt$2 = _x_105;
|
|
1886
|
+
const _$42$y0_109 = _BigInt$2._0;
|
|
1887
|
+
_x0_108 = _$42$x0_108;
|
|
1888
|
+
_y0_109 = _$42$y0_109;
|
|
1912
1889
|
break _L$10;
|
|
1913
1890
|
} else {
|
|
1914
1891
|
return false;
|
|
1915
1892
|
}
|
|
1916
1893
|
}
|
|
1917
1894
|
case 2: {
|
|
1918
|
-
const _Float =
|
|
1919
|
-
const _$42$
|
|
1920
|
-
if (
|
|
1921
|
-
const _Float$2 =
|
|
1922
|
-
const _$42$
|
|
1923
|
-
|
|
1924
|
-
|
|
1895
|
+
const _Float = _x_104;
|
|
1896
|
+
const _$42$x0_110 = _Float._0;
|
|
1897
|
+
if (_x_105.$tag === 2) {
|
|
1898
|
+
const _Float$2 = _x_105;
|
|
1899
|
+
const _$42$y0_111 = _Float$2._0;
|
|
1900
|
+
_x0_110 = _$42$x0_110;
|
|
1901
|
+
_y0_111 = _$42$y0_111;
|
|
1925
1902
|
break _L$9;
|
|
1926
1903
|
} else {
|
|
1927
1904
|
return false;
|
|
1928
1905
|
}
|
|
1929
1906
|
}
|
|
1930
1907
|
case 3: {
|
|
1931
|
-
const _Str =
|
|
1932
|
-
const _$42$
|
|
1933
|
-
if (
|
|
1934
|
-
const _Str$2 =
|
|
1935
|
-
const _$42$
|
|
1936
|
-
|
|
1937
|
-
|
|
1908
|
+
const _Str = _x_104;
|
|
1909
|
+
const _$42$x0_112 = _Str._0;
|
|
1910
|
+
if (_x_105.$tag === 3) {
|
|
1911
|
+
const _Str$2 = _x_105;
|
|
1912
|
+
const _$42$y0_113 = _Str$2._0;
|
|
1913
|
+
_x0_112 = _$42$x0_112;
|
|
1914
|
+
_y0_113 = _$42$y0_113;
|
|
1938
1915
|
break _L$8;
|
|
1939
1916
|
} else {
|
|
1940
1917
|
return false;
|
|
1941
1918
|
}
|
|
1942
1919
|
}
|
|
1943
1920
|
case 4: {
|
|
1944
|
-
const _Regex =
|
|
1945
|
-
const _$42$
|
|
1946
|
-
const _$42$
|
|
1947
|
-
if (
|
|
1948
|
-
const _Regex$2 =
|
|
1949
|
-
const _$42$
|
|
1950
|
-
const _$42$
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1921
|
+
const _Regex = _x_104;
|
|
1922
|
+
const _$42$x0_114 = _Regex._0;
|
|
1923
|
+
const _$42$x1_115 = _Regex._1;
|
|
1924
|
+
if (_x_105.$tag === 4) {
|
|
1925
|
+
const _Regex$2 = _x_105;
|
|
1926
|
+
const _$42$y0_116 = _Regex$2._0;
|
|
1927
|
+
const _$42$y1_117 = _Regex$2._1;
|
|
1928
|
+
_x1_115 = _$42$x1_115;
|
|
1929
|
+
_x0_114 = _$42$x0_114;
|
|
1930
|
+
_y0_116 = _$42$y0_116;
|
|
1931
|
+
_y1_117 = _$42$y1_117;
|
|
1955
1932
|
break _L$7;
|
|
1956
1933
|
} else {
|
|
1957
1934
|
return false;
|
|
1958
1935
|
}
|
|
1959
1936
|
}
|
|
1960
1937
|
case 5: {
|
|
1961
|
-
if (
|
|
1938
|
+
if (_x_105.$tag === 5) {
|
|
1962
1939
|
return true;
|
|
1963
1940
|
} else {
|
|
1964
1941
|
return false;
|
|
1965
1942
|
}
|
|
1966
1943
|
}
|
|
1967
1944
|
case 6: {
|
|
1968
|
-
if (
|
|
1945
|
+
if (_x_105.$tag === 6) {
|
|
1969
1946
|
return true;
|
|
1970
1947
|
} else {
|
|
1971
1948
|
return false;
|
|
1972
1949
|
}
|
|
1973
1950
|
}
|
|
1974
1951
|
case 7: {
|
|
1975
|
-
const _Ident =
|
|
1976
|
-
const _$42$
|
|
1977
|
-
if (
|
|
1978
|
-
const _Ident$2 =
|
|
1979
|
-
const _$42$
|
|
1980
|
-
|
|
1981
|
-
|
|
1952
|
+
const _Ident = _x_104;
|
|
1953
|
+
const _$42$x0_118 = _Ident._0;
|
|
1954
|
+
if (_x_105.$tag === 7) {
|
|
1955
|
+
const _Ident$2 = _x_105;
|
|
1956
|
+
const _$42$y0_119 = _Ident$2._0;
|
|
1957
|
+
_x0_118 = _$42$x0_118;
|
|
1958
|
+
_y0_119 = _$42$y0_119;
|
|
1982
1959
|
break _L$6;
|
|
1983
1960
|
} else {
|
|
1984
1961
|
return false;
|
|
1985
1962
|
}
|
|
1986
1963
|
}
|
|
1987
1964
|
case 8: {
|
|
1988
|
-
if (
|
|
1965
|
+
if (_x_105.$tag === 8) {
|
|
1989
1966
|
return true;
|
|
1990
1967
|
} else {
|
|
1991
1968
|
return false;
|
|
1992
1969
|
}
|
|
1993
1970
|
}
|
|
1994
1971
|
case 9: {
|
|
1995
|
-
if (
|
|
1972
|
+
if (_x_105.$tag === 9) {
|
|
1996
1973
|
return true;
|
|
1997
1974
|
} else {
|
|
1998
1975
|
return false;
|
|
1999
1976
|
}
|
|
2000
1977
|
}
|
|
2001
1978
|
case 10: {
|
|
2002
|
-
if (
|
|
1979
|
+
if (_x_105.$tag === 10) {
|
|
2003
1980
|
return true;
|
|
2004
1981
|
} else {
|
|
2005
1982
|
return false;
|
|
2006
1983
|
}
|
|
2007
1984
|
}
|
|
2008
1985
|
case 11: {
|
|
2009
|
-
if (
|
|
1986
|
+
if (_x_105.$tag === 11) {
|
|
2010
1987
|
return true;
|
|
2011
1988
|
} else {
|
|
2012
1989
|
return false;
|
|
2013
1990
|
}
|
|
2014
1991
|
}
|
|
2015
1992
|
case 12: {
|
|
2016
|
-
if (
|
|
1993
|
+
if (_x_105.$tag === 12) {
|
|
2017
1994
|
return true;
|
|
2018
1995
|
} else {
|
|
2019
1996
|
return false;
|
|
2020
1997
|
}
|
|
2021
1998
|
}
|
|
2022
1999
|
case 13: {
|
|
2023
|
-
if (
|
|
2000
|
+
if (_x_105.$tag === 13) {
|
|
2024
2001
|
return true;
|
|
2025
2002
|
} else {
|
|
2026
2003
|
return false;
|
|
2027
2004
|
}
|
|
2028
2005
|
}
|
|
2029
2006
|
case 14: {
|
|
2030
|
-
if (
|
|
2007
|
+
if (_x_105.$tag === 14) {
|
|
2031
2008
|
return true;
|
|
2032
2009
|
} else {
|
|
2033
2010
|
return false;
|
|
2034
2011
|
}
|
|
2035
2012
|
}
|
|
2036
2013
|
case 15: {
|
|
2037
|
-
if (
|
|
2014
|
+
if (_x_105.$tag === 15) {
|
|
2038
2015
|
return true;
|
|
2039
2016
|
} else {
|
|
2040
2017
|
return false;
|
|
2041
2018
|
}
|
|
2042
2019
|
}
|
|
2043
2020
|
case 16: {
|
|
2044
|
-
if (
|
|
2021
|
+
if (_x_105.$tag === 16) {
|
|
2045
2022
|
return true;
|
|
2046
2023
|
} else {
|
|
2047
2024
|
return false;
|
|
2048
2025
|
}
|
|
2049
2026
|
}
|
|
2050
2027
|
case 17: {
|
|
2051
|
-
if (
|
|
2028
|
+
if (_x_105.$tag === 17) {
|
|
2052
2029
|
return true;
|
|
2053
2030
|
} else {
|
|
2054
2031
|
return false;
|
|
2055
2032
|
}
|
|
2056
2033
|
}
|
|
2057
2034
|
case 18: {
|
|
2058
|
-
if (
|
|
2035
|
+
if (_x_105.$tag === 18) {
|
|
2059
2036
|
return true;
|
|
2060
2037
|
} else {
|
|
2061
2038
|
return false;
|
|
2062
2039
|
}
|
|
2063
2040
|
}
|
|
2064
2041
|
case 19: {
|
|
2065
|
-
if (
|
|
2042
|
+
if (_x_105.$tag === 19) {
|
|
2066
2043
|
return true;
|
|
2067
2044
|
} else {
|
|
2068
2045
|
return false;
|
|
2069
2046
|
}
|
|
2070
2047
|
}
|
|
2071
2048
|
case 20: {
|
|
2072
|
-
if (
|
|
2049
|
+
if (_x_105.$tag === 20) {
|
|
2073
2050
|
return true;
|
|
2074
2051
|
} else {
|
|
2075
2052
|
return false;
|
|
2076
2053
|
}
|
|
2077
2054
|
}
|
|
2078
2055
|
case 21: {
|
|
2079
|
-
if (
|
|
2056
|
+
if (_x_105.$tag === 21) {
|
|
2080
2057
|
return true;
|
|
2081
2058
|
} else {
|
|
2082
2059
|
return false;
|
|
2083
2060
|
}
|
|
2084
2061
|
}
|
|
2085
2062
|
case 22: {
|
|
2086
|
-
if (
|
|
2063
|
+
if (_x_105.$tag === 22) {
|
|
2087
2064
|
return true;
|
|
2088
2065
|
} else {
|
|
2089
2066
|
return false;
|
|
2090
2067
|
}
|
|
2091
2068
|
}
|
|
2092
2069
|
case 23: {
|
|
2093
|
-
if (
|
|
2070
|
+
if (_x_105.$tag === 23) {
|
|
2094
2071
|
return true;
|
|
2095
2072
|
} else {
|
|
2096
2073
|
return false;
|
|
2097
2074
|
}
|
|
2098
2075
|
}
|
|
2099
2076
|
case 24: {
|
|
2100
|
-
if (
|
|
2077
|
+
if (_x_105.$tag === 24) {
|
|
2101
2078
|
return true;
|
|
2102
2079
|
} else {
|
|
2103
2080
|
return false;
|
|
2104
2081
|
}
|
|
2105
2082
|
}
|
|
2106
2083
|
case 25: {
|
|
2107
|
-
if (
|
|
2084
|
+
if (_x_105.$tag === 25) {
|
|
2108
2085
|
return true;
|
|
2109
2086
|
} else {
|
|
2110
2087
|
return false;
|
|
2111
2088
|
}
|
|
2112
2089
|
}
|
|
2113
2090
|
case 26: {
|
|
2114
|
-
if (
|
|
2091
|
+
if (_x_105.$tag === 26) {
|
|
2115
2092
|
return true;
|
|
2116
2093
|
} else {
|
|
2117
2094
|
return false;
|
|
2118
2095
|
}
|
|
2119
2096
|
}
|
|
2120
2097
|
case 27: {
|
|
2121
|
-
if (
|
|
2098
|
+
if (_x_105.$tag === 27) {
|
|
2122
2099
|
return true;
|
|
2123
2100
|
} else {
|
|
2124
2101
|
return false;
|
|
2125
2102
|
}
|
|
2126
2103
|
}
|
|
2127
2104
|
case 28: {
|
|
2128
|
-
if (
|
|
2105
|
+
if (_x_105.$tag === 28) {
|
|
2129
2106
|
return true;
|
|
2130
2107
|
} else {
|
|
2131
2108
|
return false;
|
|
2132
2109
|
}
|
|
2133
2110
|
}
|
|
2134
2111
|
case 29: {
|
|
2135
|
-
if (
|
|
2112
|
+
if (_x_105.$tag === 29) {
|
|
2136
2113
|
return true;
|
|
2137
2114
|
} else {
|
|
2138
2115
|
return false;
|
|
2139
2116
|
}
|
|
2140
2117
|
}
|
|
2141
2118
|
case 30: {
|
|
2142
|
-
if (
|
|
2119
|
+
if (_x_105.$tag === 30) {
|
|
2143
2120
|
return true;
|
|
2144
2121
|
} else {
|
|
2145
2122
|
return false;
|
|
2146
2123
|
}
|
|
2147
2124
|
}
|
|
2148
2125
|
case 31: {
|
|
2149
|
-
if (
|
|
2126
|
+
if (_x_105.$tag === 31) {
|
|
2150
2127
|
return true;
|
|
2151
2128
|
} else {
|
|
2152
2129
|
return false;
|
|
2153
2130
|
}
|
|
2154
2131
|
}
|
|
2155
2132
|
case 32: {
|
|
2156
|
-
if (
|
|
2133
|
+
if (_x_105.$tag === 32) {
|
|
2157
2134
|
return true;
|
|
2158
2135
|
} else {
|
|
2159
2136
|
return false;
|
|
2160
2137
|
}
|
|
2161
2138
|
}
|
|
2162
2139
|
case 33: {
|
|
2163
|
-
if (
|
|
2140
|
+
if (_x_105.$tag === 33) {
|
|
2164
2141
|
return true;
|
|
2165
2142
|
} else {
|
|
2166
2143
|
return false;
|
|
2167
2144
|
}
|
|
2168
2145
|
}
|
|
2169
2146
|
case 34: {
|
|
2170
|
-
if (
|
|
2147
|
+
if (_x_105.$tag === 34) {
|
|
2171
2148
|
return true;
|
|
2172
2149
|
} else {
|
|
2173
2150
|
return false;
|
|
2174
2151
|
}
|
|
2175
2152
|
}
|
|
2176
2153
|
case 35: {
|
|
2177
|
-
if (
|
|
2154
|
+
if (_x_105.$tag === 35) {
|
|
2178
2155
|
return true;
|
|
2179
2156
|
} else {
|
|
2180
2157
|
return false;
|
|
2181
2158
|
}
|
|
2182
2159
|
}
|
|
2183
2160
|
case 36: {
|
|
2184
|
-
if (
|
|
2161
|
+
if (_x_105.$tag === 36) {
|
|
2185
2162
|
return true;
|
|
2186
2163
|
} else {
|
|
2187
2164
|
return false;
|
|
2188
2165
|
}
|
|
2189
2166
|
}
|
|
2190
2167
|
case 37: {
|
|
2191
|
-
if (
|
|
2168
|
+
if (_x_105.$tag === 37) {
|
|
2192
2169
|
return true;
|
|
2193
2170
|
} else {
|
|
2194
2171
|
return false;
|
|
2195
2172
|
}
|
|
2196
2173
|
}
|
|
2197
2174
|
case 38: {
|
|
2198
|
-
if (
|
|
2175
|
+
if (_x_105.$tag === 38) {
|
|
2199
2176
|
return true;
|
|
2200
2177
|
} else {
|
|
2201
2178
|
return false;
|
|
2202
2179
|
}
|
|
2203
2180
|
}
|
|
2204
2181
|
case 39: {
|
|
2205
|
-
if (
|
|
2182
|
+
if (_x_105.$tag === 39) {
|
|
2206
2183
|
return true;
|
|
2207
2184
|
} else {
|
|
2208
2185
|
return false;
|
|
2209
2186
|
}
|
|
2210
2187
|
}
|
|
2211
2188
|
case 40: {
|
|
2212
|
-
if (
|
|
2189
|
+
if (_x_105.$tag === 40) {
|
|
2213
2190
|
return true;
|
|
2214
2191
|
} else {
|
|
2215
2192
|
return false;
|
|
2216
2193
|
}
|
|
2217
2194
|
}
|
|
2218
2195
|
case 41: {
|
|
2219
|
-
if (
|
|
2196
|
+
if (_x_105.$tag === 41) {
|
|
2220
2197
|
return true;
|
|
2221
2198
|
} else {
|
|
2222
2199
|
return false;
|
|
2223
2200
|
}
|
|
2224
2201
|
}
|
|
2225
2202
|
case 42: {
|
|
2226
|
-
if (
|
|
2203
|
+
if (_x_105.$tag === 42) {
|
|
2227
2204
|
return true;
|
|
2228
2205
|
} else {
|
|
2229
2206
|
return false;
|
|
2230
2207
|
}
|
|
2231
2208
|
}
|
|
2232
2209
|
case 43: {
|
|
2233
|
-
if (
|
|
2210
|
+
if (_x_105.$tag === 43) {
|
|
2234
2211
|
return true;
|
|
2235
2212
|
} else {
|
|
2236
2213
|
return false;
|
|
2237
2214
|
}
|
|
2238
2215
|
}
|
|
2239
2216
|
case 44: {
|
|
2240
|
-
if (
|
|
2217
|
+
if (_x_105.$tag === 44) {
|
|
2241
2218
|
return true;
|
|
2242
2219
|
} else {
|
|
2243
2220
|
return false;
|
|
2244
2221
|
}
|
|
2245
2222
|
}
|
|
2246
2223
|
case 45: {
|
|
2247
|
-
if (
|
|
2224
|
+
if (_x_105.$tag === 45) {
|
|
2248
2225
|
return true;
|
|
2249
2226
|
} else {
|
|
2250
2227
|
return false;
|
|
2251
2228
|
}
|
|
2252
2229
|
}
|
|
2253
2230
|
case 46: {
|
|
2254
|
-
if (
|
|
2231
|
+
if (_x_105.$tag === 46) {
|
|
2255
2232
|
return true;
|
|
2256
2233
|
} else {
|
|
2257
2234
|
return false;
|
|
2258
2235
|
}
|
|
2259
2236
|
}
|
|
2260
2237
|
case 47: {
|
|
2261
|
-
if (
|
|
2238
|
+
if (_x_105.$tag === 47) {
|
|
2262
2239
|
return true;
|
|
2263
2240
|
} else {
|
|
2264
2241
|
return false;
|
|
2265
2242
|
}
|
|
2266
2243
|
}
|
|
2267
2244
|
case 48: {
|
|
2268
|
-
if (
|
|
2245
|
+
if (_x_105.$tag === 48) {
|
|
2269
2246
|
return true;
|
|
2270
2247
|
} else {
|
|
2271
2248
|
return false;
|
|
2272
2249
|
}
|
|
2273
2250
|
}
|
|
2274
2251
|
case 49: {
|
|
2275
|
-
if (
|
|
2252
|
+
if (_x_105.$tag === 49) {
|
|
2276
2253
|
return true;
|
|
2277
2254
|
} else {
|
|
2278
2255
|
return false;
|
|
2279
2256
|
}
|
|
2280
2257
|
}
|
|
2281
2258
|
case 50: {
|
|
2282
|
-
if (
|
|
2259
|
+
if (_x_105.$tag === 50) {
|
|
2283
2260
|
return true;
|
|
2284
2261
|
} else {
|
|
2285
2262
|
return false;
|
|
2286
2263
|
}
|
|
2287
2264
|
}
|
|
2288
2265
|
case 51: {
|
|
2289
|
-
if (
|
|
2266
|
+
if (_x_105.$tag === 51) {
|
|
2290
2267
|
return true;
|
|
2291
2268
|
} else {
|
|
2292
2269
|
return false;
|
|
2293
2270
|
}
|
|
2294
2271
|
}
|
|
2295
2272
|
case 52: {
|
|
2296
|
-
if (
|
|
2273
|
+
if (_x_105.$tag === 52) {
|
|
2297
2274
|
return true;
|
|
2298
2275
|
} else {
|
|
2299
2276
|
return false;
|
|
2300
2277
|
}
|
|
2301
2278
|
}
|
|
2302
2279
|
case 53: {
|
|
2303
|
-
if (
|
|
2280
|
+
if (_x_105.$tag === 53) {
|
|
2304
2281
|
return true;
|
|
2305
2282
|
} else {
|
|
2306
2283
|
return false;
|
|
2307
2284
|
}
|
|
2308
2285
|
}
|
|
2309
2286
|
case 54: {
|
|
2310
|
-
if (
|
|
2287
|
+
if (_x_105.$tag === 54) {
|
|
2311
2288
|
return true;
|
|
2312
2289
|
} else {
|
|
2313
2290
|
return false;
|
|
2314
2291
|
}
|
|
2315
2292
|
}
|
|
2316
2293
|
case 55: {
|
|
2317
|
-
if (
|
|
2294
|
+
if (_x_105.$tag === 55) {
|
|
2318
2295
|
return true;
|
|
2319
2296
|
} else {
|
|
2320
2297
|
return false;
|
|
2321
2298
|
}
|
|
2322
2299
|
}
|
|
2323
2300
|
case 56: {
|
|
2324
|
-
if (
|
|
2301
|
+
if (_x_105.$tag === 56) {
|
|
2325
2302
|
return true;
|
|
2326
2303
|
} else {
|
|
2327
2304
|
return false;
|
|
2328
2305
|
}
|
|
2329
2306
|
}
|
|
2330
2307
|
case 57: {
|
|
2331
|
-
if (
|
|
2308
|
+
if (_x_105.$tag === 57) {
|
|
2332
2309
|
return true;
|
|
2333
2310
|
} else {
|
|
2334
2311
|
return false;
|
|
2335
2312
|
}
|
|
2336
2313
|
}
|
|
2337
2314
|
case 58: {
|
|
2338
|
-
if (
|
|
2315
|
+
if (_x_105.$tag === 58) {
|
|
2339
2316
|
return true;
|
|
2340
2317
|
} else {
|
|
2341
2318
|
return false;
|
|
2342
2319
|
}
|
|
2343
2320
|
}
|
|
2344
2321
|
case 59: {
|
|
2345
|
-
if (
|
|
2322
|
+
if (_x_105.$tag === 59) {
|
|
2346
2323
|
return true;
|
|
2347
2324
|
} else {
|
|
2348
2325
|
return false;
|
|
2349
2326
|
}
|
|
2350
2327
|
}
|
|
2351
2328
|
case 60: {
|
|
2352
|
-
if (
|
|
2329
|
+
if (_x_105.$tag === 60) {
|
|
2353
2330
|
return true;
|
|
2354
2331
|
} else {
|
|
2355
2332
|
return false;
|
|
2356
2333
|
}
|
|
2357
2334
|
}
|
|
2358
2335
|
case 61: {
|
|
2359
|
-
if (
|
|
2336
|
+
if (_x_105.$tag === 61) {
|
|
2360
2337
|
return true;
|
|
2361
2338
|
} else {
|
|
2362
2339
|
return false;
|
|
2363
2340
|
}
|
|
2364
2341
|
}
|
|
2365
2342
|
case 62: {
|
|
2366
|
-
if (
|
|
2343
|
+
if (_x_105.$tag === 62) {
|
|
2367
2344
|
return true;
|
|
2368
2345
|
} else {
|
|
2369
2346
|
return false;
|
|
2370
2347
|
}
|
|
2371
2348
|
}
|
|
2372
2349
|
case 63: {
|
|
2373
|
-
if (
|
|
2350
|
+
if (_x_105.$tag === 63) {
|
|
2374
2351
|
return true;
|
|
2375
2352
|
} else {
|
|
2376
2353
|
return false;
|
|
2377
2354
|
}
|
|
2378
2355
|
}
|
|
2379
2356
|
case 64: {
|
|
2380
|
-
if (
|
|
2357
|
+
if (_x_105.$tag === 64) {
|
|
2381
2358
|
return true;
|
|
2382
2359
|
} else {
|
|
2383
2360
|
return false;
|
|
2384
2361
|
}
|
|
2385
2362
|
}
|
|
2386
2363
|
case 65: {
|
|
2387
|
-
if (
|
|
2364
|
+
if (_x_105.$tag === 65) {
|
|
2388
2365
|
return true;
|
|
2389
2366
|
} else {
|
|
2390
2367
|
return false;
|
|
2391
2368
|
}
|
|
2392
2369
|
}
|
|
2393
2370
|
case 66: {
|
|
2394
|
-
if (
|
|
2371
|
+
if (_x_105.$tag === 66) {
|
|
2395
2372
|
return true;
|
|
2396
2373
|
} else {
|
|
2397
2374
|
return false;
|
|
2398
2375
|
}
|
|
2399
2376
|
}
|
|
2400
2377
|
case 67: {
|
|
2401
|
-
if (
|
|
2378
|
+
if (_x_105.$tag === 67) {
|
|
2402
2379
|
return true;
|
|
2403
2380
|
} else {
|
|
2404
2381
|
return false;
|
|
2405
2382
|
}
|
|
2406
2383
|
}
|
|
2407
2384
|
case 68: {
|
|
2408
|
-
if (
|
|
2385
|
+
if (_x_105.$tag === 68) {
|
|
2409
2386
|
return true;
|
|
2410
2387
|
} else {
|
|
2411
2388
|
return false;
|
|
2412
2389
|
}
|
|
2413
2390
|
}
|
|
2414
2391
|
case 69: {
|
|
2415
|
-
if (
|
|
2392
|
+
if (_x_105.$tag === 69) {
|
|
2416
2393
|
return true;
|
|
2417
2394
|
} else {
|
|
2418
2395
|
return false;
|
|
2419
2396
|
}
|
|
2420
2397
|
}
|
|
2421
2398
|
case 70: {
|
|
2422
|
-
if (
|
|
2399
|
+
if (_x_105.$tag === 70) {
|
|
2423
2400
|
return true;
|
|
2424
2401
|
} else {
|
|
2425
2402
|
return false;
|
|
2426
2403
|
}
|
|
2427
2404
|
}
|
|
2428
2405
|
case 71: {
|
|
2429
|
-
if (
|
|
2406
|
+
if (_x_105.$tag === 71) {
|
|
2430
2407
|
return true;
|
|
2431
2408
|
} else {
|
|
2432
2409
|
return false;
|
|
2433
2410
|
}
|
|
2434
2411
|
}
|
|
2435
2412
|
case 72: {
|
|
2436
|
-
if (
|
|
2413
|
+
if (_x_105.$tag === 72) {
|
|
2437
2414
|
return true;
|
|
2438
2415
|
} else {
|
|
2439
2416
|
return false;
|
|
2440
2417
|
}
|
|
2441
2418
|
}
|
|
2442
2419
|
case 73: {
|
|
2443
|
-
if (
|
|
2420
|
+
if (_x_105.$tag === 73) {
|
|
2444
2421
|
return true;
|
|
2445
2422
|
} else {
|
|
2446
2423
|
return false;
|
|
2447
2424
|
}
|
|
2448
2425
|
}
|
|
2449
2426
|
case 74: {
|
|
2450
|
-
if (
|
|
2427
|
+
if (_x_105.$tag === 74) {
|
|
2451
2428
|
return true;
|
|
2452
2429
|
} else {
|
|
2453
2430
|
return false;
|
|
2454
2431
|
}
|
|
2455
2432
|
}
|
|
2456
2433
|
case 75: {
|
|
2457
|
-
if (
|
|
2434
|
+
if (_x_105.$tag === 75) {
|
|
2458
2435
|
return true;
|
|
2459
2436
|
} else {
|
|
2460
2437
|
return false;
|
|
2461
2438
|
}
|
|
2462
2439
|
}
|
|
2463
2440
|
case 76: {
|
|
2464
|
-
if (
|
|
2441
|
+
if (_x_105.$tag === 76) {
|
|
2465
2442
|
return true;
|
|
2466
2443
|
} else {
|
|
2467
2444
|
return false;
|
|
2468
2445
|
}
|
|
2469
2446
|
}
|
|
2470
2447
|
case 77: {
|
|
2471
|
-
if (
|
|
2448
|
+
if (_x_105.$tag === 77) {
|
|
2472
2449
|
return true;
|
|
2473
2450
|
} else {
|
|
2474
2451
|
return false;
|
|
2475
2452
|
}
|
|
2476
2453
|
}
|
|
2477
2454
|
case 78: {
|
|
2478
|
-
if (
|
|
2455
|
+
if (_x_105.$tag === 78) {
|
|
2479
2456
|
return true;
|
|
2480
2457
|
} else {
|
|
2481
2458
|
return false;
|
|
2482
2459
|
}
|
|
2483
2460
|
}
|
|
2484
2461
|
case 79: {
|
|
2485
|
-
if (
|
|
2462
|
+
if (_x_105.$tag === 79) {
|
|
2486
2463
|
return true;
|
|
2487
2464
|
} else {
|
|
2488
2465
|
return false;
|
|
2489
2466
|
}
|
|
2490
2467
|
}
|
|
2491
2468
|
case 80: {
|
|
2492
|
-
if (
|
|
2469
|
+
if (_x_105.$tag === 80) {
|
|
2493
2470
|
return true;
|
|
2494
2471
|
} else {
|
|
2495
2472
|
return false;
|
|
2496
2473
|
}
|
|
2497
2474
|
}
|
|
2498
2475
|
case 81: {
|
|
2499
|
-
if (
|
|
2476
|
+
if (_x_105.$tag === 81) {
|
|
2500
2477
|
return true;
|
|
2501
2478
|
} else {
|
|
2502
2479
|
return false;
|
|
2503
2480
|
}
|
|
2504
2481
|
}
|
|
2505
2482
|
case 82: {
|
|
2506
|
-
if (
|
|
2483
|
+
if (_x_105.$tag === 82) {
|
|
2507
2484
|
return true;
|
|
2508
2485
|
} else {
|
|
2509
2486
|
return false;
|
|
2510
2487
|
}
|
|
2511
2488
|
}
|
|
2512
2489
|
case 83: {
|
|
2513
|
-
if (
|
|
2490
|
+
if (_x_105.$tag === 83) {
|
|
2514
2491
|
return true;
|
|
2515
2492
|
} else {
|
|
2516
2493
|
return false;
|
|
2517
2494
|
}
|
|
2518
2495
|
}
|
|
2519
2496
|
case 84: {
|
|
2520
|
-
if (
|
|
2497
|
+
if (_x_105.$tag === 84) {
|
|
2521
2498
|
return true;
|
|
2522
2499
|
} else {
|
|
2523
2500
|
return false;
|
|
2524
2501
|
}
|
|
2525
2502
|
}
|
|
2526
2503
|
case 85: {
|
|
2527
|
-
if (
|
|
2504
|
+
if (_x_105.$tag === 85) {
|
|
2528
2505
|
return true;
|
|
2529
2506
|
} else {
|
|
2530
2507
|
return false;
|
|
2531
2508
|
}
|
|
2532
2509
|
}
|
|
2533
2510
|
case 86: {
|
|
2534
|
-
if (
|
|
2511
|
+
if (_x_105.$tag === 86) {
|
|
2535
2512
|
return true;
|
|
2536
2513
|
} else {
|
|
2537
2514
|
return false;
|
|
2538
2515
|
}
|
|
2539
2516
|
}
|
|
2540
2517
|
case 87: {
|
|
2541
|
-
if (
|
|
2518
|
+
if (_x_105.$tag === 87) {
|
|
2542
2519
|
return true;
|
|
2543
2520
|
} else {
|
|
2544
2521
|
return false;
|
|
2545
2522
|
}
|
|
2546
2523
|
}
|
|
2547
2524
|
case 88: {
|
|
2548
|
-
if (
|
|
2525
|
+
if (_x_105.$tag === 88) {
|
|
2549
2526
|
return true;
|
|
2550
2527
|
} else {
|
|
2551
2528
|
return false;
|
|
2552
2529
|
}
|
|
2553
2530
|
}
|
|
2554
2531
|
case 89: {
|
|
2555
|
-
if (
|
|
2532
|
+
if (_x_105.$tag === 89) {
|
|
2556
2533
|
return true;
|
|
2557
2534
|
} else {
|
|
2558
2535
|
return false;
|
|
2559
2536
|
}
|
|
2560
2537
|
}
|
|
2561
2538
|
case 90: {
|
|
2562
|
-
if (
|
|
2539
|
+
if (_x_105.$tag === 90) {
|
|
2563
2540
|
return true;
|
|
2564
2541
|
} else {
|
|
2565
2542
|
return false;
|
|
2566
2543
|
}
|
|
2567
2544
|
}
|
|
2568
2545
|
case 91: {
|
|
2569
|
-
if (
|
|
2546
|
+
if (_x_105.$tag === 91) {
|
|
2570
2547
|
return true;
|
|
2571
2548
|
} else {
|
|
2572
2549
|
return false;
|
|
2573
2550
|
}
|
|
2574
2551
|
}
|
|
2575
2552
|
case 92: {
|
|
2576
|
-
if (
|
|
2553
|
+
if (_x_105.$tag === 92) {
|
|
2577
2554
|
return true;
|
|
2578
2555
|
} else {
|
|
2579
2556
|
return false;
|
|
2580
2557
|
}
|
|
2581
2558
|
}
|
|
2582
2559
|
case 93: {
|
|
2583
|
-
if (
|
|
2560
|
+
if (_x_105.$tag === 93) {
|
|
2584
2561
|
return true;
|
|
2585
2562
|
} else {
|
|
2586
2563
|
return false;
|
|
2587
2564
|
}
|
|
2588
2565
|
}
|
|
2589
2566
|
case 94: {
|
|
2590
|
-
if (
|
|
2567
|
+
if (_x_105.$tag === 94) {
|
|
2591
2568
|
return true;
|
|
2592
2569
|
} else {
|
|
2593
2570
|
return false;
|
|
2594
2571
|
}
|
|
2595
2572
|
}
|
|
2596
2573
|
case 95: {
|
|
2597
|
-
if (
|
|
2574
|
+
if (_x_105.$tag === 95) {
|
|
2598
2575
|
return true;
|
|
2599
2576
|
} else {
|
|
2600
2577
|
return false;
|
|
2601
2578
|
}
|
|
2602
2579
|
}
|
|
2603
2580
|
case 96: {
|
|
2604
|
-
if (
|
|
2581
|
+
if (_x_105.$tag === 96) {
|
|
2605
2582
|
return true;
|
|
2606
2583
|
} else {
|
|
2607
2584
|
return false;
|
|
2608
2585
|
}
|
|
2609
2586
|
}
|
|
2610
2587
|
case 97: {
|
|
2611
|
-
if (
|
|
2588
|
+
if (_x_105.$tag === 97) {
|
|
2612
2589
|
return true;
|
|
2613
2590
|
} else {
|
|
2614
2591
|
return false;
|
|
2615
2592
|
}
|
|
2616
2593
|
}
|
|
2617
2594
|
case 98: {
|
|
2618
|
-
if (
|
|
2595
|
+
if (_x_105.$tag === 98) {
|
|
2619
2596
|
return true;
|
|
2620
2597
|
} else {
|
|
2621
2598
|
return false;
|
|
2622
2599
|
}
|
|
2623
2600
|
}
|
|
2624
2601
|
case 99: {
|
|
2625
|
-
if (
|
|
2602
|
+
if (_x_105.$tag === 99) {
|
|
2626
2603
|
return true;
|
|
2627
2604
|
} else {
|
|
2628
2605
|
return false;
|
|
2629
2606
|
}
|
|
2630
2607
|
}
|
|
2631
2608
|
case 100: {
|
|
2632
|
-
if (
|
|
2609
|
+
if (_x_105.$tag === 100) {
|
|
2633
2610
|
return true;
|
|
2634
2611
|
} else {
|
|
2635
2612
|
return false;
|
|
2636
2613
|
}
|
|
2637
2614
|
}
|
|
2638
2615
|
case 101: {
|
|
2639
|
-
if (
|
|
2616
|
+
if (_x_105.$tag === 101) {
|
|
2640
2617
|
return true;
|
|
2641
2618
|
} else {
|
|
2642
2619
|
return false;
|
|
2643
2620
|
}
|
|
2644
2621
|
}
|
|
2645
2622
|
case 102: {
|
|
2646
|
-
if (
|
|
2623
|
+
if (_x_105.$tag === 102) {
|
|
2647
2624
|
return true;
|
|
2648
2625
|
} else {
|
|
2649
2626
|
return false;
|
|
2650
2627
|
}
|
|
2651
2628
|
}
|
|
2652
2629
|
case 103: {
|
|
2653
|
-
if (
|
|
2630
|
+
if (_x_105.$tag === 103) {
|
|
2654
2631
|
return true;
|
|
2655
2632
|
} else {
|
|
2656
2633
|
return false;
|
|
2657
2634
|
}
|
|
2658
2635
|
}
|
|
2659
2636
|
case 104: {
|
|
2660
|
-
if (
|
|
2637
|
+
if (_x_105.$tag === 104) {
|
|
2661
2638
|
return true;
|
|
2662
2639
|
} else {
|
|
2663
2640
|
return false;
|
|
2664
2641
|
}
|
|
2665
2642
|
}
|
|
2666
2643
|
case 105: {
|
|
2667
|
-
if (
|
|
2644
|
+
if (_x_105.$tag === 105) {
|
|
2668
2645
|
return true;
|
|
2669
2646
|
} else {
|
|
2670
2647
|
return false;
|
|
2671
2648
|
}
|
|
2672
2649
|
}
|
|
2673
2650
|
case 106: {
|
|
2674
|
-
if (
|
|
2651
|
+
if (_x_105.$tag === 106) {
|
|
2675
2652
|
return true;
|
|
2676
2653
|
} else {
|
|
2677
2654
|
return false;
|
|
2678
2655
|
}
|
|
2679
2656
|
}
|
|
2680
2657
|
case 107: {
|
|
2681
|
-
if (
|
|
2658
|
+
if (_x_105.$tag === 107) {
|
|
2682
2659
|
return true;
|
|
2683
2660
|
} else {
|
|
2684
2661
|
return false;
|
|
2685
2662
|
}
|
|
2686
2663
|
}
|
|
2687
2664
|
case 108: {
|
|
2688
|
-
if (
|
|
2665
|
+
if (_x_105.$tag === 108) {
|
|
2689
2666
|
return true;
|
|
2690
2667
|
} else {
|
|
2691
2668
|
return false;
|
|
2692
2669
|
}
|
|
2693
2670
|
}
|
|
2694
2671
|
case 109: {
|
|
2695
|
-
const _Indent =
|
|
2696
|
-
const _$42$
|
|
2697
|
-
if (
|
|
2698
|
-
const _Indent$2 =
|
|
2699
|
-
const _$42$
|
|
2700
|
-
|
|
2701
|
-
|
|
2672
|
+
const _Indent = _x_104;
|
|
2673
|
+
const _$42$x0_120 = _Indent._0;
|
|
2674
|
+
if (_x_105.$tag === 109) {
|
|
2675
|
+
const _Indent$2 = _x_105;
|
|
2676
|
+
const _$42$y0_121 = _Indent$2._0;
|
|
2677
|
+
_x0_120 = _$42$x0_120;
|
|
2678
|
+
_y0_121 = _$42$y0_121;
|
|
2702
2679
|
break _L$5;
|
|
2703
2680
|
} else {
|
|
2704
2681
|
return false;
|
|
2705
2682
|
}
|
|
2706
2683
|
}
|
|
2707
2684
|
case 110: {
|
|
2708
|
-
const _InterpStr =
|
|
2709
|
-
const _$42$
|
|
2710
|
-
if (
|
|
2711
|
-
const _InterpStr$2 =
|
|
2712
|
-
const _$42$
|
|
2713
|
-
|
|
2714
|
-
|
|
2685
|
+
const _InterpStr = _x_104;
|
|
2686
|
+
const _$42$x0_122 = _InterpStr._0;
|
|
2687
|
+
if (_x_105.$tag === 110) {
|
|
2688
|
+
const _InterpStr$2 = _x_105;
|
|
2689
|
+
const _$42$y0_123 = _InterpStr$2._0;
|
|
2690
|
+
_x0_122 = _$42$x0_122;
|
|
2691
|
+
_y0_123 = _$42$y0_123;
|
|
2715
2692
|
break _L$4;
|
|
2716
2693
|
} else {
|
|
2717
2694
|
return false;
|
|
2718
2695
|
}
|
|
2719
2696
|
}
|
|
2720
2697
|
case 111: {
|
|
2721
|
-
const _Shebang =
|
|
2722
|
-
const _$42$
|
|
2723
|
-
if (
|
|
2724
|
-
const _Shebang$2 =
|
|
2725
|
-
const _$42$
|
|
2726
|
-
|
|
2727
|
-
|
|
2698
|
+
const _Shebang = _x_104;
|
|
2699
|
+
const _$42$x0_124 = _Shebang._0;
|
|
2700
|
+
if (_x_105.$tag === 111) {
|
|
2701
|
+
const _Shebang$2 = _x_105;
|
|
2702
|
+
const _$42$y0_125 = _Shebang$2._0;
|
|
2703
|
+
_x0_124 = _$42$x0_124;
|
|
2704
|
+
_y0_125 = _$42$y0_125;
|
|
2728
2705
|
break _L$3;
|
|
2729
2706
|
} else {
|
|
2730
2707
|
return false;
|
|
2731
2708
|
}
|
|
2732
2709
|
}
|
|
2733
2710
|
case 112: {
|
|
2734
|
-
const _Comment =
|
|
2735
|
-
const _$42$
|
|
2736
|
-
if (
|
|
2737
|
-
const _Comment$2 =
|
|
2738
|
-
const _$42$
|
|
2739
|
-
|
|
2740
|
-
|
|
2711
|
+
const _Comment = _x_104;
|
|
2712
|
+
const _$42$x0_126 = _Comment._0;
|
|
2713
|
+
if (_x_105.$tag === 112) {
|
|
2714
|
+
const _Comment$2 = _x_105;
|
|
2715
|
+
const _$42$y0_127 = _Comment$2._0;
|
|
2716
|
+
_x0_126 = _$42$x0_126;
|
|
2717
|
+
_y0_127 = _$42$y0_127;
|
|
2741
2718
|
break _L$2;
|
|
2742
2719
|
} else {
|
|
2743
2720
|
return false;
|
|
2744
2721
|
}
|
|
2745
2722
|
}
|
|
2746
2723
|
case 113: {
|
|
2747
|
-
const _BlockComment =
|
|
2748
|
-
const _$42$
|
|
2749
|
-
if (
|
|
2750
|
-
const _BlockComment$2 =
|
|
2751
|
-
const _$42$
|
|
2752
|
-
|
|
2753
|
-
|
|
2724
|
+
const _BlockComment = _x_104;
|
|
2725
|
+
const _$42$x0_128 = _BlockComment._0;
|
|
2726
|
+
if (_x_105.$tag === 113) {
|
|
2727
|
+
const _BlockComment$2 = _x_105;
|
|
2728
|
+
const _$42$y0_129 = _BlockComment$2._0;
|
|
2729
|
+
_x0_128 = _$42$x0_128;
|
|
2730
|
+
_y0_129 = _$42$y0_129;
|
|
2754
2731
|
break _L;
|
|
2755
2732
|
} else {
|
|
2756
2733
|
return false;
|
|
2757
2734
|
}
|
|
2758
2735
|
}
|
|
2759
2736
|
default: {
|
|
2760
|
-
if (
|
|
2737
|
+
if (_x_105.$tag === 114) {
|
|
2761
2738
|
return true;
|
|
2762
2739
|
} else {
|
|
2763
2740
|
return false;
|
|
@@ -2765,27 +2742,27 @@ function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(_x_102, _x_103) {
|
|
|
2765
2742
|
}
|
|
2766
2743
|
}
|
|
2767
2744
|
}
|
|
2768
|
-
return
|
|
2745
|
+
return _x0_106 === _y0_107;
|
|
2769
2746
|
}
|
|
2770
|
-
return
|
|
2747
|
+
return _x0_108 === _y0_109;
|
|
2771
2748
|
}
|
|
2772
|
-
return
|
|
2749
|
+
return _x0_110 === _y0_111;
|
|
2773
2750
|
}
|
|
2774
|
-
return
|
|
2751
|
+
return _x0_112 === _y0_113;
|
|
2775
2752
|
}
|
|
2776
|
-
return
|
|
2753
|
+
return _x0_114 === _y0_116 && _x1_115 === _y1_117;
|
|
2777
2754
|
}
|
|
2778
|
-
return
|
|
2755
|
+
return _x0_118 === _y0_119;
|
|
2779
2756
|
}
|
|
2780
|
-
return
|
|
2757
|
+
return _x0_120 === _y0_121;
|
|
2781
2758
|
}
|
|
2782
|
-
return _M0IPC15array5ArrayPB2Eq5equalGsE(
|
|
2759
|
+
return _M0IPC15array5ArrayPB2Eq5equalGsE(_x0_122, _y0_123);
|
|
2783
2760
|
}
|
|
2784
|
-
return
|
|
2761
|
+
return _x0_124 === _y0_125;
|
|
2785
2762
|
}
|
|
2786
|
-
return
|
|
2763
|
+
return _x0_126 === _y0_127;
|
|
2787
2764
|
}
|
|
2788
|
-
return
|
|
2765
|
+
return _x0_128 === _y0_129;
|
|
2789
2766
|
}
|
|
2790
2767
|
function _M0MP48username4core3src5lexer5Lexer3new(source) {
|
|
2791
2768
|
const chars = _M0MPC16string6String9to__array(source);
|
|
@@ -5346,7 +5323,11 @@ function _M0MP48username4core3src6parser6Parser11parse__stmt(self) {
|
|
|
5346
5323
|
case 11: {
|
|
5347
5324
|
self.pos = self.pos + 1 | 0;
|
|
5348
5325
|
const value = _M0MP48username4core3src6parser6Parser11parse__expr(self);
|
|
5349
|
-
|
|
5326
|
+
if (expr$2.$tag === 15) {
|
|
5327
|
+
return new _M0DTP48username4core3src6parser4Stmt8ExprStmt(expr$2);
|
|
5328
|
+
} else {
|
|
5329
|
+
return _M0MP48username4core3src6parser6Parser14maybe__postfix(self, new _M0DTP48username4core3src6parser4Stmt6Assign(expr$2, value));
|
|
5330
|
+
}
|
|
5350
5331
|
}
|
|
5351
5332
|
default: {
|
|
5352
5333
|
return _M0MP48username4core3src6parser6Parser14maybe__postfix(self, new _M0DTP48username4core3src6parser4Stmt8ExprStmt(expr$2));
|
|
@@ -5956,7 +5937,7 @@ function _M0MP48username4core3src6parser6Parser16parse__var__decl(self, kind) {
|
|
|
5956
5937
|
}
|
|
5957
5938
|
_M0MP48username4core3src6parser6Parser6expect(self, _M0DTP48username4core3src5lexer9TokenKind2Be__);
|
|
5958
5939
|
const value = _M0MP48username4core3src6parser6Parser11parse__expr(self);
|
|
5959
|
-
return _M0MP48username4core3src6parser6Parser14maybe__postfix(self, new
|
|
5940
|
+
return _M0MP48username4core3src6parser6Parser14maybe__postfix(self, new _M0DTP48username4core3src6parser4Stmt13DottedVarInit(kind, name, prop, value));
|
|
5960
5941
|
}
|
|
5961
5942
|
if (_M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(_M0MP48username4core3src6parser6Parser4peek(self), _M0DTP48username4core3src5lexer9TokenKind2Of__)) {
|
|
5962
5943
|
self.pos = self.pos + 1 | 0;
|
|
@@ -7120,151 +7101,161 @@ function _M0FP48username4core3src7codegen16stmt__has__yield(stmt) {
|
|
|
7120
7101
|
_L$10: {
|
|
7121
7102
|
let e$2;
|
|
7122
7103
|
_L$11: {
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7104
|
+
let e$3;
|
|
7105
|
+
_L$12: {
|
|
7106
|
+
switch (stmt$2.$tag) {
|
|
7107
|
+
case 24: {
|
|
7108
|
+
const _ExprStmt = stmt$2;
|
|
7109
|
+
const _e = _ExprStmt._0;
|
|
7110
|
+
e$3 = _e;
|
|
7111
|
+
break _L$12;
|
|
7112
|
+
}
|
|
7113
|
+
case 21: {
|
|
7114
|
+
const _Return = stmt$2;
|
|
7115
|
+
const _x = _Return._0;
|
|
7116
|
+
if (_x === undefined) {
|
|
7117
|
+
return false;
|
|
7118
|
+
} else {
|
|
7119
|
+
const _Some = _x;
|
|
7120
|
+
const _e$2 = _Some;
|
|
7121
|
+
e$3 = _e$2;
|
|
7122
|
+
break _L$12;
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
case 20: {
|
|
7126
|
+
const _Throw = stmt$2;
|
|
7127
|
+
const _e$2 = _Throw._0;
|
|
7128
|
+
e$3 = _e$2;
|
|
7129
|
+
break _L$12;
|
|
7130
|
+
}
|
|
7131
|
+
case 32: {
|
|
7132
|
+
const _DeleteStmt = stmt$2;
|
|
7133
|
+
const _e$3 = _DeleteStmt._0;
|
|
7134
|
+
e$3 = _e$3;
|
|
7135
|
+
break _L$12;
|
|
7136
|
+
}
|
|
7137
|
+
case 0: {
|
|
7138
|
+
const _VarDecl = stmt$2;
|
|
7139
|
+
const _e$4 = _VarDecl._2;
|
|
7140
|
+
e$2 = _e$4;
|
|
7139
7141
|
break _L$11;
|
|
7140
7142
|
}
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7165
|
-
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
7173
|
-
|
|
7174
|
-
|
|
7175
|
-
|
|
7176
|
-
|
|
7177
|
-
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7215
|
-
|
|
7216
|
-
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
const _s$4 = _ExportDefault._0;
|
|
7255
|
-
s = _s$4;
|
|
7256
|
-
break _L$2;
|
|
7257
|
-
}
|
|
7258
|
-
case 28: {
|
|
7259
|
-
const _PublicDecl = stmt$2;
|
|
7260
|
-
const _s$5 = _PublicDecl._0;
|
|
7261
|
-
s = _s$5;
|
|
7262
|
-
break _L$2;
|
|
7263
|
-
}
|
|
7264
|
-
default: {
|
|
7265
|
-
return false;
|
|
7143
|
+
case 4: {
|
|
7144
|
+
const _Assign = stmt$2;
|
|
7145
|
+
const _e$5 = _Assign._1;
|
|
7146
|
+
e$2 = _e$5;
|
|
7147
|
+
break _L$11;
|
|
7148
|
+
}
|
|
7149
|
+
case 3: {
|
|
7150
|
+
const _DottedVarInit = stmt$2;
|
|
7151
|
+
const _e$6 = _DottedVarInit._3;
|
|
7152
|
+
e = _e$6;
|
|
7153
|
+
break _L$10;
|
|
7154
|
+
}
|
|
7155
|
+
case 7: {
|
|
7156
|
+
const _If = stmt$2;
|
|
7157
|
+
const _cond = _If._0;
|
|
7158
|
+
const _body = _If._1;
|
|
7159
|
+
const _elifs = _If._2;
|
|
7160
|
+
const _else_body = _If._3;
|
|
7161
|
+
elifs = _elifs;
|
|
7162
|
+
cond$3 = _cond;
|
|
7163
|
+
body$4 = _body;
|
|
7164
|
+
else_body = _else_body;
|
|
7165
|
+
break _L$9;
|
|
7166
|
+
}
|
|
7167
|
+
case 9: {
|
|
7168
|
+
const _While = stmt$2;
|
|
7169
|
+
const _cond$2 = _While._0;
|
|
7170
|
+
const _body$2 = _While._1;
|
|
7171
|
+
body$3 = _body$2;
|
|
7172
|
+
cond$2 = _cond$2;
|
|
7173
|
+
break _L$8;
|
|
7174
|
+
}
|
|
7175
|
+
case 10: {
|
|
7176
|
+
const _Until = stmt$2;
|
|
7177
|
+
const _cond$3 = _Until._0;
|
|
7178
|
+
const _body$3 = _Until._1;
|
|
7179
|
+
body$3 = _body$3;
|
|
7180
|
+
cond$2 = _cond$3;
|
|
7181
|
+
break _L$8;
|
|
7182
|
+
}
|
|
7183
|
+
case 11: {
|
|
7184
|
+
const _DoWhile = stmt$2;
|
|
7185
|
+
const _cond$4 = _DoWhile._0;
|
|
7186
|
+
const _body$4 = _DoWhile._1;
|
|
7187
|
+
body$3 = _body$4;
|
|
7188
|
+
cond$2 = _cond$4;
|
|
7189
|
+
break _L$8;
|
|
7190
|
+
}
|
|
7191
|
+
case 12: {
|
|
7192
|
+
const _ForIn = stmt$2;
|
|
7193
|
+
const _iter = _ForIn._2;
|
|
7194
|
+
const _body$5 = _ForIn._3;
|
|
7195
|
+
iter = _iter;
|
|
7196
|
+
body$2 = _body$5;
|
|
7197
|
+
break _L$7;
|
|
7198
|
+
}
|
|
7199
|
+
case 13: {
|
|
7200
|
+
const _ForRange = stmt$2;
|
|
7201
|
+
const _start = _ForRange._1;
|
|
7202
|
+
const _end = _ForRange._2;
|
|
7203
|
+
const _body$6 = _ForRange._3;
|
|
7204
|
+
end = _end;
|
|
7205
|
+
start = _start;
|
|
7206
|
+
body = _body$6;
|
|
7207
|
+
break _L$6;
|
|
7208
|
+
}
|
|
7209
|
+
case 19: {
|
|
7210
|
+
const _TryCatch = stmt$2;
|
|
7211
|
+
const _try_body = _TryCatch._0;
|
|
7212
|
+
const _catch_body = _TryCatch._2;
|
|
7213
|
+
const _finally_body = _TryCatch._3;
|
|
7214
|
+
catch_body = _catch_body;
|
|
7215
|
+
try_body = _try_body;
|
|
7216
|
+
finally_body = _finally_body;
|
|
7217
|
+
break _L$5;
|
|
7218
|
+
}
|
|
7219
|
+
case 16: {
|
|
7220
|
+
const _PostfixIf = stmt$2;
|
|
7221
|
+
const _s = _PostfixIf._0;
|
|
7222
|
+
const _cond$5 = _PostfixIf._1;
|
|
7223
|
+
cond = _cond$5;
|
|
7224
|
+
s$3 = _s;
|
|
7225
|
+
break _L$4;
|
|
7226
|
+
}
|
|
7227
|
+
case 17: {
|
|
7228
|
+
const _PostfixUnless = stmt$2;
|
|
7229
|
+
const _s$2 = _PostfixUnless._0;
|
|
7230
|
+
const _cond$6 = _PostfixUnless._1;
|
|
7231
|
+
cond = _cond$6;
|
|
7232
|
+
s$3 = _s$2;
|
|
7233
|
+
break _L$4;
|
|
7234
|
+
}
|
|
7235
|
+
case 18: {
|
|
7236
|
+
const _PostfixFor = stmt$2;
|
|
7237
|
+
const _s$3 = _PostfixFor._0;
|
|
7238
|
+
s$2 = _s$3;
|
|
7239
|
+
break _L$3;
|
|
7240
|
+
}
|
|
7241
|
+
case 28: {
|
|
7242
|
+
const _ExportDefault = stmt$2;
|
|
7243
|
+
const _s$4 = _ExportDefault._0;
|
|
7244
|
+
s = _s$4;
|
|
7245
|
+
break _L$2;
|
|
7246
|
+
}
|
|
7247
|
+
case 29: {
|
|
7248
|
+
const _PublicDecl = stmt$2;
|
|
7249
|
+
const _s$5 = _PublicDecl._0;
|
|
7250
|
+
s = _s$5;
|
|
7251
|
+
break _L$2;
|
|
7252
|
+
}
|
|
7253
|
+
default: {
|
|
7254
|
+
return false;
|
|
7255
|
+
}
|
|
7266
7256
|
}
|
|
7267
7257
|
}
|
|
7258
|
+
return _M0FP48username4core3src7codegen16expr__has__yield(e$3);
|
|
7268
7259
|
}
|
|
7269
7260
|
return _M0FP48username4core3src7codegen16expr__has__yield(e$2);
|
|
7270
7261
|
}
|
|
@@ -8784,267 +8775,308 @@ function _M0MP48username4core3src7codegen9JsCodegen9gen__stmt(self, stmt) {
|
|
|
8784
8775
|
let kind$2;
|
|
8785
8776
|
let value$5;
|
|
8786
8777
|
_L$28: {
|
|
8787
|
-
let
|
|
8778
|
+
let prop;
|
|
8788
8779
|
let kind$3;
|
|
8780
|
+
let obj_name;
|
|
8789
8781
|
let value$6;
|
|
8790
8782
|
_L$29: {
|
|
8791
|
-
|
|
8783
|
+
let name$5;
|
|
8784
|
+
let kind$4;
|
|
8785
|
+
let value$7;
|
|
8786
|
+
_L$30: {
|
|
8787
|
+
switch (stmt.$tag) {
|
|
8788
|
+
case 0: {
|
|
8789
|
+
const _VarDecl = stmt;
|
|
8790
|
+
const _kind = _VarDecl._0;
|
|
8791
|
+
const _name = _VarDecl._1;
|
|
8792
|
+
const _value = _VarDecl._2;
|
|
8793
|
+
name$5 = _name;
|
|
8794
|
+
kind$4 = _kind;
|
|
8795
|
+
value$7 = _value;
|
|
8796
|
+
break _L$30;
|
|
8797
|
+
}
|
|
8798
|
+
case 3: {
|
|
8799
|
+
const _DottedVarInit = stmt;
|
|
8800
|
+
const _kind$2 = _DottedVarInit._0;
|
|
8801
|
+
const _obj_name = _DottedVarInit._1;
|
|
8802
|
+
const _prop = _DottedVarInit._2;
|
|
8803
|
+
const _value$2 = _DottedVarInit._3;
|
|
8804
|
+
prop = _prop;
|
|
8805
|
+
kind$3 = _kind$2;
|
|
8806
|
+
obj_name = _obj_name;
|
|
8807
|
+
value$6 = _value$2;
|
|
8808
|
+
break _L$29;
|
|
8809
|
+
}
|
|
8810
|
+
case 1: {
|
|
8811
|
+
const _DestructDecl = stmt;
|
|
8812
|
+
const _kind$3 = _DestructDecl._0;
|
|
8813
|
+
const _names = _DestructDecl._1;
|
|
8814
|
+
const _value$3 = _DestructDecl._2;
|
|
8815
|
+
names$2 = _names;
|
|
8816
|
+
kind$2 = _kind$3;
|
|
8817
|
+
value$5 = _value$3;
|
|
8818
|
+
break _L$28;
|
|
8819
|
+
}
|
|
8820
|
+
case 2: {
|
|
8821
|
+
const _ObjDestructDecl = stmt;
|
|
8822
|
+
const _kind$4 = _ObjDestructDecl._0;
|
|
8823
|
+
const _names$2 = _ObjDestructDecl._1;
|
|
8824
|
+
const _value$4 = _ObjDestructDecl._2;
|
|
8825
|
+
names = _names$2;
|
|
8826
|
+
kind = _kind$4;
|
|
8827
|
+
value$4 = _value$4;
|
|
8828
|
+
break _L$27;
|
|
8829
|
+
}
|
|
8830
|
+
case 4: {
|
|
8831
|
+
const _Assign = stmt;
|
|
8832
|
+
const _target = _Assign._0;
|
|
8833
|
+
const _value$5 = _Assign._1;
|
|
8834
|
+
target$2 = _target;
|
|
8835
|
+
value$3 = _value$5;
|
|
8836
|
+
break _L$26;
|
|
8837
|
+
}
|
|
8838
|
+
case 5: {
|
|
8839
|
+
const _CompoundAssign = stmt;
|
|
8840
|
+
const _op = _CompoundAssign._0;
|
|
8841
|
+
const _target$2 = _CompoundAssign._1;
|
|
8842
|
+
const _value$6 = _CompoundAssign._2;
|
|
8843
|
+
target = _target$2;
|
|
8844
|
+
op = _op;
|
|
8845
|
+
value$2 = _value$6;
|
|
8846
|
+
break _L$25;
|
|
8847
|
+
}
|
|
8848
|
+
case 6: {
|
|
8849
|
+
const _FnDecl = stmt;
|
|
8850
|
+
const _decl = _FnDecl._0;
|
|
8851
|
+
decl$3 = _decl;
|
|
8852
|
+
break _L$24;
|
|
8853
|
+
}
|
|
8854
|
+
case 7: {
|
|
8855
|
+
const _If = stmt;
|
|
8856
|
+
const _cond = _If._0;
|
|
8857
|
+
const _body = _If._1;
|
|
8858
|
+
const _elifs = _If._2;
|
|
8859
|
+
const _else_body = _If._3;
|
|
8860
|
+
elifs = _elifs;
|
|
8861
|
+
cond$8 = _cond;
|
|
8862
|
+
body$9 = _body;
|
|
8863
|
+
else_body = _else_body;
|
|
8864
|
+
break _L$23;
|
|
8865
|
+
}
|
|
8866
|
+
case 8: {
|
|
8867
|
+
const _Unless = stmt;
|
|
8868
|
+
const _cond$2 = _Unless._0;
|
|
8869
|
+
const _body$2 = _Unless._1;
|
|
8870
|
+
cond$7 = _cond$2;
|
|
8871
|
+
body$8 = _body$2;
|
|
8872
|
+
break _L$22;
|
|
8873
|
+
}
|
|
8874
|
+
case 9: {
|
|
8875
|
+
const _While = stmt;
|
|
8876
|
+
const _cond$3 = _While._0;
|
|
8877
|
+
const _body$3 = _While._1;
|
|
8878
|
+
cond$6 = _cond$3;
|
|
8879
|
+
body$7 = _body$3;
|
|
8880
|
+
break _L$21;
|
|
8881
|
+
}
|
|
8882
|
+
case 10: {
|
|
8883
|
+
const _Until = stmt;
|
|
8884
|
+
const _cond$4 = _Until._0;
|
|
8885
|
+
const _body$4 = _Until._1;
|
|
8886
|
+
cond$5 = _cond$4;
|
|
8887
|
+
body$6 = _body$4;
|
|
8888
|
+
break _L$20;
|
|
8889
|
+
}
|
|
8890
|
+
case 11: {
|
|
8891
|
+
const _DoWhile = stmt;
|
|
8892
|
+
const _cond$5 = _DoWhile._0;
|
|
8893
|
+
const _body$5 = _DoWhile._1;
|
|
8894
|
+
cond$4 = _cond$5;
|
|
8895
|
+
body$5 = _body$5;
|
|
8896
|
+
break _L$19;
|
|
8897
|
+
}
|
|
8898
|
+
case 12: {
|
|
8899
|
+
const _ForIn = stmt;
|
|
8900
|
+
const _name$2 = _ForIn._0;
|
|
8901
|
+
const _index = _ForIn._1;
|
|
8902
|
+
const _iter = _ForIn._2;
|
|
8903
|
+
const _body$6 = _ForIn._3;
|
|
8904
|
+
iter$2 = _iter;
|
|
8905
|
+
name$4 = _name$2;
|
|
8906
|
+
index = _index;
|
|
8907
|
+
body$4 = _body$6;
|
|
8908
|
+
break _L$18;
|
|
8909
|
+
}
|
|
8910
|
+
case 13: {
|
|
8911
|
+
const _ForRange = stmt;
|
|
8912
|
+
const _name$3 = _ForRange._0;
|
|
8913
|
+
const _start = _ForRange._1;
|
|
8914
|
+
const _end = _ForRange._2;
|
|
8915
|
+
const _body$7 = _ForRange._3;
|
|
8916
|
+
end = _end;
|
|
8917
|
+
name$3 = _name$3;
|
|
8918
|
+
start = _start;
|
|
8919
|
+
body$3 = _body$7;
|
|
8920
|
+
break _L$17;
|
|
8921
|
+
}
|
|
8922
|
+
case 14: {
|
|
8923
|
+
const _ForClassic = stmt;
|
|
8924
|
+
const _init = _ForClassic._0;
|
|
8925
|
+
const _cond$6 = _ForClassic._1;
|
|
8926
|
+
const _update = _ForClassic._2;
|
|
8927
|
+
const _body$8 = _ForClassic._3;
|
|
8928
|
+
update = _update;
|
|
8929
|
+
init = _init;
|
|
8930
|
+
cond$3 = _cond$6;
|
|
8931
|
+
body$2 = _body$8;
|
|
8932
|
+
break _L$16;
|
|
8933
|
+
}
|
|
8934
|
+
case 15: {
|
|
8935
|
+
const _MatchStmt = stmt;
|
|
8936
|
+
const _subject = _MatchStmt._0;
|
|
8937
|
+
const _arms = _MatchStmt._1;
|
|
8938
|
+
subject = _subject;
|
|
8939
|
+
arms = _arms;
|
|
8940
|
+
break _L$15;
|
|
8941
|
+
}
|
|
8942
|
+
case 16: {
|
|
8943
|
+
const _PostfixIf = stmt;
|
|
8944
|
+
const _inner = _PostfixIf._0;
|
|
8945
|
+
const _cond$7 = _PostfixIf._1;
|
|
8946
|
+
inner$5 = _inner;
|
|
8947
|
+
cond$2 = _cond$7;
|
|
8948
|
+
break _L$14;
|
|
8949
|
+
}
|
|
8950
|
+
case 17: {
|
|
8951
|
+
const _PostfixUnless = stmt;
|
|
8952
|
+
const _inner$2 = _PostfixUnless._0;
|
|
8953
|
+
const _cond$8 = _PostfixUnless._1;
|
|
8954
|
+
inner$4 = _inner$2;
|
|
8955
|
+
cond = _cond$8;
|
|
8956
|
+
break _L$13;
|
|
8957
|
+
}
|
|
8958
|
+
case 18: {
|
|
8959
|
+
const _PostfixFor = stmt;
|
|
8960
|
+
const _inner$3 = _PostfixFor._0;
|
|
8961
|
+
const _name$4 = _PostfixFor._1;
|
|
8962
|
+
const _iter$2 = _PostfixFor._2;
|
|
8963
|
+
name$2 = _name$4;
|
|
8964
|
+
inner$3 = _inner$3;
|
|
8965
|
+
iter = _iter$2;
|
|
8966
|
+
break _L$12;
|
|
8967
|
+
}
|
|
8968
|
+
case 19: {
|
|
8969
|
+
const _TryCatch = stmt;
|
|
8970
|
+
const _try_body = _TryCatch._0;
|
|
8971
|
+
const _catch_name = _TryCatch._1;
|
|
8972
|
+
const _catch_body = _TryCatch._2;
|
|
8973
|
+
const _finally_body = _TryCatch._3;
|
|
8974
|
+
catch_body = _catch_body;
|
|
8975
|
+
try_body = _try_body;
|
|
8976
|
+
catch_name = _catch_name;
|
|
8977
|
+
finally_body = _finally_body;
|
|
8978
|
+
break _L$11;
|
|
8979
|
+
}
|
|
8980
|
+
case 20: {
|
|
8981
|
+
const _Throw = stmt;
|
|
8982
|
+
const _expr = _Throw._0;
|
|
8983
|
+
expr$3 = _expr;
|
|
8984
|
+
break _L$10;
|
|
8985
|
+
}
|
|
8986
|
+
case 21: {
|
|
8987
|
+
const _Return = stmt;
|
|
8988
|
+
const _value$7 = _Return._0;
|
|
8989
|
+
value = _value$7;
|
|
8990
|
+
break _L$9;
|
|
8991
|
+
}
|
|
8992
|
+
case 22: {
|
|
8993
|
+
_M0MP48username4core3src7codegen9JsCodegen7writeln(self, "break;");
|
|
8994
|
+
return;
|
|
8995
|
+
}
|
|
8996
|
+
case 23: {
|
|
8997
|
+
_M0MP48username4core3src7codegen9JsCodegen7writeln(self, "continue;");
|
|
8998
|
+
return;
|
|
8999
|
+
}
|
|
9000
|
+
case 24: {
|
|
9001
|
+
const _ExprStmt = stmt;
|
|
9002
|
+
const _expr$2 = _ExprStmt._0;
|
|
9003
|
+
expr$2 = _expr$2;
|
|
9004
|
+
break _L$8;
|
|
9005
|
+
}
|
|
9006
|
+
case 25: {
|
|
9007
|
+
const _ImportDecl = stmt;
|
|
9008
|
+
const _decl$2 = _ImportDecl._0;
|
|
9009
|
+
decl$2 = _decl$2;
|
|
9010
|
+
break _L$7;
|
|
9011
|
+
}
|
|
9012
|
+
case 26: {
|
|
9013
|
+
const _UseStdlib = stmt;
|
|
9014
|
+
const _module_name = _UseStdlib._0;
|
|
9015
|
+
const _binding = _UseStdlib._1;
|
|
9016
|
+
module_name = _module_name;
|
|
9017
|
+
binding = _binding;
|
|
9018
|
+
break _L$6;
|
|
9019
|
+
}
|
|
9020
|
+
case 27: {
|
|
9021
|
+
const _ModDecl = stmt;
|
|
9022
|
+
const _name$5 = _ModDecl._0;
|
|
9023
|
+
const _body$9 = _ModDecl._1;
|
|
9024
|
+
name = _name$5;
|
|
9025
|
+
body = _body$9;
|
|
9026
|
+
break _L$5;
|
|
9027
|
+
}
|
|
9028
|
+
case 28: {
|
|
9029
|
+
const _ExportDefault = stmt;
|
|
9030
|
+
const _inner$4 = _ExportDefault._0;
|
|
9031
|
+
inner$2 = _inner$4;
|
|
9032
|
+
break _L$4;
|
|
9033
|
+
}
|
|
9034
|
+
case 29: {
|
|
9035
|
+
const _PublicDecl = stmt;
|
|
9036
|
+
const _inner$5 = _PublicDecl._0;
|
|
9037
|
+
inner = _inner$5;
|
|
9038
|
+
break _L$3;
|
|
9039
|
+
}
|
|
9040
|
+
case 30: {
|
|
9041
|
+
return;
|
|
9042
|
+
}
|
|
9043
|
+
case 31: {
|
|
9044
|
+
const _ClassDecl = stmt;
|
|
9045
|
+
const _decl$3 = _ClassDecl._0;
|
|
9046
|
+
decl = _decl$3;
|
|
9047
|
+
break _L$2;
|
|
9048
|
+
}
|
|
9049
|
+
default: {
|
|
9050
|
+
const _DeleteStmt = stmt;
|
|
9051
|
+
const _expr$3 = _DeleteStmt._0;
|
|
9052
|
+
expr = _expr$3;
|
|
9053
|
+
break _L;
|
|
9054
|
+
}
|
|
9055
|
+
}
|
|
9056
|
+
}
|
|
9057
|
+
let kw;
|
|
9058
|
+
switch (kind$4) {
|
|
8792
9059
|
case 0: {
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
const _name = _VarDecl._1;
|
|
8796
|
-
const _value = _VarDecl._2;
|
|
8797
|
-
name$5 = _name;
|
|
8798
|
-
kind$3 = _kind;
|
|
8799
|
-
value$6 = _value;
|
|
8800
|
-
break _L$29;
|
|
9060
|
+
kw = "const";
|
|
9061
|
+
break;
|
|
8801
9062
|
}
|
|
8802
9063
|
case 1: {
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
const _names = _DestructDecl._1;
|
|
8806
|
-
const _value$2 = _DestructDecl._2;
|
|
8807
|
-
names$2 = _names;
|
|
8808
|
-
kind$2 = _kind$2;
|
|
8809
|
-
value$5 = _value$2;
|
|
8810
|
-
break _L$28;
|
|
8811
|
-
}
|
|
8812
|
-
case 2: {
|
|
8813
|
-
const _ObjDestructDecl = stmt;
|
|
8814
|
-
const _kind$3 = _ObjDestructDecl._0;
|
|
8815
|
-
const _names$2 = _ObjDestructDecl._1;
|
|
8816
|
-
const _value$3 = _ObjDestructDecl._2;
|
|
8817
|
-
names = _names$2;
|
|
8818
|
-
kind = _kind$3;
|
|
8819
|
-
value$4 = _value$3;
|
|
8820
|
-
break _L$27;
|
|
8821
|
-
}
|
|
8822
|
-
case 3: {
|
|
8823
|
-
const _Assign = stmt;
|
|
8824
|
-
const _target = _Assign._0;
|
|
8825
|
-
const _value$4 = _Assign._1;
|
|
8826
|
-
target$2 = _target;
|
|
8827
|
-
value$3 = _value$4;
|
|
8828
|
-
break _L$26;
|
|
8829
|
-
}
|
|
8830
|
-
case 4: {
|
|
8831
|
-
const _CompoundAssign = stmt;
|
|
8832
|
-
const _op = _CompoundAssign._0;
|
|
8833
|
-
const _target$2 = _CompoundAssign._1;
|
|
8834
|
-
const _value$5 = _CompoundAssign._2;
|
|
8835
|
-
target = _target$2;
|
|
8836
|
-
op = _op;
|
|
8837
|
-
value$2 = _value$5;
|
|
8838
|
-
break _L$25;
|
|
8839
|
-
}
|
|
8840
|
-
case 5: {
|
|
8841
|
-
const _FnDecl = stmt;
|
|
8842
|
-
const _decl = _FnDecl._0;
|
|
8843
|
-
decl$3 = _decl;
|
|
8844
|
-
break _L$24;
|
|
8845
|
-
}
|
|
8846
|
-
case 6: {
|
|
8847
|
-
const _If = stmt;
|
|
8848
|
-
const _cond = _If._0;
|
|
8849
|
-
const _body = _If._1;
|
|
8850
|
-
const _elifs = _If._2;
|
|
8851
|
-
const _else_body = _If._3;
|
|
8852
|
-
elifs = _elifs;
|
|
8853
|
-
cond$8 = _cond;
|
|
8854
|
-
body$9 = _body;
|
|
8855
|
-
else_body = _else_body;
|
|
8856
|
-
break _L$23;
|
|
8857
|
-
}
|
|
8858
|
-
case 7: {
|
|
8859
|
-
const _Unless = stmt;
|
|
8860
|
-
const _cond$2 = _Unless._0;
|
|
8861
|
-
const _body$2 = _Unless._1;
|
|
8862
|
-
cond$7 = _cond$2;
|
|
8863
|
-
body$8 = _body$2;
|
|
8864
|
-
break _L$22;
|
|
8865
|
-
}
|
|
8866
|
-
case 8: {
|
|
8867
|
-
const _While = stmt;
|
|
8868
|
-
const _cond$3 = _While._0;
|
|
8869
|
-
const _body$3 = _While._1;
|
|
8870
|
-
cond$6 = _cond$3;
|
|
8871
|
-
body$7 = _body$3;
|
|
8872
|
-
break _L$21;
|
|
8873
|
-
}
|
|
8874
|
-
case 9: {
|
|
8875
|
-
const _Until = stmt;
|
|
8876
|
-
const _cond$4 = _Until._0;
|
|
8877
|
-
const _body$4 = _Until._1;
|
|
8878
|
-
cond$5 = _cond$4;
|
|
8879
|
-
body$6 = _body$4;
|
|
8880
|
-
break _L$20;
|
|
8881
|
-
}
|
|
8882
|
-
case 10: {
|
|
8883
|
-
const _DoWhile = stmt;
|
|
8884
|
-
const _cond$5 = _DoWhile._0;
|
|
8885
|
-
const _body$5 = _DoWhile._1;
|
|
8886
|
-
cond$4 = _cond$5;
|
|
8887
|
-
body$5 = _body$5;
|
|
8888
|
-
break _L$19;
|
|
8889
|
-
}
|
|
8890
|
-
case 11: {
|
|
8891
|
-
const _ForIn = stmt;
|
|
8892
|
-
const _name$2 = _ForIn._0;
|
|
8893
|
-
const _index = _ForIn._1;
|
|
8894
|
-
const _iter = _ForIn._2;
|
|
8895
|
-
const _body$6 = _ForIn._3;
|
|
8896
|
-
iter$2 = _iter;
|
|
8897
|
-
name$4 = _name$2;
|
|
8898
|
-
index = _index;
|
|
8899
|
-
body$4 = _body$6;
|
|
8900
|
-
break _L$18;
|
|
8901
|
-
}
|
|
8902
|
-
case 12: {
|
|
8903
|
-
const _ForRange = stmt;
|
|
8904
|
-
const _name$3 = _ForRange._0;
|
|
8905
|
-
const _start = _ForRange._1;
|
|
8906
|
-
const _end = _ForRange._2;
|
|
8907
|
-
const _body$7 = _ForRange._3;
|
|
8908
|
-
end = _end;
|
|
8909
|
-
name$3 = _name$3;
|
|
8910
|
-
start = _start;
|
|
8911
|
-
body$3 = _body$7;
|
|
8912
|
-
break _L$17;
|
|
8913
|
-
}
|
|
8914
|
-
case 13: {
|
|
8915
|
-
const _ForClassic = stmt;
|
|
8916
|
-
const _init = _ForClassic._0;
|
|
8917
|
-
const _cond$6 = _ForClassic._1;
|
|
8918
|
-
const _update = _ForClassic._2;
|
|
8919
|
-
const _body$8 = _ForClassic._3;
|
|
8920
|
-
update = _update;
|
|
8921
|
-
init = _init;
|
|
8922
|
-
cond$3 = _cond$6;
|
|
8923
|
-
body$2 = _body$8;
|
|
8924
|
-
break _L$16;
|
|
8925
|
-
}
|
|
8926
|
-
case 14: {
|
|
8927
|
-
const _MatchStmt = stmt;
|
|
8928
|
-
const _subject = _MatchStmt._0;
|
|
8929
|
-
const _arms = _MatchStmt._1;
|
|
8930
|
-
subject = _subject;
|
|
8931
|
-
arms = _arms;
|
|
8932
|
-
break _L$15;
|
|
8933
|
-
}
|
|
8934
|
-
case 15: {
|
|
8935
|
-
const _PostfixIf = stmt;
|
|
8936
|
-
const _inner = _PostfixIf._0;
|
|
8937
|
-
const _cond$7 = _PostfixIf._1;
|
|
8938
|
-
inner$5 = _inner;
|
|
8939
|
-
cond$2 = _cond$7;
|
|
8940
|
-
break _L$14;
|
|
8941
|
-
}
|
|
8942
|
-
case 16: {
|
|
8943
|
-
const _PostfixUnless = stmt;
|
|
8944
|
-
const _inner$2 = _PostfixUnless._0;
|
|
8945
|
-
const _cond$8 = _PostfixUnless._1;
|
|
8946
|
-
inner$4 = _inner$2;
|
|
8947
|
-
cond = _cond$8;
|
|
8948
|
-
break _L$13;
|
|
8949
|
-
}
|
|
8950
|
-
case 17: {
|
|
8951
|
-
const _PostfixFor = stmt;
|
|
8952
|
-
const _inner$3 = _PostfixFor._0;
|
|
8953
|
-
const _name$4 = _PostfixFor._1;
|
|
8954
|
-
const _iter$2 = _PostfixFor._2;
|
|
8955
|
-
name$2 = _name$4;
|
|
8956
|
-
inner$3 = _inner$3;
|
|
8957
|
-
iter = _iter$2;
|
|
8958
|
-
break _L$12;
|
|
8959
|
-
}
|
|
8960
|
-
case 18: {
|
|
8961
|
-
const _TryCatch = stmt;
|
|
8962
|
-
const _try_body = _TryCatch._0;
|
|
8963
|
-
const _catch_name = _TryCatch._1;
|
|
8964
|
-
const _catch_body = _TryCatch._2;
|
|
8965
|
-
const _finally_body = _TryCatch._3;
|
|
8966
|
-
catch_body = _catch_body;
|
|
8967
|
-
try_body = _try_body;
|
|
8968
|
-
catch_name = _catch_name;
|
|
8969
|
-
finally_body = _finally_body;
|
|
8970
|
-
break _L$11;
|
|
8971
|
-
}
|
|
8972
|
-
case 19: {
|
|
8973
|
-
const _Throw = stmt;
|
|
8974
|
-
const _expr = _Throw._0;
|
|
8975
|
-
expr$3 = _expr;
|
|
8976
|
-
break _L$10;
|
|
8977
|
-
}
|
|
8978
|
-
case 20: {
|
|
8979
|
-
const _Return = stmt;
|
|
8980
|
-
const _value$6 = _Return._0;
|
|
8981
|
-
value = _value$6;
|
|
8982
|
-
break _L$9;
|
|
8983
|
-
}
|
|
8984
|
-
case 21: {
|
|
8985
|
-
_M0MP48username4core3src7codegen9JsCodegen7writeln(self, "break;");
|
|
8986
|
-
return;
|
|
8987
|
-
}
|
|
8988
|
-
case 22: {
|
|
8989
|
-
_M0MP48username4core3src7codegen9JsCodegen7writeln(self, "continue;");
|
|
8990
|
-
return;
|
|
8991
|
-
}
|
|
8992
|
-
case 23: {
|
|
8993
|
-
const _ExprStmt = stmt;
|
|
8994
|
-
const _expr$2 = _ExprStmt._0;
|
|
8995
|
-
expr$2 = _expr$2;
|
|
8996
|
-
break _L$8;
|
|
8997
|
-
}
|
|
8998
|
-
case 24: {
|
|
8999
|
-
const _ImportDecl = stmt;
|
|
9000
|
-
const _decl$2 = _ImportDecl._0;
|
|
9001
|
-
decl$2 = _decl$2;
|
|
9002
|
-
break _L$7;
|
|
9003
|
-
}
|
|
9004
|
-
case 25: {
|
|
9005
|
-
const _UseStdlib = stmt;
|
|
9006
|
-
const _module_name = _UseStdlib._0;
|
|
9007
|
-
const _binding = _UseStdlib._1;
|
|
9008
|
-
module_name = _module_name;
|
|
9009
|
-
binding = _binding;
|
|
9010
|
-
break _L$6;
|
|
9011
|
-
}
|
|
9012
|
-
case 26: {
|
|
9013
|
-
const _ModDecl = stmt;
|
|
9014
|
-
const _name$5 = _ModDecl._0;
|
|
9015
|
-
const _body$9 = _ModDecl._1;
|
|
9016
|
-
name = _name$5;
|
|
9017
|
-
body = _body$9;
|
|
9018
|
-
break _L$5;
|
|
9019
|
-
}
|
|
9020
|
-
case 27: {
|
|
9021
|
-
const _ExportDefault = stmt;
|
|
9022
|
-
const _inner$4 = _ExportDefault._0;
|
|
9023
|
-
inner$2 = _inner$4;
|
|
9024
|
-
break _L$4;
|
|
9025
|
-
}
|
|
9026
|
-
case 28: {
|
|
9027
|
-
const _PublicDecl = stmt;
|
|
9028
|
-
const _inner$5 = _PublicDecl._0;
|
|
9029
|
-
inner = _inner$5;
|
|
9030
|
-
break _L$3;
|
|
9031
|
-
}
|
|
9032
|
-
case 29: {
|
|
9033
|
-
return;
|
|
9034
|
-
}
|
|
9035
|
-
case 30: {
|
|
9036
|
-
const _ClassDecl = stmt;
|
|
9037
|
-
const _decl$3 = _ClassDecl._0;
|
|
9038
|
-
decl = _decl$3;
|
|
9039
|
-
break _L$2;
|
|
9064
|
+
kw = "let";
|
|
9065
|
+
break;
|
|
9040
9066
|
}
|
|
9041
9067
|
default: {
|
|
9042
|
-
|
|
9043
|
-
const _expr$3 = _DeleteStmt._0;
|
|
9044
|
-
expr = _expr$3;
|
|
9045
|
-
break _L;
|
|
9068
|
+
kw = "var";
|
|
9046
9069
|
}
|
|
9047
9070
|
}
|
|
9071
|
+
_M0MP48username4core3src7codegen9JsCodegen13write__indent(self);
|
|
9072
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, kw);
|
|
9073
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, " ");
|
|
9074
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, _M0FP48username4core3src7codegen9js__ident(name$5));
|
|
9075
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, " = ");
|
|
9076
|
+
_M0MP48username4core3src7codegen9JsCodegen9gen__expr(self, value$7);
|
|
9077
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, ";\n");
|
|
9078
|
+
_M0MPC15array5Array4pushGRP48username4core3src5lexer5TokenE(self.declared_vars, name$5);
|
|
9079
|
+
return;
|
|
9048
9080
|
}
|
|
9049
9081
|
let kw;
|
|
9050
9082
|
switch (kind$3) {
|
|
@@ -9060,10 +9092,36 @@ function _M0MP48username4core3src7codegen9JsCodegen9gen__stmt(self, stmt) {
|
|
|
9060
9092
|
kw = "var";
|
|
9061
9093
|
}
|
|
9062
9094
|
}
|
|
9095
|
+
const is_declared = new _M0TPB8MutLocalGbE(false);
|
|
9096
|
+
const _bind = self.declared_vars;
|
|
9097
|
+
const _bind$2 = _bind.length;
|
|
9098
|
+
let _tmp = 0;
|
|
9099
|
+
while (true) {
|
|
9100
|
+
const _ = _tmp;
|
|
9101
|
+
if (_ < _bind$2) {
|
|
9102
|
+
const v = _bind[_];
|
|
9103
|
+
if (v === obj_name) {
|
|
9104
|
+
is_declared.val = true;
|
|
9105
|
+
break;
|
|
9106
|
+
}
|
|
9107
|
+
_tmp = _ + 1 | 0;
|
|
9108
|
+
continue;
|
|
9109
|
+
} else {
|
|
9110
|
+
break;
|
|
9111
|
+
}
|
|
9112
|
+
}
|
|
9113
|
+
if (!is_declared.val) {
|
|
9114
|
+
_M0MP48username4core3src7codegen9JsCodegen13write__indent(self);
|
|
9115
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, kw);
|
|
9116
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, " ");
|
|
9117
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, _M0FP48username4core3src7codegen9js__ident(obj_name));
|
|
9118
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, " = {};\n");
|
|
9119
|
+
_M0MPC15array5Array4pushGRP48username4core3src5lexer5TokenE(self.declared_vars, obj_name);
|
|
9120
|
+
}
|
|
9063
9121
|
_M0MP48username4core3src7codegen9JsCodegen13write__indent(self);
|
|
9064
|
-
_M0MP48username4core3src7codegen9JsCodegen5write(self,
|
|
9065
|
-
_M0MP48username4core3src7codegen9JsCodegen5write(self, "
|
|
9066
|
-
_M0MP48username4core3src7codegen9JsCodegen5write(self, _M0FP48username4core3src7codegen9js__ident(
|
|
9122
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, _M0FP48username4core3src7codegen9js__ident(obj_name));
|
|
9123
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, ".");
|
|
9124
|
+
_M0MP48username4core3src7codegen9JsCodegen5write(self, _M0FP48username4core3src7codegen9js__ident(prop));
|
|
9067
9125
|
_M0MP48username4core3src7codegen9JsCodegen5write(self, " = ");
|
|
9068
9126
|
_M0MP48username4core3src7codegen9JsCodegen9gen__expr(self, value$6);
|
|
9069
9127
|
_M0MP48username4core3src7codegen9JsCodegen5write(self, ";\n");
|
|
@@ -9628,13 +9686,13 @@ function _M0MP48username4core3src7codegen9JsCodegen9gen__stmt(self, stmt) {
|
|
|
9628
9686
|
name = _name;
|
|
9629
9687
|
break _L$6;
|
|
9630
9688
|
}
|
|
9631
|
-
case
|
|
9689
|
+
case 6: {
|
|
9632
9690
|
const _FnDecl = inner;
|
|
9633
9691
|
const _decl = _FnDecl._0;
|
|
9634
9692
|
decl$3 = _decl;
|
|
9635
9693
|
break _L$5;
|
|
9636
9694
|
}
|
|
9637
|
-
case
|
|
9695
|
+
case 31: {
|
|
9638
9696
|
const _ClassDecl = inner;
|
|
9639
9697
|
const _decl$2 = _ClassDecl._0;
|
|
9640
9698
|
decl$2 = _decl$2;
|
|
@@ -10123,7 +10181,7 @@ function _M0MP48username4core3src7codegen9JsCodegen14gen__for__part(self, stmt)
|
|
|
10123
10181
|
value$3 = _value;
|
|
10124
10182
|
break _L$4;
|
|
10125
10183
|
}
|
|
10126
|
-
case
|
|
10184
|
+
case 4: {
|
|
10127
10185
|
const _Assign = stmt;
|
|
10128
10186
|
const _target = _Assign._0;
|
|
10129
10187
|
const _value$2 = _Assign._1;
|
|
@@ -10131,7 +10189,7 @@ function _M0MP48username4core3src7codegen9JsCodegen14gen__for__part(self, stmt)
|
|
|
10131
10189
|
value$2 = _value$2;
|
|
10132
10190
|
break _L$3;
|
|
10133
10191
|
}
|
|
10134
|
-
case
|
|
10192
|
+
case 5: {
|
|
10135
10193
|
const _CompoundAssign = stmt;
|
|
10136
10194
|
const _op = _CompoundAssign._0;
|
|
10137
10195
|
const _target$2 = _CompoundAssign._1;
|
|
@@ -10141,7 +10199,7 @@ function _M0MP48username4core3src7codegen9JsCodegen14gen__for__part(self, stmt)
|
|
|
10141
10199
|
value = _value$3;
|
|
10142
10200
|
break _L$2;
|
|
10143
10201
|
}
|
|
10144
|
-
case
|
|
10202
|
+
case 24: {
|
|
10145
10203
|
const _ExprStmt = stmt;
|
|
10146
10204
|
const _expr = _ExprStmt._0;
|
|
10147
10205
|
expr = _expr;
|
|
@@ -10868,13 +10926,13 @@ function _M0MP48username4core3src7codegen9JsCodegen17gen__stmt__inline(self, stm
|
|
|
10868
10926
|
value$3 = _value;
|
|
10869
10927
|
break _L$6;
|
|
10870
10928
|
}
|
|
10871
|
-
case
|
|
10929
|
+
case 24: {
|
|
10872
10930
|
const _ExprStmt = stmt;
|
|
10873
10931
|
const _expr = _ExprStmt._0;
|
|
10874
10932
|
expr$2 = _expr;
|
|
10875
10933
|
break _L$5;
|
|
10876
10934
|
}
|
|
10877
|
-
case
|
|
10935
|
+
case 21: {
|
|
10878
10936
|
const _Return = stmt;
|
|
10879
10937
|
const _x = _Return._0;
|
|
10880
10938
|
if (_x === undefined) {
|
|
@@ -10887,13 +10945,13 @@ function _M0MP48username4core3src7codegen9JsCodegen17gen__stmt__inline(self, stm
|
|
|
10887
10945
|
break _L$4;
|
|
10888
10946
|
}
|
|
10889
10947
|
}
|
|
10890
|
-
case
|
|
10948
|
+
case 20: {
|
|
10891
10949
|
const _Throw = stmt;
|
|
10892
10950
|
const _expr$2 = _Throw._0;
|
|
10893
10951
|
expr = _expr$2;
|
|
10894
10952
|
break _L$3;
|
|
10895
10953
|
}
|
|
10896
|
-
case
|
|
10954
|
+
case 4: {
|
|
10897
10955
|
const _Assign = stmt;
|
|
10898
10956
|
const _target = _Assign._0;
|
|
10899
10957
|
const _value$2 = _Assign._1;
|
|
@@ -10901,7 +10959,7 @@ function _M0MP48username4core3src7codegen9JsCodegen17gen__stmt__inline(self, stm
|
|
|
10901
10959
|
value$2 = _value$2;
|
|
10902
10960
|
break _L$2;
|
|
10903
10961
|
}
|
|
10904
|
-
case
|
|
10962
|
+
case 5: {
|
|
10905
10963
|
const _CompoundAssign = stmt;
|
|
10906
10964
|
const _op = _CompoundAssign._0;
|
|
10907
10965
|
const _target$2 = _CompoundAssign._1;
|
|
@@ -11036,7 +11094,7 @@ function _M0MP48username4core3src7codegen9JsCodegen17gen__stmt__inline(self, stm
|
|
|
11036
11094
|
}
|
|
11037
11095
|
}
|
|
11038
11096
|
function _M0MP48username4core3src7codegen9JsCodegen11new_2einner(cjs) {
|
|
11039
|
-
return new _M0TP48username4core3src7codegen9JsCodegen(_M0MPB13StringBuilder11new_2einner(0), 0, [], cjs);
|
|
11097
|
+
return new _M0TP48username4core3src7codegen9JsCodegen(_M0MPB13StringBuilder11new_2einner(0), 0, [], [], cjs);
|
|
11040
11098
|
}
|
|
11041
11099
|
function _M0MP48username4core3src7codegen9JsCodegen16generate_2einner(self, stmts, header, shebang, strict) {
|
|
11042
11100
|
if (shebang.length > 0) {
|
|
@@ -11173,7 +11231,7 @@ function _M0FP58username4core3src3cmd4main10cmd__build(args) {
|
|
|
11173
11231
|
}
|
|
11174
11232
|
}
|
|
11175
11233
|
const stmts = _M0MP48username4core3src6parser6Parser5parse(_M0MP48username4core3src6parser6Parser3new(filtered));
|
|
11176
|
-
const header = no_header.val ? "" : "// Generated by Purus 0.
|
|
11234
|
+
const header = no_header.val ? "" : "// Generated by Purus 0.10.1";
|
|
11177
11235
|
const js = _M0MP48username4core3src7codegen9JsCodegen16generate_2einner(_M0MP48username4core3src7codegen9JsCodegen11new_2einner(cjs.val), stmts, header, shebang.val, strict.val);
|
|
11178
11236
|
if (to_stdout.val) {
|
|
11179
11237
|
_M0FPB7printlnGsE(js);
|
|
@@ -11297,62 +11355,6 @@ function _M0FP58username4core3src3cmd4main10cmd__check(file) {
|
|
|
11297
11355
|
_M0MP48username4core3src6parser6Parser5parse(_M0MP48username4core3src6parser6Parser3new(tokens));
|
|
11298
11356
|
_M0FPB7printlnGsE(`OK: ${file}`);
|
|
11299
11357
|
}
|
|
11300
|
-
function _M0FP58username4core3src3cmd4main9cmd__init() {
|
|
11301
|
-
if (!_M0FP311moonbitlang1x2fs12path__exists("src")) {
|
|
11302
|
-
let _try_err;
|
|
11303
|
-
_L: {
|
|
11304
|
-
_L$2: {
|
|
11305
|
-
const _bind = _M0FP311moonbitlang1x2fs11create__dir("src");
|
|
11306
|
-
if (_bind.$tag === 1) {
|
|
11307
|
-
const _ok = _bind;
|
|
11308
|
-
_ok._0;
|
|
11309
|
-
} else {
|
|
11310
|
-
const _err = _bind;
|
|
11311
|
-
_try_err = _err._0;
|
|
11312
|
-
break _L$2;
|
|
11313
|
-
}
|
|
11314
|
-
break _L;
|
|
11315
|
-
}
|
|
11316
|
-
let msg;
|
|
11317
|
-
_L$3: {
|
|
11318
|
-
const _IOError = _try_err;
|
|
11319
|
-
const _msg = _IOError._0;
|
|
11320
|
-
msg = _msg;
|
|
11321
|
-
break _L$3;
|
|
11322
|
-
}
|
|
11323
|
-
_M0FPB7printlnGsE(`Error: cannot create src directory: ${msg}`);
|
|
11324
|
-
return undefined;
|
|
11325
|
-
}
|
|
11326
|
-
}
|
|
11327
|
-
if (!_M0FP311moonbitlang1x2fs12path__exists("src/main.purus")) {
|
|
11328
|
-
const main_purus = "-- main.purus\n\nconst message be ///Hello, World///\nconsole.log[message]\n";
|
|
11329
|
-
let _try_err;
|
|
11330
|
-
_L: {
|
|
11331
|
-
_L$2: {
|
|
11332
|
-
const _bind = _M0FP311moonbitlang1x2fs31write__string__to__file_2einner("src/main.purus", main_purus, "utf8");
|
|
11333
|
-
if (_bind.$tag === 1) {
|
|
11334
|
-
const _ok = _bind;
|
|
11335
|
-
_ok._0;
|
|
11336
|
-
} else {
|
|
11337
|
-
const _err = _bind;
|
|
11338
|
-
_try_err = _err._0;
|
|
11339
|
-
break _L$2;
|
|
11340
|
-
}
|
|
11341
|
-
break _L;
|
|
11342
|
-
}
|
|
11343
|
-
let msg;
|
|
11344
|
-
_L$3: {
|
|
11345
|
-
const _IOError = _try_err;
|
|
11346
|
-
const _msg = _IOError._0;
|
|
11347
|
-
msg = _msg;
|
|
11348
|
-
break _L$3;
|
|
11349
|
-
}
|
|
11350
|
-
_M0FPB7printlnGsE(`Error: ${msg}`);
|
|
11351
|
-
return undefined;
|
|
11352
|
-
}
|
|
11353
|
-
}
|
|
11354
|
-
_M0FPB7printlnGsE("Initialized purus project in current directory");
|
|
11355
|
-
}
|
|
11356
11358
|
(() => {
|
|
11357
11359
|
const args = _M0FP311moonbitlang1x3sys14get__cli__args();
|
|
11358
11360
|
if (args.length < 2) {
|
|
@@ -11372,10 +11374,6 @@ function _M0FP58username4core3src3cmd4main9cmd__init() {
|
|
|
11372
11374
|
_M0FP58username4core3src3cmd4main10cmd__check(file);
|
|
11373
11375
|
return;
|
|
11374
11376
|
}
|
|
11375
|
-
case "init": {
|
|
11376
|
-
_M0FP58username4core3src3cmd4main9cmd__init();
|
|
11377
|
-
return;
|
|
11378
|
-
}
|
|
11379
11377
|
default: {
|
|
11380
11378
|
_M0FPB7printlnGsE(`Unknown command: ${cmd}`);
|
|
11381
11379
|
return;
|