purus 0.0.2 → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [2026] [otoneko.]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README-ja.md ADDED
@@ -0,0 +1,58 @@
1
+ <div align="center">
2
+
3
+ [![Logo](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/logo.png)](https://purus.work)
4
+
5
+ [English](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/README.md) | **日本語**
6
+
7
+ </div>
8
+
9
+ ---
10
+
11
+ [![npm](https://img.shields.io/npm/v/purus)](https://www.npmjs.com/package/purus)
12
+ [![npm downloads](https://img.shields.io/npm/dm/purus)](https://www.npmjs.com/package/purus)
13
+ [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/otoneko1102/purus)](https://github.com/otoneko1102/purus/pulse)
14
+ [![GitHub last commit](https://img.shields.io/github/last-commit/otoneko1102/purus)](https://github.com/otoneko1102/purus/commits/main)
15
+ ![US layout](https://img.shields.io/badge/US_layout-Supported-green)
16
+ ![JIS layout](https://img.shields.io/badge/JIS_layout-Supported-green)
17
+
18
+ Purus — _/ˈpuː.rus/_ _**ラテン語で 純粋✨**_ — は、美しく、シンプルで、使いやすいプログラミング言語です。_JavaScript_ にコンパイルされます。
19
+
20
+ **あなたの指を _Shiftキー_ から解放します。**
21
+
22
+ Purusは、 _Shiftキー_ をほとんど押さずにプログラミングできます。
23
+
24
+ インストール:
25
+
26
+ ```sh
27
+ # Global
28
+ npm install -g purus
29
+
30
+ # or Local
31
+ npm install -D purus
32
+ ```
33
+
34
+ ## ファイル拡張子
35
+
36
+ | 拡張子 | 出力 |
37
+ | --------- | ------ |
38
+ | `.purus` | `.js` |
39
+ | `.cpurus` | `.cjs` |
40
+ | `.mpurus` | `.mjs` |
41
+
42
+ ## ツール
43
+
44
+ - **VS Code 拡張機能** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): シンタックスハイライト、スニペット、ファイルアイコン
45
+ - **リンター** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Purus の静的解析
46
+ - **Prettier プラグイン** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): コードフォーマッター
47
+
48
+ ## ドキュメント
49
+
50
+ ドキュメントは [purus.work](https://purus.work) で確認できます。
51
+
52
+ ## 著者
53
+
54
+ otoneko. https://github.com/otoneko1102
55
+
56
+ ## ライセンス
57
+
58
+ Apache 2.0 ライセンスに基づいて配布されます。詳細については、[LICENSE](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/LICENSE) を参照してください。
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ <div align="center">
2
+
3
+ [![Logo](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/logo.png)](https://purus.work)
4
+
5
+ **English** | [日本語](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/README-ja.md)
6
+
7
+ </div>
8
+
9
+ ---
10
+
11
+ [![npm](https://img.shields.io/npm/v/purus)](https://www.npmjs.com/package/purus)
12
+ [![npm downloads](https://img.shields.io/npm/dm/purus)](https://www.npmjs.com/package/purus)
13
+ [![GitHub commit activity](https://img.shields.io/github/commit-activity/m/otoneko1102/purus)](https://github.com/otoneko1102/purus/pulse)
14
+ [![GitHub last commit](https://img.shields.io/github/last-commit/otoneko1102/purus)](https://github.com/otoneko1102/purus/commits/main)
15
+ ![US layout](https://img.shields.io/badge/US_layout-Supported-green)
16
+ ![JIS layout](https://img.shields.io/badge/JIS_layout-Supported-green)
17
+
18
+ Purus - _/ˈpuː.rus/_ _**means pure✨ in Latin**_ - is a beautiful, simple, and easy-to-use language. It compiles to _JavaScript_.
19
+
20
+ **It makes your fingers free from the _Shift key_.**
21
+
22
+ With Purus, you can write code almost without pressing the _Shift key_.
23
+
24
+ ## Install
25
+
26
+ ```sh
27
+ # Global
28
+ npm install -g purus
29
+
30
+ # or Local
31
+ npm install -D purus
32
+ ```
33
+
34
+ ## File Extensions
35
+
36
+ | Extension | Output |
37
+ | --------- | ------ |
38
+ | `.purus` | `.js` |
39
+ | `.cpurus` | `.cjs` |
40
+ | `.mpurus` | `.mjs` |
41
+
42
+ ## Tooling
43
+
44
+ - **VS Code Extension** — [Marketplace](https://marketplace.visualstudio.com/items?itemName=otoneko1102.purus): Syntax highlighting, snippets, file icons
45
+ - **Linter** — [`@puruslang/linter`](https://www.npmjs.com/package/@puruslang/linter): Static analysis for Purus
46
+ - **Prettier Plugin** — [`@puruslang/prettier-plugin-purus`](https://www.npmjs.com/package/@puruslang/prettier-plugin-purus): Code formatting
47
+
48
+ ## Documentation
49
+
50
+ The documentation is available on [purus.work](https://purus.work).
51
+
52
+ ## Author
53
+
54
+ otoneko. https://github.com/otoneko1102
55
+
56
+ ## License
57
+
58
+ Distributed under the Apache 2.0 License. See [LICENSE](https://raw.githubusercontent.com/otoneko1102/purus/refs/heads/main/LICENSE) for more information.
@@ -2061,685 +2061,685 @@ function _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args() {
2061
2061
  function _M0FP311moonbitlang1x3sys14get__cli__args() {
2062
2062
  return _M0FP511moonbitlang1x3sys8internal3ffi14get__cli__args();
2063
2063
  }
2064
- function _M0IP28username4core9TokenKindP311moonbitlang4core7builtin2Eq5equal(_x_712, _x_713) {
2065
- let _x0_732;
2066
- let _y0_733;
2064
+ function _M0IP28username4core9TokenKindP311moonbitlang4core7builtin2Eq5equal(_x_714, _x_715) {
2065
+ let _x0_734;
2066
+ let _y0_735;
2067
2067
  _L: {
2068
- let _x0_730;
2069
- let _y0_731;
2068
+ let _x0_732;
2069
+ let _y0_733;
2070
2070
  _L$2: {
2071
- let _x0_728;
2072
- let _y0_729;
2071
+ let _x0_730;
2072
+ let _y0_731;
2073
2073
  _L$3: {
2074
- let _x0_726;
2075
- let _y0_727;
2074
+ let _x0_728;
2075
+ let _y0_729;
2076
2076
  _L$4: {
2077
- let _x0_724;
2078
- let _y0_725;
2077
+ let _x0_726;
2078
+ let _y0_727;
2079
2079
  _L$5: {
2080
- let _x1_721;
2081
- let _x0_720;
2082
- let _y0_722;
2083
- let _y1_723;
2080
+ let _x1_723;
2081
+ let _x0_722;
2082
+ let _y0_724;
2083
+ let _y1_725;
2084
2084
  _L$6: {
2085
- let _x0_718;
2086
- let _y0_719;
2085
+ let _x0_720;
2086
+ let _y0_721;
2087
2087
  _L$7: {
2088
- let _x0_716;
2089
- let _y0_717;
2088
+ let _x0_718;
2089
+ let _y0_719;
2090
2090
  _L$8: {
2091
- let _x0_714;
2092
- let _y0_715;
2091
+ let _x0_716;
2092
+ let _y0_717;
2093
2093
  _L$9: {
2094
- switch (_x_712.$tag) {
2094
+ switch (_x_714.$tag) {
2095
2095
  case 0: {
2096
- const _Int = _x_712;
2097
- const _$42$x0_714 = _Int._0;
2098
- if (_x_713.$tag === 0) {
2099
- const _Int$2 = _x_713;
2100
- const _$42$y0_715 = _Int$2._0;
2101
- _x0_714 = _$42$x0_714;
2102
- _y0_715 = _$42$y0_715;
2096
+ const _Int = _x_714;
2097
+ const _$42$x0_716 = _Int._0;
2098
+ if (_x_715.$tag === 0) {
2099
+ const _Int$2 = _x_715;
2100
+ const _$42$y0_717 = _Int$2._0;
2101
+ _x0_716 = _$42$x0_716;
2102
+ _y0_717 = _$42$y0_717;
2103
2103
  break _L$9;
2104
2104
  } else {
2105
2105
  return false;
2106
2106
  }
2107
2107
  }
2108
2108
  case 1: {
2109
- const _Float = _x_712;
2110
- const _$42$x0_716 = _Float._0;
2111
- if (_x_713.$tag === 1) {
2112
- const _Float$2 = _x_713;
2113
- const _$42$y0_717 = _Float$2._0;
2114
- _x0_716 = _$42$x0_716;
2115
- _y0_717 = _$42$y0_717;
2109
+ const _Float = _x_714;
2110
+ const _$42$x0_718 = _Float._0;
2111
+ if (_x_715.$tag === 1) {
2112
+ const _Float$2 = _x_715;
2113
+ const _$42$y0_719 = _Float$2._0;
2114
+ _x0_718 = _$42$x0_718;
2115
+ _y0_719 = _$42$y0_719;
2116
2116
  break _L$8;
2117
2117
  } else {
2118
2118
  return false;
2119
2119
  }
2120
2120
  }
2121
2121
  case 2: {
2122
- const _Str = _x_712;
2123
- const _$42$x0_718 = _Str._0;
2124
- if (_x_713.$tag === 2) {
2125
- const _Str$2 = _x_713;
2126
- const _$42$y0_719 = _Str$2._0;
2127
- _x0_718 = _$42$x0_718;
2128
- _y0_719 = _$42$y0_719;
2122
+ const _Str = _x_714;
2123
+ const _$42$x0_720 = _Str._0;
2124
+ if (_x_715.$tag === 2) {
2125
+ const _Str$2 = _x_715;
2126
+ const _$42$y0_721 = _Str$2._0;
2127
+ _x0_720 = _$42$x0_720;
2128
+ _y0_721 = _$42$y0_721;
2129
2129
  break _L$7;
2130
2130
  } else {
2131
2131
  return false;
2132
2132
  }
2133
2133
  }
2134
2134
  case 3: {
2135
- const _Regex = _x_712;
2136
- const _$42$x0_720 = _Regex._0;
2137
- const _$42$x1_721 = _Regex._1;
2138
- if (_x_713.$tag === 3) {
2139
- const _Regex$2 = _x_713;
2140
- const _$42$y0_722 = _Regex$2._0;
2141
- const _$42$y1_723 = _Regex$2._1;
2142
- _x1_721 = _$42$x1_721;
2143
- _x0_720 = _$42$x0_720;
2144
- _y0_722 = _$42$y0_722;
2145
- _y1_723 = _$42$y1_723;
2135
+ const _Regex = _x_714;
2136
+ const _$42$x0_722 = _Regex._0;
2137
+ const _$42$x1_723 = _Regex._1;
2138
+ if (_x_715.$tag === 3) {
2139
+ const _Regex$2 = _x_715;
2140
+ const _$42$y0_724 = _Regex$2._0;
2141
+ const _$42$y1_725 = _Regex$2._1;
2142
+ _x1_723 = _$42$x1_723;
2143
+ _x0_722 = _$42$x0_722;
2144
+ _y0_724 = _$42$y0_724;
2145
+ _y1_725 = _$42$y1_725;
2146
2146
  break _L$6;
2147
2147
  } else {
2148
2148
  return false;
2149
2149
  }
2150
2150
  }
2151
2151
  case 4: {
2152
- if (_x_713.$tag === 4) {
2152
+ if (_x_715.$tag === 4) {
2153
2153
  return true;
2154
2154
  } else {
2155
2155
  return false;
2156
2156
  }
2157
2157
  }
2158
2158
  case 5: {
2159
- if (_x_713.$tag === 5) {
2159
+ if (_x_715.$tag === 5) {
2160
2160
  return true;
2161
2161
  } else {
2162
2162
  return false;
2163
2163
  }
2164
2164
  }
2165
2165
  case 6: {
2166
- const _Ident = _x_712;
2167
- const _$42$x0_724 = _Ident._0;
2168
- if (_x_713.$tag === 6) {
2169
- const _Ident$2 = _x_713;
2170
- const _$42$y0_725 = _Ident$2._0;
2171
- _x0_724 = _$42$x0_724;
2172
- _y0_725 = _$42$y0_725;
2166
+ const _Ident = _x_714;
2167
+ const _$42$x0_726 = _Ident._0;
2168
+ if (_x_715.$tag === 6) {
2169
+ const _Ident$2 = _x_715;
2170
+ const _$42$y0_727 = _Ident$2._0;
2171
+ _x0_726 = _$42$x0_726;
2172
+ _y0_727 = _$42$y0_727;
2173
2173
  break _L$5;
2174
2174
  } else {
2175
2175
  return false;
2176
2176
  }
2177
2177
  }
2178
2178
  case 7: {
2179
- if (_x_713.$tag === 7) {
2179
+ if (_x_715.$tag === 7) {
2180
2180
  return true;
2181
2181
  } else {
2182
2182
  return false;
2183
2183
  }
2184
2184
  }
2185
2185
  case 8: {
2186
- if (_x_713.$tag === 8) {
2186
+ if (_x_715.$tag === 8) {
2187
2187
  return true;
2188
2188
  } else {
2189
2189
  return false;
2190
2190
  }
2191
2191
  }
2192
2192
  case 9: {
2193
- if (_x_713.$tag === 9) {
2193
+ if (_x_715.$tag === 9) {
2194
2194
  return true;
2195
2195
  } else {
2196
2196
  return false;
2197
2197
  }
2198
2198
  }
2199
2199
  case 10: {
2200
- if (_x_713.$tag === 10) {
2200
+ if (_x_715.$tag === 10) {
2201
2201
  return true;
2202
2202
  } else {
2203
2203
  return false;
2204
2204
  }
2205
2205
  }
2206
2206
  case 11: {
2207
- if (_x_713.$tag === 11) {
2207
+ if (_x_715.$tag === 11) {
2208
2208
  return true;
2209
2209
  } else {
2210
2210
  return false;
2211
2211
  }
2212
2212
  }
2213
2213
  case 12: {
2214
- if (_x_713.$tag === 12) {
2214
+ if (_x_715.$tag === 12) {
2215
2215
  return true;
2216
2216
  } else {
2217
2217
  return false;
2218
2218
  }
2219
2219
  }
2220
2220
  case 13: {
2221
- if (_x_713.$tag === 13) {
2221
+ if (_x_715.$tag === 13) {
2222
2222
  return true;
2223
2223
  } else {
2224
2224
  return false;
2225
2225
  }
2226
2226
  }
2227
2227
  case 14: {
2228
- if (_x_713.$tag === 14) {
2228
+ if (_x_715.$tag === 14) {
2229
2229
  return true;
2230
2230
  } else {
2231
2231
  return false;
2232
2232
  }
2233
2233
  }
2234
2234
  case 15: {
2235
- if (_x_713.$tag === 15) {
2235
+ if (_x_715.$tag === 15) {
2236
2236
  return true;
2237
2237
  } else {
2238
2238
  return false;
2239
2239
  }
2240
2240
  }
2241
2241
  case 16: {
2242
- if (_x_713.$tag === 16) {
2242
+ if (_x_715.$tag === 16) {
2243
2243
  return true;
2244
2244
  } else {
2245
2245
  return false;
2246
2246
  }
2247
2247
  }
2248
2248
  case 17: {
2249
- if (_x_713.$tag === 17) {
2249
+ if (_x_715.$tag === 17) {
2250
2250
  return true;
2251
2251
  } else {
2252
2252
  return false;
2253
2253
  }
2254
2254
  }
2255
2255
  case 18: {
2256
- if (_x_713.$tag === 18) {
2256
+ if (_x_715.$tag === 18) {
2257
2257
  return true;
2258
2258
  } else {
2259
2259
  return false;
2260
2260
  }
2261
2261
  }
2262
2262
  case 19: {
2263
- if (_x_713.$tag === 19) {
2263
+ if (_x_715.$tag === 19) {
2264
2264
  return true;
2265
2265
  } else {
2266
2266
  return false;
2267
2267
  }
2268
2268
  }
2269
2269
  case 20: {
2270
- if (_x_713.$tag === 20) {
2270
+ if (_x_715.$tag === 20) {
2271
2271
  return true;
2272
2272
  } else {
2273
2273
  return false;
2274
2274
  }
2275
2275
  }
2276
2276
  case 21: {
2277
- if (_x_713.$tag === 21) {
2277
+ if (_x_715.$tag === 21) {
2278
2278
  return true;
2279
2279
  } else {
2280
2280
  return false;
2281
2281
  }
2282
2282
  }
2283
2283
  case 22: {
2284
- if (_x_713.$tag === 22) {
2284
+ if (_x_715.$tag === 22) {
2285
2285
  return true;
2286
2286
  } else {
2287
2287
  return false;
2288
2288
  }
2289
2289
  }
2290
2290
  case 23: {
2291
- if (_x_713.$tag === 23) {
2291
+ if (_x_715.$tag === 23) {
2292
2292
  return true;
2293
2293
  } else {
2294
2294
  return false;
2295
2295
  }
2296
2296
  }
2297
2297
  case 24: {
2298
- if (_x_713.$tag === 24) {
2298
+ if (_x_715.$tag === 24) {
2299
2299
  return true;
2300
2300
  } else {
2301
2301
  return false;
2302
2302
  }
2303
2303
  }
2304
2304
  case 25: {
2305
- if (_x_713.$tag === 25) {
2305
+ if (_x_715.$tag === 25) {
2306
2306
  return true;
2307
2307
  } else {
2308
2308
  return false;
2309
2309
  }
2310
2310
  }
2311
2311
  case 26: {
2312
- if (_x_713.$tag === 26) {
2312
+ if (_x_715.$tag === 26) {
2313
2313
  return true;
2314
2314
  } else {
2315
2315
  return false;
2316
2316
  }
2317
2317
  }
2318
2318
  case 27: {
2319
- if (_x_713.$tag === 27) {
2319
+ if (_x_715.$tag === 27) {
2320
2320
  return true;
2321
2321
  } else {
2322
2322
  return false;
2323
2323
  }
2324
2324
  }
2325
2325
  case 28: {
2326
- if (_x_713.$tag === 28) {
2326
+ if (_x_715.$tag === 28) {
2327
2327
  return true;
2328
2328
  } else {
2329
2329
  return false;
2330
2330
  }
2331
2331
  }
2332
2332
  case 29: {
2333
- if (_x_713.$tag === 29) {
2333
+ if (_x_715.$tag === 29) {
2334
2334
  return true;
2335
2335
  } else {
2336
2336
  return false;
2337
2337
  }
2338
2338
  }
2339
2339
  case 30: {
2340
- if (_x_713.$tag === 30) {
2340
+ if (_x_715.$tag === 30) {
2341
2341
  return true;
2342
2342
  } else {
2343
2343
  return false;
2344
2344
  }
2345
2345
  }
2346
2346
  case 31: {
2347
- if (_x_713.$tag === 31) {
2347
+ if (_x_715.$tag === 31) {
2348
2348
  return true;
2349
2349
  } else {
2350
2350
  return false;
2351
2351
  }
2352
2352
  }
2353
2353
  case 32: {
2354
- if (_x_713.$tag === 32) {
2354
+ if (_x_715.$tag === 32) {
2355
2355
  return true;
2356
2356
  } else {
2357
2357
  return false;
2358
2358
  }
2359
2359
  }
2360
2360
  case 33: {
2361
- if (_x_713.$tag === 33) {
2361
+ if (_x_715.$tag === 33) {
2362
2362
  return true;
2363
2363
  } else {
2364
2364
  return false;
2365
2365
  }
2366
2366
  }
2367
2367
  case 34: {
2368
- if (_x_713.$tag === 34) {
2368
+ if (_x_715.$tag === 34) {
2369
2369
  return true;
2370
2370
  } else {
2371
2371
  return false;
2372
2372
  }
2373
2373
  }
2374
2374
  case 35: {
2375
- if (_x_713.$tag === 35) {
2375
+ if (_x_715.$tag === 35) {
2376
2376
  return true;
2377
2377
  } else {
2378
2378
  return false;
2379
2379
  }
2380
2380
  }
2381
2381
  case 36: {
2382
- if (_x_713.$tag === 36) {
2382
+ if (_x_715.$tag === 36) {
2383
2383
  return true;
2384
2384
  } else {
2385
2385
  return false;
2386
2386
  }
2387
2387
  }
2388
2388
  case 37: {
2389
- if (_x_713.$tag === 37) {
2389
+ if (_x_715.$tag === 37) {
2390
2390
  return true;
2391
2391
  } else {
2392
2392
  return false;
2393
2393
  }
2394
2394
  }
2395
2395
  case 38: {
2396
- if (_x_713.$tag === 38) {
2396
+ if (_x_715.$tag === 38) {
2397
2397
  return true;
2398
2398
  } else {
2399
2399
  return false;
2400
2400
  }
2401
2401
  }
2402
2402
  case 39: {
2403
- if (_x_713.$tag === 39) {
2403
+ if (_x_715.$tag === 39) {
2404
2404
  return true;
2405
2405
  } else {
2406
2406
  return false;
2407
2407
  }
2408
2408
  }
2409
2409
  case 40: {
2410
- if (_x_713.$tag === 40) {
2410
+ if (_x_715.$tag === 40) {
2411
2411
  return true;
2412
2412
  } else {
2413
2413
  return false;
2414
2414
  }
2415
2415
  }
2416
2416
  case 41: {
2417
- if (_x_713.$tag === 41) {
2417
+ if (_x_715.$tag === 41) {
2418
2418
  return true;
2419
2419
  } else {
2420
2420
  return false;
2421
2421
  }
2422
2422
  }
2423
2423
  case 42: {
2424
- if (_x_713.$tag === 42) {
2424
+ if (_x_715.$tag === 42) {
2425
2425
  return true;
2426
2426
  } else {
2427
2427
  return false;
2428
2428
  }
2429
2429
  }
2430
2430
  case 43: {
2431
- if (_x_713.$tag === 43) {
2431
+ if (_x_715.$tag === 43) {
2432
2432
  return true;
2433
2433
  } else {
2434
2434
  return false;
2435
2435
  }
2436
2436
  }
2437
2437
  case 44: {
2438
- if (_x_713.$tag === 44) {
2438
+ if (_x_715.$tag === 44) {
2439
2439
  return true;
2440
2440
  } else {
2441
2441
  return false;
2442
2442
  }
2443
2443
  }
2444
2444
  case 45: {
2445
- if (_x_713.$tag === 45) {
2445
+ if (_x_715.$tag === 45) {
2446
2446
  return true;
2447
2447
  } else {
2448
2448
  return false;
2449
2449
  }
2450
2450
  }
2451
2451
  case 46: {
2452
- if (_x_713.$tag === 46) {
2452
+ if (_x_715.$tag === 46) {
2453
2453
  return true;
2454
2454
  } else {
2455
2455
  return false;
2456
2456
  }
2457
2457
  }
2458
2458
  case 47: {
2459
- if (_x_713.$tag === 47) {
2459
+ if (_x_715.$tag === 47) {
2460
2460
  return true;
2461
2461
  } else {
2462
2462
  return false;
2463
2463
  }
2464
2464
  }
2465
2465
  case 48: {
2466
- if (_x_713.$tag === 48) {
2466
+ if (_x_715.$tag === 48) {
2467
2467
  return true;
2468
2468
  } else {
2469
2469
  return false;
2470
2470
  }
2471
2471
  }
2472
2472
  case 49: {
2473
- if (_x_713.$tag === 49) {
2473
+ if (_x_715.$tag === 49) {
2474
2474
  return true;
2475
2475
  } else {
2476
2476
  return false;
2477
2477
  }
2478
2478
  }
2479
2479
  case 50: {
2480
- if (_x_713.$tag === 50) {
2480
+ if (_x_715.$tag === 50) {
2481
2481
  return true;
2482
2482
  } else {
2483
2483
  return false;
2484
2484
  }
2485
2485
  }
2486
2486
  case 51: {
2487
- if (_x_713.$tag === 51) {
2487
+ if (_x_715.$tag === 51) {
2488
2488
  return true;
2489
2489
  } else {
2490
2490
  return false;
2491
2491
  }
2492
2492
  }
2493
2493
  case 52: {
2494
- if (_x_713.$tag === 52) {
2494
+ if (_x_715.$tag === 52) {
2495
2495
  return true;
2496
2496
  } else {
2497
2497
  return false;
2498
2498
  }
2499
2499
  }
2500
2500
  case 53: {
2501
- if (_x_713.$tag === 53) {
2501
+ if (_x_715.$tag === 53) {
2502
2502
  return true;
2503
2503
  } else {
2504
2504
  return false;
2505
2505
  }
2506
2506
  }
2507
2507
  case 54: {
2508
- if (_x_713.$tag === 54) {
2508
+ if (_x_715.$tag === 54) {
2509
2509
  return true;
2510
2510
  } else {
2511
2511
  return false;
2512
2512
  }
2513
2513
  }
2514
2514
  case 55: {
2515
- if (_x_713.$tag === 55) {
2515
+ if (_x_715.$tag === 55) {
2516
2516
  return true;
2517
2517
  } else {
2518
2518
  return false;
2519
2519
  }
2520
2520
  }
2521
2521
  case 56: {
2522
- if (_x_713.$tag === 56) {
2522
+ if (_x_715.$tag === 56) {
2523
2523
  return true;
2524
2524
  } else {
2525
2525
  return false;
2526
2526
  }
2527
2527
  }
2528
2528
  case 57: {
2529
- if (_x_713.$tag === 57) {
2529
+ if (_x_715.$tag === 57) {
2530
2530
  return true;
2531
2531
  } else {
2532
2532
  return false;
2533
2533
  }
2534
2534
  }
2535
2535
  case 58: {
2536
- if (_x_713.$tag === 58) {
2536
+ if (_x_715.$tag === 58) {
2537
2537
  return true;
2538
2538
  } else {
2539
2539
  return false;
2540
2540
  }
2541
2541
  }
2542
2542
  case 59: {
2543
- if (_x_713.$tag === 59) {
2543
+ if (_x_715.$tag === 59) {
2544
2544
  return true;
2545
2545
  } else {
2546
2546
  return false;
2547
2547
  }
2548
2548
  }
2549
2549
  case 60: {
2550
- if (_x_713.$tag === 60) {
2550
+ if (_x_715.$tag === 60) {
2551
2551
  return true;
2552
2552
  } else {
2553
2553
  return false;
2554
2554
  }
2555
2555
  }
2556
2556
  case 61: {
2557
- if (_x_713.$tag === 61) {
2557
+ if (_x_715.$tag === 61) {
2558
2558
  return true;
2559
2559
  } else {
2560
2560
  return false;
2561
2561
  }
2562
2562
  }
2563
2563
  case 62: {
2564
- if (_x_713.$tag === 62) {
2564
+ if (_x_715.$tag === 62) {
2565
2565
  return true;
2566
2566
  } else {
2567
2567
  return false;
2568
2568
  }
2569
2569
  }
2570
2570
  case 63: {
2571
- if (_x_713.$tag === 63) {
2571
+ if (_x_715.$tag === 63) {
2572
2572
  return true;
2573
2573
  } else {
2574
2574
  return false;
2575
2575
  }
2576
2576
  }
2577
2577
  case 64: {
2578
- if (_x_713.$tag === 64) {
2578
+ if (_x_715.$tag === 64) {
2579
2579
  return true;
2580
2580
  } else {
2581
2581
  return false;
2582
2582
  }
2583
2583
  }
2584
2584
  case 65: {
2585
- if (_x_713.$tag === 65) {
2585
+ if (_x_715.$tag === 65) {
2586
2586
  return true;
2587
2587
  } else {
2588
2588
  return false;
2589
2589
  }
2590
2590
  }
2591
2591
  case 66: {
2592
- if (_x_713.$tag === 66) {
2592
+ if (_x_715.$tag === 66) {
2593
2593
  return true;
2594
2594
  } else {
2595
2595
  return false;
2596
2596
  }
2597
2597
  }
2598
2598
  case 67: {
2599
- if (_x_713.$tag === 67) {
2599
+ if (_x_715.$tag === 67) {
2600
2600
  return true;
2601
2601
  } else {
2602
2602
  return false;
2603
2603
  }
2604
2604
  }
2605
2605
  case 68: {
2606
- if (_x_713.$tag === 68) {
2606
+ if (_x_715.$tag === 68) {
2607
2607
  return true;
2608
2608
  } else {
2609
2609
  return false;
2610
2610
  }
2611
2611
  }
2612
2612
  case 69: {
2613
- if (_x_713.$tag === 69) {
2613
+ if (_x_715.$tag === 69) {
2614
2614
  return true;
2615
2615
  } else {
2616
2616
  return false;
2617
2617
  }
2618
2618
  }
2619
2619
  case 70: {
2620
- if (_x_713.$tag === 70) {
2620
+ if (_x_715.$tag === 70) {
2621
2621
  return true;
2622
2622
  } else {
2623
2623
  return false;
2624
2624
  }
2625
2625
  }
2626
2626
  case 71: {
2627
- if (_x_713.$tag === 71) {
2627
+ if (_x_715.$tag === 71) {
2628
2628
  return true;
2629
2629
  } else {
2630
2630
  return false;
2631
2631
  }
2632
2632
  }
2633
2633
  case 72: {
2634
- if (_x_713.$tag === 72) {
2634
+ if (_x_715.$tag === 72) {
2635
2635
  return true;
2636
2636
  } else {
2637
2637
  return false;
2638
2638
  }
2639
2639
  }
2640
2640
  case 73: {
2641
- if (_x_713.$tag === 73) {
2641
+ if (_x_715.$tag === 73) {
2642
2642
  return true;
2643
2643
  } else {
2644
2644
  return false;
2645
2645
  }
2646
2646
  }
2647
2647
  case 74: {
2648
- if (_x_713.$tag === 74) {
2648
+ if (_x_715.$tag === 74) {
2649
2649
  return true;
2650
2650
  } else {
2651
2651
  return false;
2652
2652
  }
2653
2653
  }
2654
2654
  case 75: {
2655
- if (_x_713.$tag === 75) {
2655
+ if (_x_715.$tag === 75) {
2656
2656
  return true;
2657
2657
  } else {
2658
2658
  return false;
2659
2659
  }
2660
2660
  }
2661
2661
  case 76: {
2662
- if (_x_713.$tag === 76) {
2662
+ if (_x_715.$tag === 76) {
2663
2663
  return true;
2664
2664
  } else {
2665
2665
  return false;
2666
2666
  }
2667
2667
  }
2668
2668
  case 77: {
2669
- if (_x_713.$tag === 77) {
2669
+ if (_x_715.$tag === 77) {
2670
2670
  return true;
2671
2671
  } else {
2672
2672
  return false;
2673
2673
  }
2674
2674
  }
2675
2675
  case 78: {
2676
- if (_x_713.$tag === 78) {
2676
+ if (_x_715.$tag === 78) {
2677
2677
  return true;
2678
2678
  } else {
2679
2679
  return false;
2680
2680
  }
2681
2681
  }
2682
2682
  case 79: {
2683
- if (_x_713.$tag === 79) {
2683
+ if (_x_715.$tag === 79) {
2684
2684
  return true;
2685
2685
  } else {
2686
2686
  return false;
2687
2687
  }
2688
2688
  }
2689
2689
  case 80: {
2690
- const _Indent = _x_712;
2691
- const _$42$x0_726 = _Indent._0;
2692
- if (_x_713.$tag === 80) {
2693
- const _Indent$2 = _x_713;
2694
- const _$42$y0_727 = _Indent$2._0;
2695
- _x0_726 = _$42$x0_726;
2696
- _y0_727 = _$42$y0_727;
2690
+ const _Indent = _x_714;
2691
+ const _$42$x0_728 = _Indent._0;
2692
+ if (_x_715.$tag === 80) {
2693
+ const _Indent$2 = _x_715;
2694
+ const _$42$y0_729 = _Indent$2._0;
2695
+ _x0_728 = _$42$x0_728;
2696
+ _y0_729 = _$42$y0_729;
2697
2697
  break _L$4;
2698
2698
  } else {
2699
2699
  return false;
2700
2700
  }
2701
2701
  }
2702
2702
  case 81: {
2703
- const _Shebang = _x_712;
2704
- const _$42$x0_728 = _Shebang._0;
2705
- if (_x_713.$tag === 81) {
2706
- const _Shebang$2 = _x_713;
2707
- const _$42$y0_729 = _Shebang$2._0;
2708
- _x0_728 = _$42$x0_728;
2709
- _y0_729 = _$42$y0_729;
2703
+ const _Shebang = _x_714;
2704
+ const _$42$x0_730 = _Shebang._0;
2705
+ if (_x_715.$tag === 81) {
2706
+ const _Shebang$2 = _x_715;
2707
+ const _$42$y0_731 = _Shebang$2._0;
2708
+ _x0_730 = _$42$x0_730;
2709
+ _y0_731 = _$42$y0_731;
2710
2710
  break _L$3;
2711
2711
  } else {
2712
2712
  return false;
2713
2713
  }
2714
2714
  }
2715
2715
  case 82: {
2716
- const _Comment = _x_712;
2717
- const _$42$x0_730 = _Comment._0;
2718
- if (_x_713.$tag === 82) {
2719
- const _Comment$2 = _x_713;
2720
- const _$42$y0_731 = _Comment$2._0;
2721
- _x0_730 = _$42$x0_730;
2722
- _y0_731 = _$42$y0_731;
2716
+ const _Comment = _x_714;
2717
+ const _$42$x0_732 = _Comment._0;
2718
+ if (_x_715.$tag === 82) {
2719
+ const _Comment$2 = _x_715;
2720
+ const _$42$y0_733 = _Comment$2._0;
2721
+ _x0_732 = _$42$x0_732;
2722
+ _y0_733 = _$42$y0_733;
2723
2723
  break _L$2;
2724
2724
  } else {
2725
2725
  return false;
2726
2726
  }
2727
2727
  }
2728
2728
  case 83: {
2729
- const _BlockComment = _x_712;
2730
- const _$42$x0_732 = _BlockComment._0;
2731
- if (_x_713.$tag === 83) {
2732
- const _BlockComment$2 = _x_713;
2733
- const _$42$y0_733 = _BlockComment$2._0;
2734
- _x0_732 = _$42$x0_732;
2735
- _y0_733 = _$42$y0_733;
2729
+ const _BlockComment = _x_714;
2730
+ const _$42$x0_734 = _BlockComment._0;
2731
+ if (_x_715.$tag === 83) {
2732
+ const _BlockComment$2 = _x_715;
2733
+ const _$42$y0_735 = _BlockComment$2._0;
2734
+ _x0_734 = _$42$x0_734;
2735
+ _y0_735 = _$42$y0_735;
2736
2736
  break _L;
2737
2737
  } else {
2738
2738
  return false;
2739
2739
  }
2740
2740
  }
2741
2741
  default: {
2742
- if (_x_713.$tag === 84) {
2742
+ if (_x_715.$tag === 84) {
2743
2743
  return true;
2744
2744
  } else {
2745
2745
  return false;
@@ -2747,27 +2747,85 @@ function _M0IP28username4core9TokenKindP311moonbitlang4core7builtin2Eq5equal(_x_
2747
2747
  }
2748
2748
  }
2749
2749
  }
2750
- return _x0_714 === _y0_715;
2750
+ return _x0_716 === _y0_717;
2751
2751
  }
2752
- return _x0_716 === _y0_717;
2752
+ return _x0_718 === _y0_719;
2753
2753
  }
2754
- return _x0_718 === _y0_719;
2754
+ return _x0_720 === _y0_721;
2755
2755
  }
2756
- return _x0_720 === _y0_722 && _x1_721 === _y1_723;
2756
+ return _x0_722 === _y0_724 && _x1_723 === _y1_725;
2757
2757
  }
2758
- return _x0_724 === _y0_725;
2758
+ return _x0_726 === _y0_727;
2759
2759
  }
2760
- return _x0_726 === _y0_727;
2760
+ return _x0_728 === _y0_729;
2761
2761
  }
2762
- return _x0_728 === _y0_729;
2762
+ return _x0_730 === _y0_731;
2763
2763
  }
2764
- return _x0_730 === _y0_731;
2764
+ return _x0_732 === _y0_733;
2765
2765
  }
2766
- return _x0_732 === _y0_733;
2766
+ return _x0_734 === _y0_735;
2767
2767
  }
2768
2768
  function _M0MP28username4core6Parser4peek(self) {
2769
2769
  return self.pos >= self.tokens.length ? $64$username$47$core$46$TokenKind$Eof : _M0MP311moonbitlang4core5array5Array2atGRP28username4core5TokenE(self.tokens, self.pos).kind;
2770
2770
  }
2771
+ function _M0MP28username4core6Parser14is__type__name(self) {
2772
+ let s;
2773
+ _L: {
2774
+ const _bind = _M0MP28username4core6Parser4peek(self);
2775
+ if (_bind.$tag === 6) {
2776
+ const _Ident = _bind;
2777
+ const _s = _Ident._0;
2778
+ s = _s;
2779
+ break _L;
2780
+ } else {
2781
+ return false;
2782
+ }
2783
+ }
2784
+ switch (s) {
2785
+ case "string": {
2786
+ return true;
2787
+ }
2788
+ case "number": {
2789
+ return true;
2790
+ }
2791
+ case "boolean": {
2792
+ return true;
2793
+ }
2794
+ case "undefined": {
2795
+ return true;
2796
+ }
2797
+ case "function": {
2798
+ return true;
2799
+ }
2800
+ case "symbol": {
2801
+ return true;
2802
+ }
2803
+ case "bigint": {
2804
+ return true;
2805
+ }
2806
+ case "null": {
2807
+ return true;
2808
+ }
2809
+ case "object": {
2810
+ return true;
2811
+ }
2812
+ default: {
2813
+ if (s.length > 0) {
2814
+ let _tmp;
2815
+ $bound_check(s, 0);
2816
+ if (_M0IP016_24default__implP311moonbitlang4core7builtin7Compare6op__geGkE(s.charCodeAt(0), 65)) {
2817
+ $bound_check(s, 0);
2818
+ _tmp = _M0IP016_24default__implP311moonbitlang4core7builtin7Compare6op__leGkE(s.charCodeAt(0), 90);
2819
+ } else {
2820
+ _tmp = false;
2821
+ }
2822
+ return _tmp;
2823
+ } else {
2824
+ return false;
2825
+ }
2826
+ }
2827
+ }
2828
+ }
2771
2829
  function _M0MP28username4core6Parser7advance(self) {
2772
2830
  const tok = _M0MP28username4core6Parser4peek(self);
2773
2831
  self.pos = self.pos + 1 | 0;
@@ -3211,34 +3269,41 @@ function _M0MP28username4core6Parser15parse__equality(self) {
3211
3269
  const left = { val: _M0MP28username4core6Parser17parse__comparison(self) };
3212
3270
  _L: while (true) {
3213
3271
  if (self.pos < self.tokens.length) {
3214
- const _bind = _M0MP28username4core6Parser4peek(self);
3215
- switch (_bind.$tag) {
3216
- case 17: {
3217
- self.pos = self.pos + 1 | 0;
3218
- const right = _M0MP28username4core6Parser17parse__comparison(self);
3219
- left.val = new $64$username$47$core$46$Expr$BinOp(5, left.val, right);
3220
- break;
3221
- }
3222
- case 18: {
3223
- self.pos = self.pos + 1 | 0;
3224
- const right$2 = _M0MP28username4core6Parser17parse__comparison(self);
3225
- left.val = new $64$username$47$core$46$Expr$BinOp(6, left.val, right$2);
3226
- break;
3272
+ _L$2: {
3273
+ _L$3: {
3274
+ const _bind = _M0MP28username4core6Parser4peek(self);
3275
+ switch (_bind.$tag) {
3276
+ case 17: {
3277
+ break _L$3;
3278
+ }
3279
+ case 44: {
3280
+ break _L$3;
3281
+ }
3282
+ case 18: {
3283
+ self.pos = self.pos + 1 | 0;
3284
+ const right = _M0MP28username4core6Parser17parse__comparison(self);
3285
+ left.val = new $64$username$47$core$46$Expr$BinOp(6, left.val, right);
3286
+ break;
3287
+ }
3288
+ case 49: {
3289
+ self.pos = self.pos + 1 | 0;
3290
+ const right$2 = _M0MP28username4core6Parser17parse__comparison(self);
3291
+ left.val = new $64$username$47$core$46$Expr$Instanceof(left.val, right$2);
3292
+ break;
3293
+ }
3294
+ default: {
3295
+ break _L;
3296
+ }
3297
+ }
3298
+ break _L$2;
3227
3299
  }
3228
- case 44: {
3229
- self.pos = self.pos + 1 | 0;
3300
+ self.pos = self.pos + 1 | 0;
3301
+ if (_M0MP28username4core6Parser14is__type__name(self)) {
3230
3302
  const type_name = _M0MP28username4core6Parser18parse__ident__name(self);
3231
3303
  left.val = new $64$username$47$core$46$Expr$IsCheck(left.val, type_name);
3232
- break;
3233
- }
3234
- case 49: {
3235
- self.pos = self.pos + 1 | 0;
3236
- const right$3 = _M0MP28username4core6Parser17parse__comparison(self);
3237
- left.val = new $64$username$47$core$46$Expr$Instanceof(left.val, right$3);
3238
- break;
3239
- }
3240
- default: {
3241
- break _L;
3304
+ } else {
3305
+ const right = _M0MP28username4core6Parser17parse__comparison(self);
3306
+ left.val = new $64$username$47$core$46$Expr$BinOp(5, left.val, right);
3242
3307
  }
3243
3308
  }
3244
3309
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purus",
3
- "version": "0.0.2",
3
+ "version": "0.1.0",
4
4
  "description": "A language that compiles to JavaScript — no Shift key required",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",