purus 0.10.0 → 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 +1 -1
- 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 +223 -314
- 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
|
};
|
|
@@ -1830,942 +1816,925 @@ function _M0FP311moonbitlang1x2fs41write__string__to__file__internal_2einner(pat
|
|
|
1830
1816
|
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE3Err(new _M0DTPC15error5Error40moonbitlang_2fx_2ffs_2eIOError_2eIOError(`Unsupported encoding: ${_M0IPC16string6StringPB4Show10to__string(encoding)}, only utf8 is supported for now`));
|
|
1831
1817
|
}
|
|
1832
1818
|
}
|
|
1833
|
-
function _M0FP311moonbitlang1x2fs22path__exists__internal(path) {
|
|
1834
|
-
return _M0FP311moonbitlang1x2fs17path__exists__ffi(path);
|
|
1835
|
-
}
|
|
1836
|
-
function _M0FP311moonbitlang1x2fs21create__dir__internal(path) {
|
|
1837
|
-
const res = _M0FP311moonbitlang1x2fs16create__dir__ffi(path);
|
|
1838
|
-
if (res === -1) {
|
|
1839
|
-
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE3Err(new _M0DTPC15error5Error40moonbitlang_2fx_2ffs_2eIOError_2eIOError(_M0FP311moonbitlang1x2fs24get__error__message__ffi()));
|
|
1840
|
-
} else {
|
|
1841
|
-
return new _M0DTPC16result6ResultGuRP311moonbitlang1x2fs7IOErrorE2Ok(undefined);
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
1819
|
function _M0FP311moonbitlang1x2fs30read__file__to__string_2einner(path, encoding) {
|
|
1845
1820
|
return _M0FP311moonbitlang1x2fs40read__file__to__string__internal_2einner(path, encoding);
|
|
1846
1821
|
}
|
|
1847
1822
|
function _M0FP311moonbitlang1x2fs31write__string__to__file_2einner(path, content, encoding) {
|
|
1848
1823
|
return _M0FP311moonbitlang1x2fs41write__string__to__file__internal_2einner(path, content, encoding);
|
|
1849
1824
|
}
|
|
1850
|
-
function _M0FP311moonbitlang1x2fs12path__exists(path) {
|
|
1851
|
-
return _M0FP311moonbitlang1x2fs22path__exists__internal(path);
|
|
1852
|
-
}
|
|
1853
|
-
function _M0FP311moonbitlang1x2fs11create__dir(path) {
|
|
1854
|
-
return _M0FP311moonbitlang1x2fs21create__dir__internal(path);
|
|
1855
|
-
}
|
|
1856
1825
|
function _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args() {
|
|
1857
1826
|
return _M0FP511moonbitlang1x3sys8internal3ffi24get__cli__args__internal();
|
|
1858
1827
|
}
|
|
1859
1828
|
function _M0FP311moonbitlang1x3sys14get__cli__args() {
|
|
1860
1829
|
return _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args();
|
|
1861
1830
|
}
|
|
1862
|
-
function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(
|
|
1863
|
-
let
|
|
1864
|
-
let
|
|
1831
|
+
function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(_x_104, _x_105) {
|
|
1832
|
+
let _x0_128;
|
|
1833
|
+
let _y0_129;
|
|
1865
1834
|
_L: {
|
|
1866
|
-
let
|
|
1867
|
-
let
|
|
1835
|
+
let _x0_126;
|
|
1836
|
+
let _y0_127;
|
|
1868
1837
|
_L$2: {
|
|
1869
|
-
let
|
|
1870
|
-
let
|
|
1838
|
+
let _x0_124;
|
|
1839
|
+
let _y0_125;
|
|
1871
1840
|
_L$3: {
|
|
1872
|
-
let
|
|
1873
|
-
let
|
|
1841
|
+
let _x0_122;
|
|
1842
|
+
let _y0_123;
|
|
1874
1843
|
_L$4: {
|
|
1875
|
-
let
|
|
1876
|
-
let
|
|
1844
|
+
let _x0_120;
|
|
1845
|
+
let _y0_121;
|
|
1877
1846
|
_L$5: {
|
|
1878
|
-
let
|
|
1879
|
-
let
|
|
1847
|
+
let _x0_118;
|
|
1848
|
+
let _y0_119;
|
|
1880
1849
|
_L$6: {
|
|
1881
|
-
let
|
|
1882
|
-
let
|
|
1883
|
-
let
|
|
1884
|
-
let
|
|
1850
|
+
let _x1_115;
|
|
1851
|
+
let _x0_114;
|
|
1852
|
+
let _y0_116;
|
|
1853
|
+
let _y1_117;
|
|
1885
1854
|
_L$7: {
|
|
1886
|
-
let
|
|
1887
|
-
let
|
|
1855
|
+
let _x0_112;
|
|
1856
|
+
let _y0_113;
|
|
1888
1857
|
_L$8: {
|
|
1889
|
-
let
|
|
1890
|
-
let
|
|
1858
|
+
let _x0_110;
|
|
1859
|
+
let _y0_111;
|
|
1891
1860
|
_L$9: {
|
|
1892
|
-
let
|
|
1893
|
-
let
|
|
1861
|
+
let _x0_108;
|
|
1862
|
+
let _y0_109;
|
|
1894
1863
|
_L$10: {
|
|
1895
|
-
let
|
|
1896
|
-
let
|
|
1864
|
+
let _x0_106;
|
|
1865
|
+
let _y0_107;
|
|
1897
1866
|
_L$11: {
|
|
1898
|
-
switch (
|
|
1867
|
+
switch (_x_104.$tag) {
|
|
1899
1868
|
case 0: {
|
|
1900
|
-
const _Int =
|
|
1901
|
-
const _$42$
|
|
1902
|
-
if (
|
|
1903
|
-
const _Int$2 =
|
|
1904
|
-
const _$42$
|
|
1905
|
-
|
|
1906
|
-
|
|
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;
|
|
1907
1876
|
break _L$11;
|
|
1908
1877
|
} else {
|
|
1909
1878
|
return false;
|
|
1910
1879
|
}
|
|
1911
1880
|
}
|
|
1912
1881
|
case 1: {
|
|
1913
|
-
const _BigInt =
|
|
1914
|
-
const _$42$
|
|
1915
|
-
if (
|
|
1916
|
-
const _BigInt$2 =
|
|
1917
|
-
const _$42$
|
|
1918
|
-
|
|
1919
|
-
|
|
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;
|
|
1920
1889
|
break _L$10;
|
|
1921
1890
|
} else {
|
|
1922
1891
|
return false;
|
|
1923
1892
|
}
|
|
1924
1893
|
}
|
|
1925
1894
|
case 2: {
|
|
1926
|
-
const _Float =
|
|
1927
|
-
const _$42$
|
|
1928
|
-
if (
|
|
1929
|
-
const _Float$2 =
|
|
1930
|
-
const _$42$
|
|
1931
|
-
|
|
1932
|
-
|
|
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;
|
|
1933
1902
|
break _L$9;
|
|
1934
1903
|
} else {
|
|
1935
1904
|
return false;
|
|
1936
1905
|
}
|
|
1937
1906
|
}
|
|
1938
1907
|
case 3: {
|
|
1939
|
-
const _Str =
|
|
1940
|
-
const _$42$
|
|
1941
|
-
if (
|
|
1942
|
-
const _Str$2 =
|
|
1943
|
-
const _$42$
|
|
1944
|
-
|
|
1945
|
-
|
|
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;
|
|
1946
1915
|
break _L$8;
|
|
1947
1916
|
} else {
|
|
1948
1917
|
return false;
|
|
1949
1918
|
}
|
|
1950
1919
|
}
|
|
1951
1920
|
case 4: {
|
|
1952
|
-
const _Regex =
|
|
1953
|
-
const _$42$
|
|
1954
|
-
const _$42$
|
|
1955
|
-
if (
|
|
1956
|
-
const _Regex$2 =
|
|
1957
|
-
const _$42$
|
|
1958
|
-
const _$42$
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
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;
|
|
1963
1932
|
break _L$7;
|
|
1964
1933
|
} else {
|
|
1965
1934
|
return false;
|
|
1966
1935
|
}
|
|
1967
1936
|
}
|
|
1968
1937
|
case 5: {
|
|
1969
|
-
if (
|
|
1938
|
+
if (_x_105.$tag === 5) {
|
|
1970
1939
|
return true;
|
|
1971
1940
|
} else {
|
|
1972
1941
|
return false;
|
|
1973
1942
|
}
|
|
1974
1943
|
}
|
|
1975
1944
|
case 6: {
|
|
1976
|
-
if (
|
|
1945
|
+
if (_x_105.$tag === 6) {
|
|
1977
1946
|
return true;
|
|
1978
1947
|
} else {
|
|
1979
1948
|
return false;
|
|
1980
1949
|
}
|
|
1981
1950
|
}
|
|
1982
1951
|
case 7: {
|
|
1983
|
-
const _Ident =
|
|
1984
|
-
const _$42$
|
|
1985
|
-
if (
|
|
1986
|
-
const _Ident$2 =
|
|
1987
|
-
const _$42$
|
|
1988
|
-
|
|
1989
|
-
|
|
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;
|
|
1990
1959
|
break _L$6;
|
|
1991
1960
|
} else {
|
|
1992
1961
|
return false;
|
|
1993
1962
|
}
|
|
1994
1963
|
}
|
|
1995
1964
|
case 8: {
|
|
1996
|
-
if (
|
|
1965
|
+
if (_x_105.$tag === 8) {
|
|
1997
1966
|
return true;
|
|
1998
1967
|
} else {
|
|
1999
1968
|
return false;
|
|
2000
1969
|
}
|
|
2001
1970
|
}
|
|
2002
1971
|
case 9: {
|
|
2003
|
-
if (
|
|
1972
|
+
if (_x_105.$tag === 9) {
|
|
2004
1973
|
return true;
|
|
2005
1974
|
} else {
|
|
2006
1975
|
return false;
|
|
2007
1976
|
}
|
|
2008
1977
|
}
|
|
2009
1978
|
case 10: {
|
|
2010
|
-
if (
|
|
1979
|
+
if (_x_105.$tag === 10) {
|
|
2011
1980
|
return true;
|
|
2012
1981
|
} else {
|
|
2013
1982
|
return false;
|
|
2014
1983
|
}
|
|
2015
1984
|
}
|
|
2016
1985
|
case 11: {
|
|
2017
|
-
if (
|
|
1986
|
+
if (_x_105.$tag === 11) {
|
|
2018
1987
|
return true;
|
|
2019
1988
|
} else {
|
|
2020
1989
|
return false;
|
|
2021
1990
|
}
|
|
2022
1991
|
}
|
|
2023
1992
|
case 12: {
|
|
2024
|
-
if (
|
|
1993
|
+
if (_x_105.$tag === 12) {
|
|
2025
1994
|
return true;
|
|
2026
1995
|
} else {
|
|
2027
1996
|
return false;
|
|
2028
1997
|
}
|
|
2029
1998
|
}
|
|
2030
1999
|
case 13: {
|
|
2031
|
-
if (
|
|
2000
|
+
if (_x_105.$tag === 13) {
|
|
2032
2001
|
return true;
|
|
2033
2002
|
} else {
|
|
2034
2003
|
return false;
|
|
2035
2004
|
}
|
|
2036
2005
|
}
|
|
2037
2006
|
case 14: {
|
|
2038
|
-
if (
|
|
2007
|
+
if (_x_105.$tag === 14) {
|
|
2039
2008
|
return true;
|
|
2040
2009
|
} else {
|
|
2041
2010
|
return false;
|
|
2042
2011
|
}
|
|
2043
2012
|
}
|
|
2044
2013
|
case 15: {
|
|
2045
|
-
if (
|
|
2014
|
+
if (_x_105.$tag === 15) {
|
|
2046
2015
|
return true;
|
|
2047
2016
|
} else {
|
|
2048
2017
|
return false;
|
|
2049
2018
|
}
|
|
2050
2019
|
}
|
|
2051
2020
|
case 16: {
|
|
2052
|
-
if (
|
|
2021
|
+
if (_x_105.$tag === 16) {
|
|
2053
2022
|
return true;
|
|
2054
2023
|
} else {
|
|
2055
2024
|
return false;
|
|
2056
2025
|
}
|
|
2057
2026
|
}
|
|
2058
2027
|
case 17: {
|
|
2059
|
-
if (
|
|
2028
|
+
if (_x_105.$tag === 17) {
|
|
2060
2029
|
return true;
|
|
2061
2030
|
} else {
|
|
2062
2031
|
return false;
|
|
2063
2032
|
}
|
|
2064
2033
|
}
|
|
2065
2034
|
case 18: {
|
|
2066
|
-
if (
|
|
2035
|
+
if (_x_105.$tag === 18) {
|
|
2067
2036
|
return true;
|
|
2068
2037
|
} else {
|
|
2069
2038
|
return false;
|
|
2070
2039
|
}
|
|
2071
2040
|
}
|
|
2072
2041
|
case 19: {
|
|
2073
|
-
if (
|
|
2042
|
+
if (_x_105.$tag === 19) {
|
|
2074
2043
|
return true;
|
|
2075
2044
|
} else {
|
|
2076
2045
|
return false;
|
|
2077
2046
|
}
|
|
2078
2047
|
}
|
|
2079
2048
|
case 20: {
|
|
2080
|
-
if (
|
|
2049
|
+
if (_x_105.$tag === 20) {
|
|
2081
2050
|
return true;
|
|
2082
2051
|
} else {
|
|
2083
2052
|
return false;
|
|
2084
2053
|
}
|
|
2085
2054
|
}
|
|
2086
2055
|
case 21: {
|
|
2087
|
-
if (
|
|
2056
|
+
if (_x_105.$tag === 21) {
|
|
2088
2057
|
return true;
|
|
2089
2058
|
} else {
|
|
2090
2059
|
return false;
|
|
2091
2060
|
}
|
|
2092
2061
|
}
|
|
2093
2062
|
case 22: {
|
|
2094
|
-
if (
|
|
2063
|
+
if (_x_105.$tag === 22) {
|
|
2095
2064
|
return true;
|
|
2096
2065
|
} else {
|
|
2097
2066
|
return false;
|
|
2098
2067
|
}
|
|
2099
2068
|
}
|
|
2100
2069
|
case 23: {
|
|
2101
|
-
if (
|
|
2070
|
+
if (_x_105.$tag === 23) {
|
|
2102
2071
|
return true;
|
|
2103
2072
|
} else {
|
|
2104
2073
|
return false;
|
|
2105
2074
|
}
|
|
2106
2075
|
}
|
|
2107
2076
|
case 24: {
|
|
2108
|
-
if (
|
|
2077
|
+
if (_x_105.$tag === 24) {
|
|
2109
2078
|
return true;
|
|
2110
2079
|
} else {
|
|
2111
2080
|
return false;
|
|
2112
2081
|
}
|
|
2113
2082
|
}
|
|
2114
2083
|
case 25: {
|
|
2115
|
-
if (
|
|
2084
|
+
if (_x_105.$tag === 25) {
|
|
2116
2085
|
return true;
|
|
2117
2086
|
} else {
|
|
2118
2087
|
return false;
|
|
2119
2088
|
}
|
|
2120
2089
|
}
|
|
2121
2090
|
case 26: {
|
|
2122
|
-
if (
|
|
2091
|
+
if (_x_105.$tag === 26) {
|
|
2123
2092
|
return true;
|
|
2124
2093
|
} else {
|
|
2125
2094
|
return false;
|
|
2126
2095
|
}
|
|
2127
2096
|
}
|
|
2128
2097
|
case 27: {
|
|
2129
|
-
if (
|
|
2098
|
+
if (_x_105.$tag === 27) {
|
|
2130
2099
|
return true;
|
|
2131
2100
|
} else {
|
|
2132
2101
|
return false;
|
|
2133
2102
|
}
|
|
2134
2103
|
}
|
|
2135
2104
|
case 28: {
|
|
2136
|
-
if (
|
|
2105
|
+
if (_x_105.$tag === 28) {
|
|
2137
2106
|
return true;
|
|
2138
2107
|
} else {
|
|
2139
2108
|
return false;
|
|
2140
2109
|
}
|
|
2141
2110
|
}
|
|
2142
2111
|
case 29: {
|
|
2143
|
-
if (
|
|
2112
|
+
if (_x_105.$tag === 29) {
|
|
2144
2113
|
return true;
|
|
2145
2114
|
} else {
|
|
2146
2115
|
return false;
|
|
2147
2116
|
}
|
|
2148
2117
|
}
|
|
2149
2118
|
case 30: {
|
|
2150
|
-
if (
|
|
2119
|
+
if (_x_105.$tag === 30) {
|
|
2151
2120
|
return true;
|
|
2152
2121
|
} else {
|
|
2153
2122
|
return false;
|
|
2154
2123
|
}
|
|
2155
2124
|
}
|
|
2156
2125
|
case 31: {
|
|
2157
|
-
if (
|
|
2126
|
+
if (_x_105.$tag === 31) {
|
|
2158
2127
|
return true;
|
|
2159
2128
|
} else {
|
|
2160
2129
|
return false;
|
|
2161
2130
|
}
|
|
2162
2131
|
}
|
|
2163
2132
|
case 32: {
|
|
2164
|
-
if (
|
|
2133
|
+
if (_x_105.$tag === 32) {
|
|
2165
2134
|
return true;
|
|
2166
2135
|
} else {
|
|
2167
2136
|
return false;
|
|
2168
2137
|
}
|
|
2169
2138
|
}
|
|
2170
2139
|
case 33: {
|
|
2171
|
-
if (
|
|
2140
|
+
if (_x_105.$tag === 33) {
|
|
2172
2141
|
return true;
|
|
2173
2142
|
} else {
|
|
2174
2143
|
return false;
|
|
2175
2144
|
}
|
|
2176
2145
|
}
|
|
2177
2146
|
case 34: {
|
|
2178
|
-
if (
|
|
2147
|
+
if (_x_105.$tag === 34) {
|
|
2179
2148
|
return true;
|
|
2180
2149
|
} else {
|
|
2181
2150
|
return false;
|
|
2182
2151
|
}
|
|
2183
2152
|
}
|
|
2184
2153
|
case 35: {
|
|
2185
|
-
if (
|
|
2154
|
+
if (_x_105.$tag === 35) {
|
|
2186
2155
|
return true;
|
|
2187
2156
|
} else {
|
|
2188
2157
|
return false;
|
|
2189
2158
|
}
|
|
2190
2159
|
}
|
|
2191
2160
|
case 36: {
|
|
2192
|
-
if (
|
|
2161
|
+
if (_x_105.$tag === 36) {
|
|
2193
2162
|
return true;
|
|
2194
2163
|
} else {
|
|
2195
2164
|
return false;
|
|
2196
2165
|
}
|
|
2197
2166
|
}
|
|
2198
2167
|
case 37: {
|
|
2199
|
-
if (
|
|
2168
|
+
if (_x_105.$tag === 37) {
|
|
2200
2169
|
return true;
|
|
2201
2170
|
} else {
|
|
2202
2171
|
return false;
|
|
2203
2172
|
}
|
|
2204
2173
|
}
|
|
2205
2174
|
case 38: {
|
|
2206
|
-
if (
|
|
2175
|
+
if (_x_105.$tag === 38) {
|
|
2207
2176
|
return true;
|
|
2208
2177
|
} else {
|
|
2209
2178
|
return false;
|
|
2210
2179
|
}
|
|
2211
2180
|
}
|
|
2212
2181
|
case 39: {
|
|
2213
|
-
if (
|
|
2182
|
+
if (_x_105.$tag === 39) {
|
|
2214
2183
|
return true;
|
|
2215
2184
|
} else {
|
|
2216
2185
|
return false;
|
|
2217
2186
|
}
|
|
2218
2187
|
}
|
|
2219
2188
|
case 40: {
|
|
2220
|
-
if (
|
|
2189
|
+
if (_x_105.$tag === 40) {
|
|
2221
2190
|
return true;
|
|
2222
2191
|
} else {
|
|
2223
2192
|
return false;
|
|
2224
2193
|
}
|
|
2225
2194
|
}
|
|
2226
2195
|
case 41: {
|
|
2227
|
-
if (
|
|
2196
|
+
if (_x_105.$tag === 41) {
|
|
2228
2197
|
return true;
|
|
2229
2198
|
} else {
|
|
2230
2199
|
return false;
|
|
2231
2200
|
}
|
|
2232
2201
|
}
|
|
2233
2202
|
case 42: {
|
|
2234
|
-
if (
|
|
2203
|
+
if (_x_105.$tag === 42) {
|
|
2235
2204
|
return true;
|
|
2236
2205
|
} else {
|
|
2237
2206
|
return false;
|
|
2238
2207
|
}
|
|
2239
2208
|
}
|
|
2240
2209
|
case 43: {
|
|
2241
|
-
if (
|
|
2210
|
+
if (_x_105.$tag === 43) {
|
|
2242
2211
|
return true;
|
|
2243
2212
|
} else {
|
|
2244
2213
|
return false;
|
|
2245
2214
|
}
|
|
2246
2215
|
}
|
|
2247
2216
|
case 44: {
|
|
2248
|
-
if (
|
|
2217
|
+
if (_x_105.$tag === 44) {
|
|
2249
2218
|
return true;
|
|
2250
2219
|
} else {
|
|
2251
2220
|
return false;
|
|
2252
2221
|
}
|
|
2253
2222
|
}
|
|
2254
2223
|
case 45: {
|
|
2255
|
-
if (
|
|
2224
|
+
if (_x_105.$tag === 45) {
|
|
2256
2225
|
return true;
|
|
2257
2226
|
} else {
|
|
2258
2227
|
return false;
|
|
2259
2228
|
}
|
|
2260
2229
|
}
|
|
2261
2230
|
case 46: {
|
|
2262
|
-
if (
|
|
2231
|
+
if (_x_105.$tag === 46) {
|
|
2263
2232
|
return true;
|
|
2264
2233
|
} else {
|
|
2265
2234
|
return false;
|
|
2266
2235
|
}
|
|
2267
2236
|
}
|
|
2268
2237
|
case 47: {
|
|
2269
|
-
if (
|
|
2238
|
+
if (_x_105.$tag === 47) {
|
|
2270
2239
|
return true;
|
|
2271
2240
|
} else {
|
|
2272
2241
|
return false;
|
|
2273
2242
|
}
|
|
2274
2243
|
}
|
|
2275
2244
|
case 48: {
|
|
2276
|
-
if (
|
|
2245
|
+
if (_x_105.$tag === 48) {
|
|
2277
2246
|
return true;
|
|
2278
2247
|
} else {
|
|
2279
2248
|
return false;
|
|
2280
2249
|
}
|
|
2281
2250
|
}
|
|
2282
2251
|
case 49: {
|
|
2283
|
-
if (
|
|
2252
|
+
if (_x_105.$tag === 49) {
|
|
2284
2253
|
return true;
|
|
2285
2254
|
} else {
|
|
2286
2255
|
return false;
|
|
2287
2256
|
}
|
|
2288
2257
|
}
|
|
2289
2258
|
case 50: {
|
|
2290
|
-
if (
|
|
2259
|
+
if (_x_105.$tag === 50) {
|
|
2291
2260
|
return true;
|
|
2292
2261
|
} else {
|
|
2293
2262
|
return false;
|
|
2294
2263
|
}
|
|
2295
2264
|
}
|
|
2296
2265
|
case 51: {
|
|
2297
|
-
if (
|
|
2266
|
+
if (_x_105.$tag === 51) {
|
|
2298
2267
|
return true;
|
|
2299
2268
|
} else {
|
|
2300
2269
|
return false;
|
|
2301
2270
|
}
|
|
2302
2271
|
}
|
|
2303
2272
|
case 52: {
|
|
2304
|
-
if (
|
|
2273
|
+
if (_x_105.$tag === 52) {
|
|
2305
2274
|
return true;
|
|
2306
2275
|
} else {
|
|
2307
2276
|
return false;
|
|
2308
2277
|
}
|
|
2309
2278
|
}
|
|
2310
2279
|
case 53: {
|
|
2311
|
-
if (
|
|
2280
|
+
if (_x_105.$tag === 53) {
|
|
2312
2281
|
return true;
|
|
2313
2282
|
} else {
|
|
2314
2283
|
return false;
|
|
2315
2284
|
}
|
|
2316
2285
|
}
|
|
2317
2286
|
case 54: {
|
|
2318
|
-
if (
|
|
2287
|
+
if (_x_105.$tag === 54) {
|
|
2319
2288
|
return true;
|
|
2320
2289
|
} else {
|
|
2321
2290
|
return false;
|
|
2322
2291
|
}
|
|
2323
2292
|
}
|
|
2324
2293
|
case 55: {
|
|
2325
|
-
if (
|
|
2294
|
+
if (_x_105.$tag === 55) {
|
|
2326
2295
|
return true;
|
|
2327
2296
|
} else {
|
|
2328
2297
|
return false;
|
|
2329
2298
|
}
|
|
2330
2299
|
}
|
|
2331
2300
|
case 56: {
|
|
2332
|
-
if (
|
|
2301
|
+
if (_x_105.$tag === 56) {
|
|
2333
2302
|
return true;
|
|
2334
2303
|
} else {
|
|
2335
2304
|
return false;
|
|
2336
2305
|
}
|
|
2337
2306
|
}
|
|
2338
2307
|
case 57: {
|
|
2339
|
-
if (
|
|
2308
|
+
if (_x_105.$tag === 57) {
|
|
2340
2309
|
return true;
|
|
2341
2310
|
} else {
|
|
2342
2311
|
return false;
|
|
2343
2312
|
}
|
|
2344
2313
|
}
|
|
2345
2314
|
case 58: {
|
|
2346
|
-
if (
|
|
2315
|
+
if (_x_105.$tag === 58) {
|
|
2347
2316
|
return true;
|
|
2348
2317
|
} else {
|
|
2349
2318
|
return false;
|
|
2350
2319
|
}
|
|
2351
2320
|
}
|
|
2352
2321
|
case 59: {
|
|
2353
|
-
if (
|
|
2322
|
+
if (_x_105.$tag === 59) {
|
|
2354
2323
|
return true;
|
|
2355
2324
|
} else {
|
|
2356
2325
|
return false;
|
|
2357
2326
|
}
|
|
2358
2327
|
}
|
|
2359
2328
|
case 60: {
|
|
2360
|
-
if (
|
|
2329
|
+
if (_x_105.$tag === 60) {
|
|
2361
2330
|
return true;
|
|
2362
2331
|
} else {
|
|
2363
2332
|
return false;
|
|
2364
2333
|
}
|
|
2365
2334
|
}
|
|
2366
2335
|
case 61: {
|
|
2367
|
-
if (
|
|
2336
|
+
if (_x_105.$tag === 61) {
|
|
2368
2337
|
return true;
|
|
2369
2338
|
} else {
|
|
2370
2339
|
return false;
|
|
2371
2340
|
}
|
|
2372
2341
|
}
|
|
2373
2342
|
case 62: {
|
|
2374
|
-
if (
|
|
2343
|
+
if (_x_105.$tag === 62) {
|
|
2375
2344
|
return true;
|
|
2376
2345
|
} else {
|
|
2377
2346
|
return false;
|
|
2378
2347
|
}
|
|
2379
2348
|
}
|
|
2380
2349
|
case 63: {
|
|
2381
|
-
if (
|
|
2350
|
+
if (_x_105.$tag === 63) {
|
|
2382
2351
|
return true;
|
|
2383
2352
|
} else {
|
|
2384
2353
|
return false;
|
|
2385
2354
|
}
|
|
2386
2355
|
}
|
|
2387
2356
|
case 64: {
|
|
2388
|
-
if (
|
|
2357
|
+
if (_x_105.$tag === 64) {
|
|
2389
2358
|
return true;
|
|
2390
2359
|
} else {
|
|
2391
2360
|
return false;
|
|
2392
2361
|
}
|
|
2393
2362
|
}
|
|
2394
2363
|
case 65: {
|
|
2395
|
-
if (
|
|
2364
|
+
if (_x_105.$tag === 65) {
|
|
2396
2365
|
return true;
|
|
2397
2366
|
} else {
|
|
2398
2367
|
return false;
|
|
2399
2368
|
}
|
|
2400
2369
|
}
|
|
2401
2370
|
case 66: {
|
|
2402
|
-
if (
|
|
2371
|
+
if (_x_105.$tag === 66) {
|
|
2403
2372
|
return true;
|
|
2404
2373
|
} else {
|
|
2405
2374
|
return false;
|
|
2406
2375
|
}
|
|
2407
2376
|
}
|
|
2408
2377
|
case 67: {
|
|
2409
|
-
if (
|
|
2378
|
+
if (_x_105.$tag === 67) {
|
|
2410
2379
|
return true;
|
|
2411
2380
|
} else {
|
|
2412
2381
|
return false;
|
|
2413
2382
|
}
|
|
2414
2383
|
}
|
|
2415
2384
|
case 68: {
|
|
2416
|
-
if (
|
|
2385
|
+
if (_x_105.$tag === 68) {
|
|
2417
2386
|
return true;
|
|
2418
2387
|
} else {
|
|
2419
2388
|
return false;
|
|
2420
2389
|
}
|
|
2421
2390
|
}
|
|
2422
2391
|
case 69: {
|
|
2423
|
-
if (
|
|
2392
|
+
if (_x_105.$tag === 69) {
|
|
2424
2393
|
return true;
|
|
2425
2394
|
} else {
|
|
2426
2395
|
return false;
|
|
2427
2396
|
}
|
|
2428
2397
|
}
|
|
2429
2398
|
case 70: {
|
|
2430
|
-
if (
|
|
2399
|
+
if (_x_105.$tag === 70) {
|
|
2431
2400
|
return true;
|
|
2432
2401
|
} else {
|
|
2433
2402
|
return false;
|
|
2434
2403
|
}
|
|
2435
2404
|
}
|
|
2436
2405
|
case 71: {
|
|
2437
|
-
if (
|
|
2406
|
+
if (_x_105.$tag === 71) {
|
|
2438
2407
|
return true;
|
|
2439
2408
|
} else {
|
|
2440
2409
|
return false;
|
|
2441
2410
|
}
|
|
2442
2411
|
}
|
|
2443
2412
|
case 72: {
|
|
2444
|
-
if (
|
|
2413
|
+
if (_x_105.$tag === 72) {
|
|
2445
2414
|
return true;
|
|
2446
2415
|
} else {
|
|
2447
2416
|
return false;
|
|
2448
2417
|
}
|
|
2449
2418
|
}
|
|
2450
2419
|
case 73: {
|
|
2451
|
-
if (
|
|
2420
|
+
if (_x_105.$tag === 73) {
|
|
2452
2421
|
return true;
|
|
2453
2422
|
} else {
|
|
2454
2423
|
return false;
|
|
2455
2424
|
}
|
|
2456
2425
|
}
|
|
2457
2426
|
case 74: {
|
|
2458
|
-
if (
|
|
2427
|
+
if (_x_105.$tag === 74) {
|
|
2459
2428
|
return true;
|
|
2460
2429
|
} else {
|
|
2461
2430
|
return false;
|
|
2462
2431
|
}
|
|
2463
2432
|
}
|
|
2464
2433
|
case 75: {
|
|
2465
|
-
if (
|
|
2434
|
+
if (_x_105.$tag === 75) {
|
|
2466
2435
|
return true;
|
|
2467
2436
|
} else {
|
|
2468
2437
|
return false;
|
|
2469
2438
|
}
|
|
2470
2439
|
}
|
|
2471
2440
|
case 76: {
|
|
2472
|
-
if (
|
|
2441
|
+
if (_x_105.$tag === 76) {
|
|
2473
2442
|
return true;
|
|
2474
2443
|
} else {
|
|
2475
2444
|
return false;
|
|
2476
2445
|
}
|
|
2477
2446
|
}
|
|
2478
2447
|
case 77: {
|
|
2479
|
-
if (
|
|
2448
|
+
if (_x_105.$tag === 77) {
|
|
2480
2449
|
return true;
|
|
2481
2450
|
} else {
|
|
2482
2451
|
return false;
|
|
2483
2452
|
}
|
|
2484
2453
|
}
|
|
2485
2454
|
case 78: {
|
|
2486
|
-
if (
|
|
2455
|
+
if (_x_105.$tag === 78) {
|
|
2487
2456
|
return true;
|
|
2488
2457
|
} else {
|
|
2489
2458
|
return false;
|
|
2490
2459
|
}
|
|
2491
2460
|
}
|
|
2492
2461
|
case 79: {
|
|
2493
|
-
if (
|
|
2462
|
+
if (_x_105.$tag === 79) {
|
|
2494
2463
|
return true;
|
|
2495
2464
|
} else {
|
|
2496
2465
|
return false;
|
|
2497
2466
|
}
|
|
2498
2467
|
}
|
|
2499
2468
|
case 80: {
|
|
2500
|
-
if (
|
|
2469
|
+
if (_x_105.$tag === 80) {
|
|
2501
2470
|
return true;
|
|
2502
2471
|
} else {
|
|
2503
2472
|
return false;
|
|
2504
2473
|
}
|
|
2505
2474
|
}
|
|
2506
2475
|
case 81: {
|
|
2507
|
-
if (
|
|
2476
|
+
if (_x_105.$tag === 81) {
|
|
2508
2477
|
return true;
|
|
2509
2478
|
} else {
|
|
2510
2479
|
return false;
|
|
2511
2480
|
}
|
|
2512
2481
|
}
|
|
2513
2482
|
case 82: {
|
|
2514
|
-
if (
|
|
2483
|
+
if (_x_105.$tag === 82) {
|
|
2515
2484
|
return true;
|
|
2516
2485
|
} else {
|
|
2517
2486
|
return false;
|
|
2518
2487
|
}
|
|
2519
2488
|
}
|
|
2520
2489
|
case 83: {
|
|
2521
|
-
if (
|
|
2490
|
+
if (_x_105.$tag === 83) {
|
|
2522
2491
|
return true;
|
|
2523
2492
|
} else {
|
|
2524
2493
|
return false;
|
|
2525
2494
|
}
|
|
2526
2495
|
}
|
|
2527
2496
|
case 84: {
|
|
2528
|
-
if (
|
|
2497
|
+
if (_x_105.$tag === 84) {
|
|
2529
2498
|
return true;
|
|
2530
2499
|
} else {
|
|
2531
2500
|
return false;
|
|
2532
2501
|
}
|
|
2533
2502
|
}
|
|
2534
2503
|
case 85: {
|
|
2535
|
-
if (
|
|
2504
|
+
if (_x_105.$tag === 85) {
|
|
2536
2505
|
return true;
|
|
2537
2506
|
} else {
|
|
2538
2507
|
return false;
|
|
2539
2508
|
}
|
|
2540
2509
|
}
|
|
2541
2510
|
case 86: {
|
|
2542
|
-
if (
|
|
2511
|
+
if (_x_105.$tag === 86) {
|
|
2543
2512
|
return true;
|
|
2544
2513
|
} else {
|
|
2545
2514
|
return false;
|
|
2546
2515
|
}
|
|
2547
2516
|
}
|
|
2548
2517
|
case 87: {
|
|
2549
|
-
if (
|
|
2518
|
+
if (_x_105.$tag === 87) {
|
|
2550
2519
|
return true;
|
|
2551
2520
|
} else {
|
|
2552
2521
|
return false;
|
|
2553
2522
|
}
|
|
2554
2523
|
}
|
|
2555
2524
|
case 88: {
|
|
2556
|
-
if (
|
|
2525
|
+
if (_x_105.$tag === 88) {
|
|
2557
2526
|
return true;
|
|
2558
2527
|
} else {
|
|
2559
2528
|
return false;
|
|
2560
2529
|
}
|
|
2561
2530
|
}
|
|
2562
2531
|
case 89: {
|
|
2563
|
-
if (
|
|
2532
|
+
if (_x_105.$tag === 89) {
|
|
2564
2533
|
return true;
|
|
2565
2534
|
} else {
|
|
2566
2535
|
return false;
|
|
2567
2536
|
}
|
|
2568
2537
|
}
|
|
2569
2538
|
case 90: {
|
|
2570
|
-
if (
|
|
2539
|
+
if (_x_105.$tag === 90) {
|
|
2571
2540
|
return true;
|
|
2572
2541
|
} else {
|
|
2573
2542
|
return false;
|
|
2574
2543
|
}
|
|
2575
2544
|
}
|
|
2576
2545
|
case 91: {
|
|
2577
|
-
if (
|
|
2546
|
+
if (_x_105.$tag === 91) {
|
|
2578
2547
|
return true;
|
|
2579
2548
|
} else {
|
|
2580
2549
|
return false;
|
|
2581
2550
|
}
|
|
2582
2551
|
}
|
|
2583
2552
|
case 92: {
|
|
2584
|
-
if (
|
|
2553
|
+
if (_x_105.$tag === 92) {
|
|
2585
2554
|
return true;
|
|
2586
2555
|
} else {
|
|
2587
2556
|
return false;
|
|
2588
2557
|
}
|
|
2589
2558
|
}
|
|
2590
2559
|
case 93: {
|
|
2591
|
-
if (
|
|
2560
|
+
if (_x_105.$tag === 93) {
|
|
2592
2561
|
return true;
|
|
2593
2562
|
} else {
|
|
2594
2563
|
return false;
|
|
2595
2564
|
}
|
|
2596
2565
|
}
|
|
2597
2566
|
case 94: {
|
|
2598
|
-
if (
|
|
2567
|
+
if (_x_105.$tag === 94) {
|
|
2599
2568
|
return true;
|
|
2600
2569
|
} else {
|
|
2601
2570
|
return false;
|
|
2602
2571
|
}
|
|
2603
2572
|
}
|
|
2604
2573
|
case 95: {
|
|
2605
|
-
if (
|
|
2574
|
+
if (_x_105.$tag === 95) {
|
|
2606
2575
|
return true;
|
|
2607
2576
|
} else {
|
|
2608
2577
|
return false;
|
|
2609
2578
|
}
|
|
2610
2579
|
}
|
|
2611
2580
|
case 96: {
|
|
2612
|
-
if (
|
|
2581
|
+
if (_x_105.$tag === 96) {
|
|
2613
2582
|
return true;
|
|
2614
2583
|
} else {
|
|
2615
2584
|
return false;
|
|
2616
2585
|
}
|
|
2617
2586
|
}
|
|
2618
2587
|
case 97: {
|
|
2619
|
-
if (
|
|
2588
|
+
if (_x_105.$tag === 97) {
|
|
2620
2589
|
return true;
|
|
2621
2590
|
} else {
|
|
2622
2591
|
return false;
|
|
2623
2592
|
}
|
|
2624
2593
|
}
|
|
2625
2594
|
case 98: {
|
|
2626
|
-
if (
|
|
2595
|
+
if (_x_105.$tag === 98) {
|
|
2627
2596
|
return true;
|
|
2628
2597
|
} else {
|
|
2629
2598
|
return false;
|
|
2630
2599
|
}
|
|
2631
2600
|
}
|
|
2632
2601
|
case 99: {
|
|
2633
|
-
if (
|
|
2602
|
+
if (_x_105.$tag === 99) {
|
|
2634
2603
|
return true;
|
|
2635
2604
|
} else {
|
|
2636
2605
|
return false;
|
|
2637
2606
|
}
|
|
2638
2607
|
}
|
|
2639
2608
|
case 100: {
|
|
2640
|
-
if (
|
|
2609
|
+
if (_x_105.$tag === 100) {
|
|
2641
2610
|
return true;
|
|
2642
2611
|
} else {
|
|
2643
2612
|
return false;
|
|
2644
2613
|
}
|
|
2645
2614
|
}
|
|
2646
2615
|
case 101: {
|
|
2647
|
-
if (
|
|
2616
|
+
if (_x_105.$tag === 101) {
|
|
2648
2617
|
return true;
|
|
2649
2618
|
} else {
|
|
2650
2619
|
return false;
|
|
2651
2620
|
}
|
|
2652
2621
|
}
|
|
2653
2622
|
case 102: {
|
|
2654
|
-
if (
|
|
2623
|
+
if (_x_105.$tag === 102) {
|
|
2655
2624
|
return true;
|
|
2656
2625
|
} else {
|
|
2657
2626
|
return false;
|
|
2658
2627
|
}
|
|
2659
2628
|
}
|
|
2660
2629
|
case 103: {
|
|
2661
|
-
if (
|
|
2630
|
+
if (_x_105.$tag === 103) {
|
|
2662
2631
|
return true;
|
|
2663
2632
|
} else {
|
|
2664
2633
|
return false;
|
|
2665
2634
|
}
|
|
2666
2635
|
}
|
|
2667
2636
|
case 104: {
|
|
2668
|
-
if (
|
|
2637
|
+
if (_x_105.$tag === 104) {
|
|
2669
2638
|
return true;
|
|
2670
2639
|
} else {
|
|
2671
2640
|
return false;
|
|
2672
2641
|
}
|
|
2673
2642
|
}
|
|
2674
2643
|
case 105: {
|
|
2675
|
-
if (
|
|
2644
|
+
if (_x_105.$tag === 105) {
|
|
2676
2645
|
return true;
|
|
2677
2646
|
} else {
|
|
2678
2647
|
return false;
|
|
2679
2648
|
}
|
|
2680
2649
|
}
|
|
2681
2650
|
case 106: {
|
|
2682
|
-
if (
|
|
2651
|
+
if (_x_105.$tag === 106) {
|
|
2683
2652
|
return true;
|
|
2684
2653
|
} else {
|
|
2685
2654
|
return false;
|
|
2686
2655
|
}
|
|
2687
2656
|
}
|
|
2688
2657
|
case 107: {
|
|
2689
|
-
if (
|
|
2658
|
+
if (_x_105.$tag === 107) {
|
|
2690
2659
|
return true;
|
|
2691
2660
|
} else {
|
|
2692
2661
|
return false;
|
|
2693
2662
|
}
|
|
2694
2663
|
}
|
|
2695
2664
|
case 108: {
|
|
2696
|
-
if (
|
|
2665
|
+
if (_x_105.$tag === 108) {
|
|
2697
2666
|
return true;
|
|
2698
2667
|
} else {
|
|
2699
2668
|
return false;
|
|
2700
2669
|
}
|
|
2701
2670
|
}
|
|
2702
2671
|
case 109: {
|
|
2703
|
-
const _Indent =
|
|
2704
|
-
const _$42$
|
|
2705
|
-
if (
|
|
2706
|
-
const _Indent$2 =
|
|
2707
|
-
const _$42$
|
|
2708
|
-
|
|
2709
|
-
|
|
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;
|
|
2710
2679
|
break _L$5;
|
|
2711
2680
|
} else {
|
|
2712
2681
|
return false;
|
|
2713
2682
|
}
|
|
2714
2683
|
}
|
|
2715
2684
|
case 110: {
|
|
2716
|
-
const _InterpStr =
|
|
2717
|
-
const _$42$
|
|
2718
|
-
if (
|
|
2719
|
-
const _InterpStr$2 =
|
|
2720
|
-
const _$42$
|
|
2721
|
-
|
|
2722
|
-
|
|
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;
|
|
2723
2692
|
break _L$4;
|
|
2724
2693
|
} else {
|
|
2725
2694
|
return false;
|
|
2726
2695
|
}
|
|
2727
2696
|
}
|
|
2728
2697
|
case 111: {
|
|
2729
|
-
const _Shebang =
|
|
2730
|
-
const _$42$
|
|
2731
|
-
if (
|
|
2732
|
-
const _Shebang$2 =
|
|
2733
|
-
const _$42$
|
|
2734
|
-
|
|
2735
|
-
|
|
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;
|
|
2736
2705
|
break _L$3;
|
|
2737
2706
|
} else {
|
|
2738
2707
|
return false;
|
|
2739
2708
|
}
|
|
2740
2709
|
}
|
|
2741
2710
|
case 112: {
|
|
2742
|
-
const _Comment =
|
|
2743
|
-
const _$42$
|
|
2744
|
-
if (
|
|
2745
|
-
const _Comment$2 =
|
|
2746
|
-
const _$42$
|
|
2747
|
-
|
|
2748
|
-
|
|
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;
|
|
2749
2718
|
break _L$2;
|
|
2750
2719
|
} else {
|
|
2751
2720
|
return false;
|
|
2752
2721
|
}
|
|
2753
2722
|
}
|
|
2754
2723
|
case 113: {
|
|
2755
|
-
const _BlockComment =
|
|
2756
|
-
const _$42$
|
|
2757
|
-
if (
|
|
2758
|
-
const _BlockComment$2 =
|
|
2759
|
-
const _$42$
|
|
2760
|
-
|
|
2761
|
-
|
|
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;
|
|
2762
2731
|
break _L;
|
|
2763
2732
|
} else {
|
|
2764
2733
|
return false;
|
|
2765
2734
|
}
|
|
2766
2735
|
}
|
|
2767
2736
|
default: {
|
|
2768
|
-
if (
|
|
2737
|
+
if (_x_105.$tag === 114) {
|
|
2769
2738
|
return true;
|
|
2770
2739
|
} else {
|
|
2771
2740
|
return false;
|
|
@@ -2773,27 +2742,27 @@ function _M0IP48username4core3src5lexer9TokenKindPB2Eq5equal(_x_102, _x_103) {
|
|
|
2773
2742
|
}
|
|
2774
2743
|
}
|
|
2775
2744
|
}
|
|
2776
|
-
return
|
|
2745
|
+
return _x0_106 === _y0_107;
|
|
2777
2746
|
}
|
|
2778
|
-
return
|
|
2747
|
+
return _x0_108 === _y0_109;
|
|
2779
2748
|
}
|
|
2780
|
-
return
|
|
2749
|
+
return _x0_110 === _y0_111;
|
|
2781
2750
|
}
|
|
2782
|
-
return
|
|
2751
|
+
return _x0_112 === _y0_113;
|
|
2783
2752
|
}
|
|
2784
|
-
return
|
|
2753
|
+
return _x0_114 === _y0_116 && _x1_115 === _y1_117;
|
|
2785
2754
|
}
|
|
2786
|
-
return
|
|
2755
|
+
return _x0_118 === _y0_119;
|
|
2787
2756
|
}
|
|
2788
|
-
return
|
|
2757
|
+
return _x0_120 === _y0_121;
|
|
2789
2758
|
}
|
|
2790
|
-
return _M0IPC15array5ArrayPB2Eq5equalGsE(
|
|
2759
|
+
return _M0IPC15array5ArrayPB2Eq5equalGsE(_x0_122, _y0_123);
|
|
2791
2760
|
}
|
|
2792
|
-
return
|
|
2761
|
+
return _x0_124 === _y0_125;
|
|
2793
2762
|
}
|
|
2794
|
-
return
|
|
2763
|
+
return _x0_126 === _y0_127;
|
|
2795
2764
|
}
|
|
2796
|
-
return
|
|
2765
|
+
return _x0_128 === _y0_129;
|
|
2797
2766
|
}
|
|
2798
2767
|
function _M0MP48username4core3src5lexer5Lexer3new(source) {
|
|
2799
2768
|
const chars = _M0MPC16string6String9to__array(source);
|
|
@@ -11262,7 +11231,7 @@ function _M0FP58username4core3src3cmd4main10cmd__build(args) {
|
|
|
11262
11231
|
}
|
|
11263
11232
|
}
|
|
11264
11233
|
const stmts = _M0MP48username4core3src6parser6Parser5parse(_M0MP48username4core3src6parser6Parser3new(filtered));
|
|
11265
|
-
const header = no_header.val ? "" : "// Generated by Purus 0.10.
|
|
11234
|
+
const header = no_header.val ? "" : "// Generated by Purus 0.10.1";
|
|
11266
11235
|
const js = _M0MP48username4core3src7codegen9JsCodegen16generate_2einner(_M0MP48username4core3src7codegen9JsCodegen11new_2einner(cjs.val), stmts, header, shebang.val, strict.val);
|
|
11267
11236
|
if (to_stdout.val) {
|
|
11268
11237
|
_M0FPB7printlnGsE(js);
|
|
@@ -11386,62 +11355,6 @@ function _M0FP58username4core3src3cmd4main10cmd__check(file) {
|
|
|
11386
11355
|
_M0MP48username4core3src6parser6Parser5parse(_M0MP48username4core3src6parser6Parser3new(tokens));
|
|
11387
11356
|
_M0FPB7printlnGsE(`OK: ${file}`);
|
|
11388
11357
|
}
|
|
11389
|
-
function _M0FP58username4core3src3cmd4main9cmd__init() {
|
|
11390
|
-
if (!_M0FP311moonbitlang1x2fs12path__exists("src")) {
|
|
11391
|
-
let _try_err;
|
|
11392
|
-
_L: {
|
|
11393
|
-
_L$2: {
|
|
11394
|
-
const _bind = _M0FP311moonbitlang1x2fs11create__dir("src");
|
|
11395
|
-
if (_bind.$tag === 1) {
|
|
11396
|
-
const _ok = _bind;
|
|
11397
|
-
_ok._0;
|
|
11398
|
-
} else {
|
|
11399
|
-
const _err = _bind;
|
|
11400
|
-
_try_err = _err._0;
|
|
11401
|
-
break _L$2;
|
|
11402
|
-
}
|
|
11403
|
-
break _L;
|
|
11404
|
-
}
|
|
11405
|
-
let msg;
|
|
11406
|
-
_L$3: {
|
|
11407
|
-
const _IOError = _try_err;
|
|
11408
|
-
const _msg = _IOError._0;
|
|
11409
|
-
msg = _msg;
|
|
11410
|
-
break _L$3;
|
|
11411
|
-
}
|
|
11412
|
-
_M0FPB7printlnGsE(`Error: cannot create src directory: ${msg}`);
|
|
11413
|
-
return undefined;
|
|
11414
|
-
}
|
|
11415
|
-
}
|
|
11416
|
-
if (!_M0FP311moonbitlang1x2fs12path__exists("src/main.purus")) {
|
|
11417
|
-
const main_purus = "-- main.purus\n\nconst message be ///Hello, World///\nconsole.log[message]\n";
|
|
11418
|
-
let _try_err;
|
|
11419
|
-
_L: {
|
|
11420
|
-
_L$2: {
|
|
11421
|
-
const _bind = _M0FP311moonbitlang1x2fs31write__string__to__file_2einner("src/main.purus", main_purus, "utf8");
|
|
11422
|
-
if (_bind.$tag === 1) {
|
|
11423
|
-
const _ok = _bind;
|
|
11424
|
-
_ok._0;
|
|
11425
|
-
} else {
|
|
11426
|
-
const _err = _bind;
|
|
11427
|
-
_try_err = _err._0;
|
|
11428
|
-
break _L$2;
|
|
11429
|
-
}
|
|
11430
|
-
break _L;
|
|
11431
|
-
}
|
|
11432
|
-
let msg;
|
|
11433
|
-
_L$3: {
|
|
11434
|
-
const _IOError = _try_err;
|
|
11435
|
-
const _msg = _IOError._0;
|
|
11436
|
-
msg = _msg;
|
|
11437
|
-
break _L$3;
|
|
11438
|
-
}
|
|
11439
|
-
_M0FPB7printlnGsE(`Error: ${msg}`);
|
|
11440
|
-
return undefined;
|
|
11441
|
-
}
|
|
11442
|
-
}
|
|
11443
|
-
_M0FPB7printlnGsE("Initialized purus project in current directory");
|
|
11444
|
-
}
|
|
11445
11358
|
(() => {
|
|
11446
11359
|
const args = _M0FP311moonbitlang1x3sys14get__cli__args();
|
|
11447
11360
|
if (args.length < 2) {
|
|
@@ -11461,10 +11374,6 @@ function _M0FP58username4core3src3cmd4main9cmd__init() {
|
|
|
11461
11374
|
_M0FP58username4core3src3cmd4main10cmd__check(file);
|
|
11462
11375
|
return;
|
|
11463
11376
|
}
|
|
11464
|
-
case "init": {
|
|
11465
|
-
_M0FP58username4core3src3cmd4main9cmd__init();
|
|
11466
|
-
return;
|
|
11467
|
-
}
|
|
11468
11377
|
default: {
|
|
11469
11378
|
_M0FPB7printlnGsE(`Unknown command: ${cmd}`);
|
|
11470
11379
|
return;
|