grammar-well 1.3.2 → 2.0.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.
Files changed (262) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +76 -560
  3. package/build/generator/artifacts/basic.d.ts +7 -0
  4. package/build/generator/artifacts/basic.js +24 -0
  5. package/build/generator/artifacts/basic.js.map +1 -0
  6. package/build/generator/artifacts/lexer.d.ts +13 -0
  7. package/build/generator/artifacts/lexer.js +204 -0
  8. package/build/generator/artifacts/lexer.js.map +1 -0
  9. package/build/{compiler/generator → generator}/artifacts/lr.d.ts +14 -14
  10. package/build/{compiler/generator → generator}/artifacts/lr.js +18 -22
  11. package/build/generator/artifacts/lr.js.map +1 -0
  12. package/build/generator/builtin/json.d.ts +183 -0
  13. package/build/generator/builtin/json.js +124 -0
  14. package/build/generator/builtin/json.js.map +1 -0
  15. package/build/generator/builtin/registry.json +1 -0
  16. package/build/generator/builtin/whitespace.d.ts +61 -0
  17. package/build/generator/builtin/whitespace.js +37 -0
  18. package/build/generator/builtin/whitespace.js.map +1 -0
  19. package/build/generator/generator.d.ts +38 -0
  20. package/build/generator/generator.js +368 -0
  21. package/build/generator/generator.js.map +1 -0
  22. package/build/generator/grammars/index.d.ts +2 -0
  23. package/build/generator/grammars/index.js +3 -0
  24. package/build/generator/grammars/index.js.map +1 -0
  25. package/build/generator/grammars/v1.d.ts +1190 -0
  26. package/build/generator/grammars/v1.js +614 -0
  27. package/build/generator/grammars/v1.js.map +1 -0
  28. package/build/generator/grammars/v2.d.ts +1367 -0
  29. package/build/generator/grammars/v2.js +695 -0
  30. package/build/generator/grammars/v2.js.map +1 -0
  31. package/build/generator/import-resolvers/auto.d.ts +2 -0
  32. package/build/generator/import-resolvers/auto.js +11 -0
  33. package/build/generator/import-resolvers/auto.js.map +1 -0
  34. package/build/generator/import-resolvers/browser.d.ts +7 -0
  35. package/build/generator/import-resolvers/browser.js +13 -0
  36. package/build/generator/import-resolvers/browser.js.map +1 -0
  37. package/build/generator/import-resolvers/default.d.ts +2 -0
  38. package/build/generator/import-resolvers/default.js +11 -0
  39. package/build/generator/import-resolvers/default.js.map +1 -0
  40. package/build/generator/import-resolvers/filesystem.d.ts +7 -0
  41. package/build/generator/import-resolvers/filesystem.js +15 -0
  42. package/build/generator/import-resolvers/filesystem.js.map +1 -0
  43. package/build/generator/index.d.ts +3 -0
  44. package/build/generator/index.js +4 -0
  45. package/build/generator/index.js.map +1 -0
  46. package/build/generator/state.d.ts +28 -0
  47. package/build/generator/state.js +73 -0
  48. package/build/generator/state.js.map +1 -0
  49. package/build/generator/stringify/common.d.ts +22 -0
  50. package/build/generator/stringify/common.js +83 -0
  51. package/build/generator/stringify/common.js.map +1 -0
  52. package/build/generator/stringify/exports/javascript.d.ts +3 -0
  53. package/build/generator/stringify/exports/javascript.js +26 -0
  54. package/build/generator/stringify/exports/javascript.js.map +1 -0
  55. package/build/generator/stringify/exports/json.d.ts +2 -0
  56. package/build/generator/stringify/exports/json.js +4 -0
  57. package/build/generator/stringify/exports/json.js.map +1 -0
  58. package/build/generator/stringify/exports/registry.d.ts +20 -0
  59. package/build/generator/stringify/exports/registry.js +17 -0
  60. package/build/generator/stringify/exports/registry.js.map +1 -0
  61. package/build/generator/stringify/exports/typescript.d.ts +2 -0
  62. package/build/generator/stringify/exports/typescript.js +16 -0
  63. package/build/generator/stringify/exports/typescript.js.map +1 -0
  64. package/build/generator/stringify/grammar/v2.d.ts +20 -0
  65. package/build/generator/stringify/grammar/v2.js +211 -0
  66. package/build/generator/stringify/grammar/v2.js.map +1 -0
  67. package/build/generator/stringify/javascript.d.ts +13 -0
  68. package/build/generator/stringify/javascript.js +83 -0
  69. package/build/generator/stringify/javascript.js.map +1 -0
  70. package/build/index.d.ts +7 -6
  71. package/build/index.js +7 -24
  72. package/build/index.js.map +1 -1
  73. package/build/lexers/character-lexer.d.ts +2 -2
  74. package/build/lexers/character-lexer.js +1 -5
  75. package/build/lexers/character-lexer.js.map +1 -1
  76. package/build/lexers/stateful-lexer.d.ts +12 -17
  77. package/build/lexers/stateful-lexer.js +38 -186
  78. package/build/lexers/stateful-lexer.js.map +1 -1
  79. package/build/lexers/token-buffer.d.ts +8 -8
  80. package/build/lexers/token-buffer.js +1 -5
  81. package/build/lexers/token-buffer.js.map +1 -1
  82. package/build/parser/algorithms/cyk.d.ts +6 -6
  83. package/build/parser/algorithms/cyk.js +10 -13
  84. package/build/parser/algorithms/cyk.js.map +1 -1
  85. package/build/parser/algorithms/earley.d.ts +7 -7
  86. package/build/parser/algorithms/earley.js +7 -11
  87. package/build/parser/algorithms/earley.js.map +1 -1
  88. package/build/parser/algorithms/lrk/algorithm.d.ts +3 -3
  89. package/build/parser/algorithms/lrk/algorithm.js +10 -13
  90. package/build/parser/algorithms/lrk/algorithm.js.map +1 -1
  91. package/build/parser/algorithms/lrk/bimap.js +1 -5
  92. package/build/parser/algorithms/lrk/bimap.js.map +1 -1
  93. package/build/parser/algorithms/lrk/canonical-collection.d.ts +7 -7
  94. package/build/parser/algorithms/lrk/canonical-collection.js +11 -15
  95. package/build/parser/algorithms/lrk/canonical-collection.js.map +1 -1
  96. package/build/parser/algorithms/lrk/closure.d.ts +3 -3
  97. package/build/parser/algorithms/lrk/closure.js +3 -7
  98. package/build/parser/algorithms/lrk/closure.js.map +1 -1
  99. package/build/parser/algorithms/lrk/stack.d.ts +6 -6
  100. package/build/parser/algorithms/lrk/stack.js +1 -5
  101. package/build/parser/algorithms/lrk/stack.js.map +1 -1
  102. package/build/parser/algorithms/lrk/state.d.ts +5 -5
  103. package/build/parser/algorithms/lrk/state.js +1 -2
  104. package/build/parser/parse.d.ts +10 -0
  105. package/build/parser/parse.js +34 -0
  106. package/build/parser/parse.js.map +1 -0
  107. package/build/parser/parser.d.ts +6 -17
  108. package/build/parser/parser.js +26 -42
  109. package/build/parser/parser.js.map +1 -1
  110. package/build/tsconfig.tsbuildinfo +1 -0
  111. package/build/typings/ast.d.ts +134 -0
  112. package/build/typings/ast.js +3 -0
  113. package/build/typings/ast.js.map +1 -0
  114. package/build/typings/common.d.ts +4 -0
  115. package/build/typings/common.js +2 -0
  116. package/build/typings/common.js.map +1 -0
  117. package/build/typings/generator.d.ts +58 -0
  118. package/build/typings/generator.js +3 -0
  119. package/build/typings/generator.js.map +1 -0
  120. package/build/typings/index.d.ts +43 -0
  121. package/build/typings/index.js +5 -0
  122. package/build/typings/index.js.map +1 -0
  123. package/build/typings/runtime.d.ts +70 -0
  124. package/build/typings/runtime.js +2 -0
  125. package/build/typings/runtime.js.map +1 -0
  126. package/build/utility/format.d.ts +1 -0
  127. package/build/utility/format.js +12 -0
  128. package/build/utility/format.js.map +1 -0
  129. package/build/utility/formatter.d.ts +1 -0
  130. package/build/utility/formatter.js +12 -0
  131. package/build/utility/formatter.js.map +1 -0
  132. package/build/utility/general.d.ts +1 -1
  133. package/build/utility/general.js +5 -13
  134. package/build/utility/general.js.map +1 -1
  135. package/build/utility/index.d.ts +4 -1
  136. package/build/utility/index.js +4 -17
  137. package/build/utility/index.js.map +1 -1
  138. package/build/utility/lint.d.ts +2 -2
  139. package/build/utility/lint.js +2 -6
  140. package/build/utility/lint.js.map +1 -1
  141. package/build/utility/migrate.d.ts +1 -0
  142. package/build/utility/migrate.js +10 -0
  143. package/build/utility/migrate.js.map +1 -0
  144. package/build/utility/monarch.d.ts +2 -2
  145. package/build/utility/monarch.js +33 -38
  146. package/build/utility/monarch.js.map +1 -1
  147. package/build/utility/parsing.d.ts +6 -0
  148. package/build/utility/parsing.js +26 -0
  149. package/build/utility/parsing.js.map +1 -0
  150. package/build/utility/text-format.d.ts +6 -6
  151. package/build/utility/text-format.js +2 -6
  152. package/build/utility/text-format.js.map +1 -1
  153. package/package.json +17 -24
  154. package/src/generator/artifacts/basic.ts +26 -0
  155. package/src/generator/artifacts/lexer.ts +228 -0
  156. package/src/{compiler/generator → generator}/artifacts/lr.ts +25 -24
  157. package/src/generator/builtin/character.well +7 -0
  158. package/src/generator/builtin/json.well +85 -0
  159. package/src/generator/builtin/number.well +21 -0
  160. package/src/generator/builtin/registry.json +1 -0
  161. package/src/generator/builtin/string.well +54 -0
  162. package/src/generator/builtin/whitespace.well +16 -0
  163. package/src/generator/generator.ts +401 -0
  164. package/src/generator/grammars/index.ts +2 -0
  165. package/src/generator/grammars/v1.ts +620 -0
  166. package/src/generator/grammars/v1.well +422 -0
  167. package/src/generator/grammars/v2.ts +701 -0
  168. package/src/generator/grammars/v2.well +413 -0
  169. package/src/generator/import-resolvers/auto.ts +12 -0
  170. package/src/generator/import-resolvers/browser.ts +13 -0
  171. package/src/generator/import-resolvers/filesystem.ts +18 -0
  172. package/src/generator/index.ts +3 -0
  173. package/src/generator/state.ts +89 -0
  174. package/src/generator/stringify/common.ts +90 -0
  175. package/src/generator/stringify/exports/javascript.ts +29 -0
  176. package/src/generator/stringify/exports/json.ts +5 -0
  177. package/src/generator/stringify/exports/registry.ts +20 -0
  178. package/src/generator/stringify/exports/typescript.ts +17 -0
  179. package/src/generator/stringify/grammar/v2.ts +223 -0
  180. package/src/generator/stringify/javascript.ts +94 -0
  181. package/src/index.ts +7 -6
  182. package/src/lexers/character-lexer.ts +2 -2
  183. package/src/lexers/stateful-lexer.ts +46 -203
  184. package/src/lexers/token-buffer.ts +3 -3
  185. package/src/parser/algorithms/cyk.ts +13 -12
  186. package/src/parser/algorithms/earley.ts +10 -10
  187. package/src/parser/algorithms/lrk/algorithm.ts +8 -7
  188. package/src/parser/algorithms/lrk/canonical-collection.ts +14 -14
  189. package/src/parser/algorithms/lrk/closure.ts +6 -6
  190. package/src/parser/algorithms/lrk/stack.ts +6 -6
  191. package/src/parser/algorithms/lrk/state.ts +5 -5
  192. package/src/parser/parse.ts +45 -0
  193. package/src/typings/ast.ts +148 -0
  194. package/src/typings/common.ts +2 -0
  195. package/src/typings/generator.ts +62 -0
  196. package/src/typings/index.ts +38 -0
  197. package/src/typings/runtime.ts +82 -0
  198. package/src/utility/format.ts +12 -0
  199. package/src/utility/general.ts +1 -2
  200. package/src/utility/index.ts +4 -1
  201. package/src/utility/lint.ts +5 -5
  202. package/src/utility/monarch.ts +34 -34
  203. package/src/utility/parsing.ts +30 -0
  204. package/src/utility/text-format.ts +7 -7
  205. package/.eslintrc.cjs +0 -14
  206. package/bootstrap.ts +0 -45
  207. package/build/compiler/builtin.json +0 -1
  208. package/build/compiler/compiler.d.ts +0 -50
  209. package/build/compiler/compiler.js +0 -249
  210. package/build/compiler/compiler.js.map +0 -1
  211. package/build/compiler/generator/artifacts/lr.js.map +0 -1
  212. package/build/compiler/generator/artifacts/standard.d.ts +0 -7
  213. package/build/compiler/generator/artifacts/standard.js +0 -28
  214. package/build/compiler/generator/artifacts/standard.js.map +0 -1
  215. package/build/compiler/generator/generator.d.ts +0 -24
  216. package/build/compiler/generator/generator.js +0 -217
  217. package/build/compiler/generator/generator.js.map +0 -1
  218. package/build/compiler/gwell.d.ts +0 -1112
  219. package/build/compiler/gwell.js +0 -576
  220. package/build/compiler/gwell.js.map +0 -1
  221. package/build/compiler/import-resolver.d.ts +0 -15
  222. package/build/compiler/import-resolver.js +0 -37
  223. package/build/compiler/import-resolver.js.map +0 -1
  224. package/build/compiler/index.d.ts +0 -2
  225. package/build/compiler/index.js +0 -19
  226. package/build/compiler/index.js.map +0 -1
  227. package/build/compiler/outputs/javascript.d.ts +0 -3
  228. package/build/compiler/outputs/javascript.js +0 -29
  229. package/build/compiler/outputs/javascript.js.map +0 -1
  230. package/build/compiler/outputs/json.d.ts +0 -2
  231. package/build/compiler/outputs/json.js +0 -8
  232. package/build/compiler/outputs/json.js.map +0 -1
  233. package/build/compiler/outputs/typescript.d.ts +0 -2
  234. package/build/compiler/outputs/typescript.js +0 -21
  235. package/build/compiler/outputs/typescript.js.map +0 -1
  236. package/build/parser/algorithms/lr.d.ts +0 -7
  237. package/build/parser/algorithms/lr.js +0 -108
  238. package/build/parser/algorithms/lr.js.map +0 -5
  239. package/build/parser/algorithms/lr0.d.ts +0 -7
  240. package/build/parser/algorithms/lr0.js +0 -156
  241. package/build/parser/algorithms/lr0.js.map +0 -1
  242. package/build/typings.d.ts +0 -226
  243. package/build/typings.js +0 -3
  244. package/build/typings.js.map +0 -1
  245. package/src/compiler/builtin/json.gwell +0 -74
  246. package/src/compiler/builtin/number.gwell +0 -20
  247. package/src/compiler/builtin/string.gwell +0 -48
  248. package/src/compiler/builtin/whitespace.gwell +0 -10
  249. package/src/compiler/builtin.json +0 -1
  250. package/src/compiler/compiler.ts +0 -265
  251. package/src/compiler/generator/artifacts/standard.ts +0 -26
  252. package/src/compiler/generator/generator.ts +0 -237
  253. package/src/compiler/gwell.gwell +0 -294
  254. package/src/compiler/gwell.js +0 -578
  255. package/src/compiler/import-resolver.ts +0 -36
  256. package/src/compiler/index.ts +0 -2
  257. package/src/compiler/outputs/javascript.ts +0 -27
  258. package/src/compiler/outputs/json.ts +0 -5
  259. package/src/compiler/outputs/typescript.ts +0 -18
  260. package/src/parser/parser.ts +0 -77
  261. package/src/typings.ts +0 -248
  262. package/testing.ts +0 -18
@@ -1,1112 +0,0 @@
1
- export default GWLanguage;
2
- declare function GWLanguage(): {
3
- grammar: {
4
- start: string;
5
- rules: {
6
- main: {
7
- name: string;
8
- symbols: string[];
9
- postprocess: ({ data }: {
10
- data: any;
11
- }) => any;
12
- }[];
13
- section_list: {
14
- name: string;
15
- symbols: string[];
16
- postprocess: ({ data }: {
17
- data: any;
18
- }) => any[];
19
- }[];
20
- section: ({
21
- name: string;
22
- symbols: string[];
23
- postprocess: ({ data }: {
24
- data: any;
25
- }) => {
26
- config: any;
27
- };
28
- } | {
29
- name: string;
30
- symbols: string[];
31
- postprocess: ({ data }: {
32
- data: any;
33
- }) => {
34
- import: any;
35
- };
36
- } | {
37
- name: string;
38
- symbols: (string | {
39
- literal: string;
40
- })[];
41
- postprocess: ({ data }: {
42
- data: any;
43
- }) => {
44
- import: any;
45
- alias: any;
46
- };
47
- } | {
48
- name: string;
49
- symbols: string[];
50
- postprocess: ({ data }: {
51
- data: any;
52
- }) => {
53
- lexer: any;
54
- };
55
- } | {
56
- name: string;
57
- symbols: string[];
58
- postprocess: ({ data }: {
59
- data: any;
60
- }) => {
61
- grammar: any;
62
- };
63
- } | {
64
- name: string;
65
- symbols: string[];
66
- postprocess: ({ data }: {
67
- data: any;
68
- }) => {
69
- body: any;
70
- };
71
- } | {
72
- name: string;
73
- symbols: string[];
74
- postprocess: ({ data }: {
75
- data: any;
76
- }) => {
77
- head: any;
78
- };
79
- })[];
80
- lexer: {
81
- name: string;
82
- symbols: string[];
83
- postprocess: ({ data }: {
84
- data: any;
85
- }) => any;
86
- }[];
87
- state_list: {
88
- name: string;
89
- symbols: string[];
90
- postprocess: ({ data }: {
91
- data: any;
92
- }) => any;
93
- }[];
94
- state: {
95
- name: string;
96
- symbols: string[];
97
- postprocess: ({ data }: {
98
- data: any;
99
- }) => any;
100
- }[];
101
- state_declare: {
102
- name: string;
103
- symbols: string[];
104
- postprocess: ({ data }: {
105
- data: any;
106
- }) => any;
107
- }[];
108
- state_definition: {
109
- name: string;
110
- symbols: string[];
111
- postprocess: ({ data }: {
112
- data: any;
113
- }) => any;
114
- }[];
115
- token_list: {
116
- name: string;
117
- symbols: string[];
118
- postprocess: ({ data }: {
119
- data: any;
120
- }) => any;
121
- }[];
122
- token: {
123
- name: string;
124
- symbols: string[];
125
- postprocess: ({ data }: {
126
- data: any;
127
- }) => any;
128
- }[];
129
- token_definition_list: {
130
- name: string;
131
- symbols: string[];
132
- postprocess: ({ data }: {
133
- data: any;
134
- }) => any;
135
- }[];
136
- token_definition: ({
137
- name: string;
138
- symbols: string[];
139
- postprocess: ({ data }: {
140
- data: any;
141
- }) => {
142
- tag: any;
143
- };
144
- } | {
145
- name: string;
146
- symbols: string[];
147
- postprocess: ({ data }: {
148
- data: any;
149
- }) => {
150
- when: any;
151
- };
152
- } | {
153
- name: string;
154
- symbols: string[];
155
- postprocess: ({ data }: {
156
- data: any;
157
- }) => {
158
- open: any;
159
- };
160
- } | {
161
- name: string;
162
- symbols: string[];
163
- postprocess: ({ data }: {
164
- data: any;
165
- }) => {
166
- close: any;
167
- };
168
- } | {
169
- name: string;
170
- symbols: string[];
171
- postprocess: ({ data }: {
172
- data: any;
173
- }) => {
174
- pop: number;
175
- };
176
- } | {
177
- name: string;
178
- symbols: string[];
179
- postprocess: ({ data }: {
180
- data: any;
181
- }) => {
182
- pop: string;
183
- };
184
- } | {
185
- name: string;
186
- symbols: string[];
187
- postprocess: ({ data }: {
188
- data: any;
189
- }) => {
190
- highlight: any;
191
- };
192
- } | {
193
- name: string;
194
- symbols: string[];
195
- postprocess: ({ data }: {
196
- data: any;
197
- }) => {
198
- embed: any;
199
- };
200
- } | {
201
- name: string;
202
- symbols: string[];
203
- postprocess: ({ data }: {
204
- data: any;
205
- }) => {
206
- unembed: boolean;
207
- };
208
- } | {
209
- name: string;
210
- symbols: string[];
211
- postprocess: ({ data }: {
212
- data: any;
213
- }) => {
214
- inset: number;
215
- };
216
- } | {
217
- name: string;
218
- symbols: string[];
219
- postprocess: ({ data }: {
220
- data: any;
221
- }) => {
222
- set: any;
223
- };
224
- } | {
225
- name: string;
226
- symbols: string[];
227
- postprocess: ({ data }: {
228
- data: any;
229
- }) => {
230
- goto: any;
231
- };
232
- } | {
233
- name: string;
234
- symbols: string[];
235
- postprocess: ({ data }: {
236
- data: any;
237
- }) => {
238
- type: any;
239
- };
240
- })[];
241
- grammar: {
242
- name: string;
243
- symbols: string[];
244
- postprocess: ({ data }: {
245
- data: any;
246
- }) => {
247
- rules: any;
248
- };
249
- }[];
250
- grammar_rule_list: {
251
- name: string;
252
- symbols: string[];
253
- postprocess: ({ data }: {
254
- data: any;
255
- }) => any[];
256
- }[];
257
- grammar_rule: {
258
- name: string;
259
- symbols: string[];
260
- postprocess: ({ data }: {
261
- data: any;
262
- }) => {
263
- name: any;
264
- expressions: any;
265
- };
266
- }[];
267
- expression_list: ({
268
- name: string;
269
- symbols: string[];
270
- postprocess?: undefined;
271
- } | {
272
- name: string;
273
- symbols: string[];
274
- postprocess: ({ data }: {
275
- data: any;
276
- }) => any;
277
- })[];
278
- expression: {
279
- name: string;
280
- symbols: string[];
281
- postprocess: ({ data }: {
282
- data: any;
283
- }) => {
284
- symbols: any;
285
- };
286
- }[];
287
- expression_symbol_list: ({
288
- name: string;
289
- symbols: string[];
290
- postprocess?: undefined;
291
- } | {
292
- name: string;
293
- symbols: string[];
294
- postprocess: ({ data }: {
295
- data: any;
296
- }) => any;
297
- })[];
298
- expression_symbol: {
299
- name: string;
300
- symbols: string[];
301
- postprocess: ({ data }: {
302
- data: any;
303
- }) => any;
304
- }[];
305
- expression_symbol_match: {
306
- name: string;
307
- symbols: string[];
308
- postprocess: ({ data }: {
309
- data: any;
310
- }) => any;
311
- }[];
312
- expression_symbol_match$RPT01x1: {
313
- name: string;
314
- symbols: {
315
- literal: string;
316
- }[];
317
- postprocess: ({ data }: {
318
- data: any;
319
- }) => any;
320
- }[];
321
- expression_repeater: {
322
- name: string;
323
- symbols: string[];
324
- postprocess: ({ data }: {
325
- data: any;
326
- }) => any;
327
- }[];
328
- kv_list: {
329
- name: string;
330
- symbols: string[];
331
- postprocess: ({ data }: {
332
- data: any;
333
- }) => any;
334
- }[];
335
- kv$SUBx1: {
336
- name: string;
337
- symbols: string[];
338
- }[];
339
- kv: {
340
- name: string;
341
- symbols: string[];
342
- postprocess: ({ data }: {
343
- data: any;
344
- }) => {
345
- [x: number]: any;
346
- };
347
- }[];
348
- string_list: {
349
- name: string;
350
- symbols: string[];
351
- postprocess: ({ data }: {
352
- data: any;
353
- }) => any[];
354
- }[];
355
- word_list: {
356
- name: string;
357
- symbols: string[];
358
- postprocess: ({ data }: {
359
- data: any;
360
- }) => any[];
361
- }[];
362
- _$RPT0Nx1: ({
363
- name: string;
364
- symbols: any[];
365
- postprocess?: undefined;
366
- } | {
367
- name: string;
368
- symbols: string[];
369
- postprocess: ({ data }: {
370
- data: any;
371
- }) => any;
372
- })[];
373
- _$RPT0Nx1$SUBx1: {
374
- name: string;
375
- symbols: string[];
376
- }[];
377
- _: {
378
- name: string;
379
- symbols: string[];
380
- postprocess: ({ data }: {
381
- data: any;
382
- }) => any;
383
- }[];
384
- __$RPT1Nx1$SUBx1: {
385
- name: string;
386
- symbols: string[];
387
- }[];
388
- __$RPT1Nx1: ({
389
- name: string;
390
- symbols: string[];
391
- postprocess?: undefined;
392
- } | {
393
- name: string;
394
- symbols: string[];
395
- postprocess: ({ data }: {
396
- data: any;
397
- }) => any;
398
- })[];
399
- __$RPT1Nx1$SUBx2: {
400
- name: string;
401
- symbols: string[];
402
- }[];
403
- __: {
404
- name: string;
405
- symbols: string[];
406
- postprocess: ({ data }: {
407
- data: any;
408
- }) => any;
409
- }[];
410
- L_COLON: {
411
- name: string;
412
- symbols: {
413
- token: string;
414
- }[];
415
- }[];
416
- L_SCOLON: {
417
- name: string;
418
- symbols: {
419
- token: string;
420
- }[];
421
- }[];
422
- L_QMARK: {
423
- name: string;
424
- symbols: {
425
- token: string;
426
- }[];
427
- }[];
428
- L_PLUS: {
429
- name: string;
430
- symbols: {
431
- token: string;
432
- }[];
433
- }[];
434
- L_STAR: {
435
- name: string;
436
- symbols: {
437
- token: string;
438
- }[];
439
- }[];
440
- L_COMMA: {
441
- name: string;
442
- symbols: {
443
- token: string;
444
- }[];
445
- }[];
446
- L_PIPE: {
447
- name: string;
448
- symbols: {
449
- token: string;
450
- }[];
451
- }[];
452
- L_PARENL: {
453
- name: string;
454
- symbols: {
455
- token: string;
456
- }[];
457
- }[];
458
- L_PARENR: {
459
- name: string;
460
- symbols: {
461
- token: string;
462
- }[];
463
- }[];
464
- L_TEMPLATEL: {
465
- name: string;
466
- symbols: {
467
- token: string;
468
- }[];
469
- }[];
470
- L_TEMPLATER: {
471
- name: string;
472
- symbols: {
473
- token: string;
474
- }[];
475
- }[];
476
- L_ARROW: {
477
- name: string;
478
- symbols: {
479
- token: string;
480
- }[];
481
- }[];
482
- L_DSIGN: {
483
- name: string;
484
- symbols: {
485
- token: string;
486
- }[];
487
- }[];
488
- L_DASH: {
489
- name: string;
490
- symbols: {
491
- token: string;
492
- }[];
493
- }[];
494
- K_ALL: {
495
- name: string;
496
- symbols: {
497
- literal: string;
498
- }[];
499
- }[];
500
- K_TAG: {
501
- name: string;
502
- symbols: {
503
- literal: string;
504
- }[];
505
- }[];
506
- K_FROM: {
507
- name: string;
508
- symbols: {
509
- literal: string;
510
- }[];
511
- }[];
512
- K_TYPE: {
513
- name: string;
514
- symbols: {
515
- literal: string;
516
- }[];
517
- }[];
518
- K_WHEN: {
519
- name: string;
520
- symbols: {
521
- literal: string;
522
- }[];
523
- }[];
524
- K_POP: {
525
- name: string;
526
- symbols: {
527
- literal: string;
528
- }[];
529
- }[];
530
- K_BEFORE: {
531
- name: string;
532
- symbols: {
533
- literal: string;
534
- }[];
535
- }[];
536
- K_OPEN: {
537
- name: string;
538
- symbols: {
539
- literal: string;
540
- }[];
541
- }[];
542
- K_CLOSE: {
543
- name: string;
544
- symbols: {
545
- literal: string;
546
- }[];
547
- }[];
548
- K_HIGHLIGHT: {
549
- name: string;
550
- symbols: {
551
- literal: string;
552
- }[];
553
- }[];
554
- K_EMBED: {
555
- name: string;
556
- symbols: {
557
- literal: string;
558
- }[];
559
- }[];
560
- K_UNEMBED: {
561
- name: string;
562
- symbols: {
563
- literal: string;
564
- }[];
565
- }[];
566
- K_INSET: {
567
- name: string;
568
- symbols: {
569
- literal: string;
570
- }[];
571
- }[];
572
- K_SET: {
573
- name: string;
574
- symbols: {
575
- literal: string;
576
- }[];
577
- }[];
578
- K_GOTO: {
579
- name: string;
580
- symbols: {
581
- literal: string;
582
- }[];
583
- }[];
584
- K_CONFIG: {
585
- name: string;
586
- symbols: {
587
- literal: string;
588
- }[];
589
- }[];
590
- K_LEXER: {
591
- name: string;
592
- symbols: {
593
- literal: string;
594
- }[];
595
- }[];
596
- K_GRAMMAR: {
597
- name: string;
598
- symbols: {
599
- literal: string;
600
- }[];
601
- }[];
602
- K_IMPORT: {
603
- name: string;
604
- symbols: {
605
- literal: string;
606
- }[];
607
- }[];
608
- K_BODY: {
609
- name: string;
610
- symbols: {
611
- literal: string;
612
- }[];
613
- }[];
614
- K_HEAD: {
615
- name: string;
616
- symbols: {
617
- literal: string;
618
- }[];
619
- }[];
620
- T_JS$RPT0Nx1: ({
621
- name: string;
622
- symbols: any[];
623
- postprocess?: undefined;
624
- } | {
625
- name: string;
626
- symbols: (string | {
627
- token: string;
628
- })[];
629
- postprocess: ({ data }: {
630
- data: any;
631
- }) => any;
632
- })[];
633
- T_JS: {
634
- name: string;
635
- symbols: (string | {
636
- token: string;
637
- })[];
638
- postprocess: ({ data }: {
639
- data: any;
640
- }) => {
641
- js: any;
642
- };
643
- }[];
644
- T_GRAMMAR_TEMPLATE$RPT0Nx1: ({
645
- name: string;
646
- symbols: any[];
647
- postprocess?: undefined;
648
- } | {
649
- name: string;
650
- symbols: (string | {
651
- token: string;
652
- })[];
653
- postprocess: ({ data }: {
654
- data: any;
655
- }) => any;
656
- })[];
657
- T_GRAMMAR_TEMPLATE: {
658
- name: string;
659
- symbols: (string | {
660
- token: string;
661
- })[];
662
- postprocess: ({ data }: {
663
- data: any;
664
- }) => {
665
- template: any;
666
- };
667
- }[];
668
- T_STRING: {
669
- name: string;
670
- symbols: {
671
- token: string;
672
- }[];
673
- postprocess: ({ data }: {
674
- data: any;
675
- }) => any;
676
- }[];
677
- T_WORD: {
678
- name: string;
679
- symbols: {
680
- token: string;
681
- }[];
682
- postprocess: ({ data }: {
683
- data: any;
684
- }) => any;
685
- }[];
686
- T_REGEX$RPT0Nx1: ({
687
- name: string;
688
- symbols: any[];
689
- postprocess?: undefined;
690
- } | {
691
- name: string;
692
- symbols: (string | RegExp)[];
693
- postprocess: ({ data }: {
694
- data: any;
695
- }) => any;
696
- })[];
697
- T_REGEX: {
698
- name: string;
699
- symbols: (string | {
700
- token: string;
701
- })[];
702
- postprocess: ({ data }: {
703
- data: any;
704
- }) => {
705
- regex: any;
706
- flags: any;
707
- };
708
- }[];
709
- T_COMMENT: {
710
- name: string;
711
- symbols: {
712
- token: string;
713
- }[];
714
- }[];
715
- T_INTEGER: {
716
- name: string;
717
- symbols: {
718
- token: string;
719
- }[];
720
- postprocess: ({ data }: {
721
- data: any;
722
- }) => any;
723
- }[];
724
- T_WS: {
725
- name: string;
726
- symbols: {
727
- token: string;
728
- }[];
729
- postprocess: ({ data }: {
730
- data: any;
731
- }) => any;
732
- }[];
733
- };
734
- };
735
- lexer: {
736
- start: string;
737
- states: {
738
- start: {
739
- name: string;
740
- rules: ({
741
- import: string[];
742
- when?: undefined;
743
- tag?: undefined;
744
- highlight?: undefined;
745
- goto?: undefined;
746
- } | {
747
- when: RegExp;
748
- tag: string[];
749
- highlight: string;
750
- goto: string;
751
- import?: undefined;
752
- })[];
753
- };
754
- config: {
755
- name: string;
756
- rules: ({
757
- import: string[];
758
- when?: undefined;
759
- tag?: undefined;
760
- set?: undefined;
761
- } | {
762
- when: string;
763
- tag: string[];
764
- set: string;
765
- import?: undefined;
766
- })[];
767
- };
768
- config_inner: {
769
- name: string;
770
- rules: ({
771
- import: string[];
772
- when?: undefined;
773
- tag?: undefined;
774
- pop?: undefined;
775
- } | {
776
- when: string;
777
- tag: string[];
778
- pop: number;
779
- import?: undefined;
780
- })[];
781
- };
782
- grammar: {
783
- name: string;
784
- rules: ({
785
- import: string[];
786
- when?: undefined;
787
- tag?: undefined;
788
- set?: undefined;
789
- } | {
790
- when: string;
791
- tag: string[];
792
- set: string;
793
- import?: undefined;
794
- })[];
795
- };
796
- grammar_inner: {
797
- name: string;
798
- rules: ({
799
- import: string[];
800
- when?: undefined;
801
- tag?: undefined;
802
- pop?: undefined;
803
- } | {
804
- when: string;
805
- tag: string[];
806
- pop: number;
807
- import?: undefined;
808
- })[];
809
- };
810
- lexer: {
811
- name: string;
812
- rules: ({
813
- import: string[];
814
- when?: undefined;
815
- tag?: undefined;
816
- set?: undefined;
817
- } | {
818
- when: string;
819
- tag: string[];
820
- set: string;
821
- import?: undefined;
822
- })[];
823
- };
824
- lexer_inner: {
825
- name: string;
826
- rules: ({
827
- import: string[];
828
- when?: undefined;
829
- tag?: undefined;
830
- pop?: undefined;
831
- } | {
832
- when: string;
833
- tag: string[];
834
- pop: number;
835
- import?: undefined;
836
- })[];
837
- };
838
- js: {
839
- name: string;
840
- rules: {
841
- when: string;
842
- tag: string[];
843
- goto: string;
844
- }[];
845
- };
846
- js_wrap: {
847
- name: string;
848
- default: string;
849
- unmatched: string;
850
- rules: ({
851
- import: string[];
852
- when?: undefined;
853
- tag?: undefined;
854
- goto?: undefined;
855
- pop?: undefined;
856
- } | {
857
- when: string;
858
- tag: string[];
859
- goto: string;
860
- import?: undefined;
861
- pop?: undefined;
862
- } | {
863
- when: string;
864
- tag: string[];
865
- pop: number;
866
- import?: undefined;
867
- goto?: undefined;
868
- })[];
869
- };
870
- js_literal: {
871
- name: string;
872
- default: string;
873
- unmatched: string;
874
- rules: ({
875
- import: string[];
876
- when?: undefined;
877
- tag?: undefined;
878
- goto?: undefined;
879
- pop?: undefined;
880
- } | {
881
- when: string;
882
- tag: string[];
883
- goto: string;
884
- import?: undefined;
885
- pop?: undefined;
886
- } | {
887
- when: string;
888
- tag: string[];
889
- pop: number;
890
- import?: undefined;
891
- goto?: undefined;
892
- })[];
893
- };
894
- js_template: {
895
- name: string;
896
- rules: {
897
- when: string;
898
- tag: string[];
899
- goto: string;
900
- }[];
901
- };
902
- js_template_inner: {
903
- name: string;
904
- default: string;
905
- unmatched: string;
906
- rules: ({
907
- import: string[];
908
- when?: undefined;
909
- tag?: undefined;
910
- goto?: undefined;
911
- pop?: undefined;
912
- } | {
913
- when: string;
914
- tag: string[];
915
- goto: string;
916
- import?: undefined;
917
- pop?: undefined;
918
- } | {
919
- when: string;
920
- tag: string[];
921
- pop: number;
922
- import?: undefined;
923
- goto?: undefined;
924
- })[];
925
- };
926
- kv: {
927
- name: string;
928
- rules: {
929
- import: string[];
930
- }[];
931
- };
932
- jsignore: {
933
- name: string;
934
- rules: {
935
- when: RegExp;
936
- tag: string[];
937
- }[];
938
- };
939
- string: {
940
- name: string;
941
- rules: {
942
- when: RegExp;
943
- tag: string[];
944
- highlight: string;
945
- }[];
946
- };
947
- string2: {
948
- name: string;
949
- rules: {
950
- when: RegExp;
951
- tag: string[];
952
- highlight: string;
953
- }[];
954
- };
955
- string3: {
956
- name: string;
957
- rules: {
958
- when: RegExp;
959
- tag: string[];
960
- highlight: string;
961
- }[];
962
- };
963
- regex: {
964
- name: string;
965
- rules: {
966
- when: RegExp;
967
- tag: string[];
968
- highlight: string;
969
- }[];
970
- };
971
- integer: {
972
- name: string;
973
- rules: {
974
- when: RegExp;
975
- tag: string[];
976
- highlight: string;
977
- }[];
978
- };
979
- word: {
980
- name: string;
981
- rules: {
982
- when: RegExp;
983
- tag: string[];
984
- }[];
985
- };
986
- ws: {
987
- name: string;
988
- rules: {
989
- when: RegExp;
990
- tag: string[];
991
- }[];
992
- };
993
- l_colon: {
994
- name: string;
995
- rules: {
996
- when: string;
997
- tag: string[];
998
- highlight: string;
999
- }[];
1000
- };
1001
- l_scolon: {
1002
- name: string;
1003
- rules: {
1004
- when: string;
1005
- tag: string[];
1006
- }[];
1007
- };
1008
- l_qmark: {
1009
- name: string;
1010
- rules: {
1011
- when: string;
1012
- tag: string[];
1013
- }[];
1014
- };
1015
- l_plus: {
1016
- name: string;
1017
- rules: {
1018
- when: string;
1019
- tag: string[];
1020
- }[];
1021
- };
1022
- l_star: {
1023
- name: string;
1024
- rules: {
1025
- when: string;
1026
- tag: string[];
1027
- }[];
1028
- };
1029
- l_comma: {
1030
- name: string;
1031
- rules: {
1032
- when: string;
1033
- tag: string[];
1034
- }[];
1035
- };
1036
- l_pipe: {
1037
- name: string;
1038
- rules: {
1039
- when: string;
1040
- tag: string[];
1041
- highlight: string;
1042
- }[];
1043
- };
1044
- l_parenl: {
1045
- name: string;
1046
- rules: {
1047
- when: string;
1048
- tag: string[];
1049
- }[];
1050
- };
1051
- l_parenr: {
1052
- name: string;
1053
- rules: {
1054
- when: string;
1055
- tag: string[];
1056
- }[];
1057
- };
1058
- l_templatel: {
1059
- name: string;
1060
- rules: {
1061
- when: string;
1062
- tag: string[];
1063
- }[];
1064
- };
1065
- l_templater: {
1066
- name: string;
1067
- rules: {
1068
- when: string;
1069
- tag: string[];
1070
- }[];
1071
- };
1072
- l_arrow: {
1073
- name: string;
1074
- rules: {
1075
- when: string;
1076
- tag: string[];
1077
- highlight: string;
1078
- }[];
1079
- };
1080
- l_dsign: {
1081
- name: string;
1082
- rules: {
1083
- when: string;
1084
- tag: string[];
1085
- }[];
1086
- };
1087
- l_dash: {
1088
- name: string;
1089
- rules: {
1090
- when: string;
1091
- tag: string[];
1092
- }[];
1093
- };
1094
- comment: {
1095
- name: string;
1096
- rules: {
1097
- when: RegExp;
1098
- tag: string[];
1099
- highlight: string;
1100
- }[];
1101
- };
1102
- commentmulti: {
1103
- name: string;
1104
- rules: {
1105
- when: RegExp;
1106
- tag: string[];
1107
- highlight: string;
1108
- }[];
1109
- };
1110
- };
1111
- };
1112
- };