@plurnk/plurnk-grammar 0.2.1 → 0.5.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 (77) hide show
  1. package/bin/plurnk.js +1 -1
  2. package/{schema → dist/schema}/LogEntry.json +1 -1
  3. package/{schema → dist/schema}/Packet.json +15 -2
  4. package/{schema → dist/schema}/Run.json +6 -1
  5. package/{schema → dist/schema}/Session.json +1 -1
  6. package/dist/src/AstBuilder.d.ts +19 -0
  7. package/dist/src/AstBuilder.d.ts.map +1 -0
  8. package/{src/AstBuilder.ts → dist/src/AstBuilder.js} +176 -161
  9. package/dist/src/AstBuilder.js.map +1 -0
  10. package/dist/src/PlurnkErrorStrategy.d.ts +10 -0
  11. package/dist/src/PlurnkErrorStrategy.d.ts.map +1 -0
  12. package/{src/PlurnkErrorStrategy.ts → dist/src/PlurnkErrorStrategy.js} +41 -49
  13. package/dist/src/PlurnkErrorStrategy.js.map +1 -0
  14. package/dist/src/PlurnkParseError.d.ts +14 -0
  15. package/dist/src/PlurnkParseError.d.ts.map +1 -0
  16. package/{src/PlurnkParseError.ts → dist/src/PlurnkParseError.js} +6 -9
  17. package/dist/src/PlurnkParseError.js.map +1 -0
  18. package/dist/src/PlurnkParser.d.ts +6 -0
  19. package/dist/src/PlurnkParser.d.ts.map +1 -0
  20. package/{src/PlurnkParser.ts → dist/src/PlurnkParser.js} +32 -40
  21. package/dist/src/PlurnkParser.js.map +1 -0
  22. package/dist/src/RecordingListener.d.ts +9 -0
  23. package/dist/src/RecordingListener.d.ts.map +1 -0
  24. package/dist/src/RecordingListener.js +19 -0
  25. package/dist/src/RecordingListener.js.map +1 -0
  26. package/dist/src/Validator.d.ts +28 -0
  27. package/dist/src/Validator.d.ts.map +1 -0
  28. package/dist/src/Validator.js +86 -0
  29. package/dist/src/Validator.js.map +1 -0
  30. package/dist/src/generated/plurnkLexer.d.ts +88 -0
  31. package/dist/src/generated/plurnkLexer.d.ts.map +1 -0
  32. package/dist/src/generated/plurnkLexer.js +440 -0
  33. package/dist/src/generated/plurnkLexer.js.map +1 -0
  34. package/dist/src/generated/plurnkParser.d.ts +274 -0
  35. package/dist/src/generated/plurnkParser.d.ts.map +1 -0
  36. package/dist/src/generated/plurnkParser.js +1833 -0
  37. package/dist/src/generated/plurnkParser.js.map +1 -0
  38. package/{src/generated/plurnkParserVisitor.ts → dist/src/generated/plurnkParserVisitor.d.ts} +2 -7
  39. package/dist/src/generated/plurnkParserVisitor.d.ts.map +1 -0
  40. package/dist/src/generated/plurnkParserVisitor.js +131 -0
  41. package/dist/src/generated/plurnkParserVisitor.js.map +1 -0
  42. package/dist/src/index.d.ts +10 -0
  43. package/dist/src/index.d.ts.map +1 -0
  44. package/dist/src/index.js +7 -0
  45. package/dist/src/index.js.map +1 -0
  46. package/dist/src/types.d.ts +23 -0
  47. package/dist/src/types.d.ts.map +1 -0
  48. package/dist/src/types.generated.d.ts +465 -0
  49. package/dist/src/types.generated.d.ts.map +1 -0
  50. package/dist/src/types.generated.js +4 -0
  51. package/dist/src/types.generated.js.map +1 -0
  52. package/dist/src/types.js +4 -0
  53. package/dist/src/types.js.map +1 -0
  54. package/package.json +10 -7
  55. package/plurnk.md +1 -1
  56. package/src/RecordingListener.ts +0 -34
  57. package/src/Validator.ts +0 -94
  58. package/src/generated/plurnkLexer.ts +0 -467
  59. package/src/generated/plurnkParser.ts +0 -1891
  60. package/src/index.ts +0 -29
  61. package/src/types.generated.ts +0 -497
  62. package/src/types.ts +0 -30
  63. /package/{schema → dist/schema}/Agent.json +0 -0
  64. /package/{schema → dist/schema}/ChannelContent.json +0 -0
  65. /package/{schema → dist/schema}/Entry.json +0 -0
  66. /package/{schema → dist/schema}/LineMarker.json +0 -0
  67. /package/{schema → dist/schema}/Loop.json +0 -0
  68. /package/{schema → dist/schema}/MatcherBody.json +0 -0
  69. /package/{schema → dist/schema}/Params.json +0 -0
  70. /package/{schema → dist/schema}/ParsedPath.json +0 -0
  71. /package/{schema → dist/schema}/PlurnkStatement.json +0 -0
  72. /package/{schema → dist/schema}/Position.json +0 -0
  73. /package/{schema → dist/schema}/ProviderDeclaration.json +0 -0
  74. /package/{schema → dist/schema}/SchemeRegistration.json +0 -0
  75. /package/{schema → dist/schema}/SendBody.json +0 -0
  76. /package/{schema → dist/schema}/Turn.json +0 -0
  77. /package/{schema → dist/schema}/Visibility.json +0 -0
@@ -1,1891 +0,0 @@
1
-
2
- import * as antlr from "antlr4ng";
3
- import { Token } from "antlr4ng";
4
-
5
- import { plurnkParserVisitor } from "./plurnkParserVisitor.ts";
6
-
7
- // for running tests with parameters, TODO: discuss strategy for typed parameters in CI
8
- // eslint-disable-next-line no-unused-vars
9
- type int = number;
10
-
11
-
12
- export class plurnkParser extends antlr.Parser {
13
- public static readonly LBRACKET = 1;
14
- public static readonly RBRACKET = 2;
15
- public static readonly LPAREN = 3;
16
- public static readonly RPAREN = 4;
17
- public static readonly L_MARKER = 5;
18
- public static readonly COLON = 6;
19
- public static readonly COMMA = 7;
20
- public static readonly INT = 8;
21
- public static readonly IDENT = 9;
22
- public static readonly TAG = 10;
23
- public static readonly PATH_TEXT = 11;
24
- public static readonly BODY_TEXT = 12;
25
- public static readonly CLOSE_TAG = 13;
26
- public static readonly TEXT = 14;
27
- public static readonly OPEN_FIND = 15;
28
- public static readonly OPEN_READ = 16;
29
- public static readonly OPEN_EDIT = 17;
30
- public static readonly OPEN_COPY = 18;
31
- public static readonly OPEN_MOVE = 19;
32
- public static readonly OPEN_SHOW = 20;
33
- public static readonly OPEN_HIDE = 21;
34
- public static readonly OPEN_SEND = 22;
35
- public static readonly OPEN_EXEC = 23;
36
- public static readonly SLOTS_WS = 24;
37
- public static readonly ST_WS = 25;
38
- public static readonly SI_WS = 26;
39
- public static readonly SD_WS = 27;
40
- public static readonly ST_COMMA = 28;
41
- public static readonly B_COLON = 29;
42
- public static readonly RULE_document = 0;
43
- public static readonly RULE_statement = 1;
44
- public static readonly RULE_findStatement = 2;
45
- public static readonly RULE_readStatement = 3;
46
- public static readonly RULE_editStatement = 4;
47
- public static readonly RULE_copyStatement = 5;
48
- public static readonly RULE_moveStatement = 6;
49
- public static readonly RULE_showStatement = 7;
50
- public static readonly RULE_hideStatement = 8;
51
- public static readonly RULE_sendStatement = 9;
52
- public static readonly RULE_execStatement = 10;
53
- public static readonly RULE_tagOpModifiers = 11;
54
- public static readonly RULE_sendModifiers = 12;
55
- public static readonly RULE_execModifiers = 13;
56
- public static readonly RULE_tagSignal = 14;
57
- public static readonly RULE_intSignal = 15;
58
- public static readonly RULE_identSignal = 16;
59
- public static readonly RULE_path = 17;
60
- public static readonly RULE_lineMarker = 18;
61
- public static readonly RULE_body = 19;
62
-
63
- public static readonly literalNames = [
64
- null, null, null, null, null, null, null, null, null, null, null,
65
- null, null, null, null, null, null, null, null, null, null, null,
66
- null, null, null, null, null, null, "','", "':'"
67
- ];
68
-
69
- public static readonly symbolicNames = [
70
- null, "LBRACKET", "RBRACKET", "LPAREN", "RPAREN", "L_MARKER", "COLON",
71
- "COMMA", "INT", "IDENT", "TAG", "PATH_TEXT", "BODY_TEXT", "CLOSE_TAG",
72
- "TEXT", "OPEN_FIND", "OPEN_READ", "OPEN_EDIT", "OPEN_COPY", "OPEN_MOVE",
73
- "OPEN_SHOW", "OPEN_HIDE", "OPEN_SEND", "OPEN_EXEC", "SLOTS_WS",
74
- "ST_WS", "SI_WS", "SD_WS", "ST_COMMA", "B_COLON"
75
- ];
76
- public static readonly ruleNames = [
77
- "document", "statement", "findStatement", "readStatement", "editStatement",
78
- "copyStatement", "moveStatement", "showStatement", "hideStatement",
79
- "sendStatement", "execStatement", "tagOpModifiers", "sendModifiers",
80
- "execModifiers", "tagSignal", "intSignal", "identSignal", "path",
81
- "lineMarker", "body",
82
- ];
83
-
84
- public get grammarFileName(): string { return "plurnkParser.g4"; }
85
- public get literalNames(): (string | null)[] { return plurnkParser.literalNames; }
86
- public get symbolicNames(): (string | null)[] { return plurnkParser.symbolicNames; }
87
- public get ruleNames(): string[] { return plurnkParser.ruleNames; }
88
- public get serializedATN(): number[] { return plurnkParser._serializedATN; }
89
-
90
- protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException {
91
- return new antlr.FailedPredicateException(this, predicate, message);
92
- }
93
-
94
- public constructor(input: antlr.TokenStream) {
95
- super(input);
96
- this.interpreter = new antlr.ParserATNSimulator(this, plurnkParser._ATN, plurnkParser.decisionsToDFA, new antlr.PredictionContextCache());
97
- }
98
- public document(): DocumentContext {
99
- let localContext = new DocumentContext(this.context, this.state);
100
- this.enterRule(localContext, 0, plurnkParser.RULE_document);
101
- let _la: number;
102
- try {
103
- this.enterOuterAlt(localContext, 1);
104
- {
105
- this.state = 44;
106
- this.errorHandler.sync(this);
107
- _la = this.tokenStream.LA(1);
108
- while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 16760832) !== 0)) {
109
- {
110
- this.state = 42;
111
- this.errorHandler.sync(this);
112
- switch (this.tokenStream.LA(1)) {
113
- case plurnkParser.OPEN_FIND:
114
- case plurnkParser.OPEN_READ:
115
- case plurnkParser.OPEN_EDIT:
116
- case plurnkParser.OPEN_COPY:
117
- case plurnkParser.OPEN_MOVE:
118
- case plurnkParser.OPEN_SHOW:
119
- case plurnkParser.OPEN_HIDE:
120
- case plurnkParser.OPEN_SEND:
121
- case plurnkParser.OPEN_EXEC:
122
- {
123
- this.state = 40;
124
- this.statement();
125
- }
126
- break;
127
- case plurnkParser.TEXT:
128
- {
129
- this.state = 41;
130
- this.match(plurnkParser.TEXT);
131
- }
132
- break;
133
- default:
134
- throw new antlr.NoViableAltException(this);
135
- }
136
- }
137
- this.state = 46;
138
- this.errorHandler.sync(this);
139
- _la = this.tokenStream.LA(1);
140
- }
141
- this.state = 47;
142
- this.match(plurnkParser.EOF);
143
- }
144
- }
145
- catch (re) {
146
- if (re instanceof antlr.RecognitionException) {
147
- this.errorHandler.reportError(this, re);
148
- this.errorHandler.recover(this, re);
149
- } else {
150
- throw re;
151
- }
152
- }
153
- finally {
154
- this.exitRule();
155
- }
156
- return localContext;
157
- }
158
- public statement(): StatementContext {
159
- let localContext = new StatementContext(this.context, this.state);
160
- this.enterRule(localContext, 2, plurnkParser.RULE_statement);
161
- try {
162
- this.state = 58;
163
- this.errorHandler.sync(this);
164
- switch (this.tokenStream.LA(1)) {
165
- case plurnkParser.OPEN_FIND:
166
- this.enterOuterAlt(localContext, 1);
167
- {
168
- this.state = 49;
169
- this.findStatement();
170
- }
171
- break;
172
- case plurnkParser.OPEN_READ:
173
- this.enterOuterAlt(localContext, 2);
174
- {
175
- this.state = 50;
176
- this.readStatement();
177
- }
178
- break;
179
- case plurnkParser.OPEN_EDIT:
180
- this.enterOuterAlt(localContext, 3);
181
- {
182
- this.state = 51;
183
- this.editStatement();
184
- }
185
- break;
186
- case plurnkParser.OPEN_COPY:
187
- this.enterOuterAlt(localContext, 4);
188
- {
189
- this.state = 52;
190
- this.copyStatement();
191
- }
192
- break;
193
- case plurnkParser.OPEN_MOVE:
194
- this.enterOuterAlt(localContext, 5);
195
- {
196
- this.state = 53;
197
- this.moveStatement();
198
- }
199
- break;
200
- case plurnkParser.OPEN_SHOW:
201
- this.enterOuterAlt(localContext, 6);
202
- {
203
- this.state = 54;
204
- this.showStatement();
205
- }
206
- break;
207
- case plurnkParser.OPEN_HIDE:
208
- this.enterOuterAlt(localContext, 7);
209
- {
210
- this.state = 55;
211
- this.hideStatement();
212
- }
213
- break;
214
- case plurnkParser.OPEN_SEND:
215
- this.enterOuterAlt(localContext, 8);
216
- {
217
- this.state = 56;
218
- this.sendStatement();
219
- }
220
- break;
221
- case plurnkParser.OPEN_EXEC:
222
- this.enterOuterAlt(localContext, 9);
223
- {
224
- this.state = 57;
225
- this.execStatement();
226
- }
227
- break;
228
- default:
229
- throw new antlr.NoViableAltException(this);
230
- }
231
- }
232
- catch (re) {
233
- if (re instanceof antlr.RecognitionException) {
234
- this.errorHandler.reportError(this, re);
235
- this.errorHandler.recover(this, re);
236
- } else {
237
- throw re;
238
- }
239
- }
240
- finally {
241
- this.exitRule();
242
- }
243
- return localContext;
244
- }
245
- public findStatement(): FindStatementContext {
246
- let localContext = new FindStatementContext(this.context, this.state);
247
- this.enterRule(localContext, 4, plurnkParser.RULE_findStatement);
248
- let _la: number;
249
- try {
250
- this.enterOuterAlt(localContext, 1);
251
- {
252
- this.state = 60;
253
- this.match(plurnkParser.OPEN_FIND);
254
- this.state = 62;
255
- this.errorHandler.sync(this);
256
- _la = this.tokenStream.LA(1);
257
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
258
- {
259
- this.state = 61;
260
- this.tagOpModifiers();
261
- }
262
- }
263
-
264
- this.state = 64;
265
- this.match(plurnkParser.COLON);
266
- this.state = 66;
267
- this.errorHandler.sync(this);
268
- _la = this.tokenStream.LA(1);
269
- if (_la === 12) {
270
- {
271
- this.state = 65;
272
- this.body();
273
- }
274
- }
275
-
276
- this.state = 68;
277
- this.match(plurnkParser.CLOSE_TAG);
278
- }
279
- }
280
- catch (re) {
281
- if (re instanceof antlr.RecognitionException) {
282
- this.errorHandler.reportError(this, re);
283
- this.errorHandler.recover(this, re);
284
- } else {
285
- throw re;
286
- }
287
- }
288
- finally {
289
- this.exitRule();
290
- }
291
- return localContext;
292
- }
293
- public readStatement(): ReadStatementContext {
294
- let localContext = new ReadStatementContext(this.context, this.state);
295
- this.enterRule(localContext, 6, plurnkParser.RULE_readStatement);
296
- let _la: number;
297
- try {
298
- this.enterOuterAlt(localContext, 1);
299
- {
300
- this.state = 70;
301
- this.match(plurnkParser.OPEN_READ);
302
- this.state = 72;
303
- this.errorHandler.sync(this);
304
- _la = this.tokenStream.LA(1);
305
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
306
- {
307
- this.state = 71;
308
- this.tagOpModifiers();
309
- }
310
- }
311
-
312
- this.state = 74;
313
- this.match(plurnkParser.COLON);
314
- this.state = 76;
315
- this.errorHandler.sync(this);
316
- _la = this.tokenStream.LA(1);
317
- if (_la === 12) {
318
- {
319
- this.state = 75;
320
- this.body();
321
- }
322
- }
323
-
324
- this.state = 78;
325
- this.match(plurnkParser.CLOSE_TAG);
326
- }
327
- }
328
- catch (re) {
329
- if (re instanceof antlr.RecognitionException) {
330
- this.errorHandler.reportError(this, re);
331
- this.errorHandler.recover(this, re);
332
- } else {
333
- throw re;
334
- }
335
- }
336
- finally {
337
- this.exitRule();
338
- }
339
- return localContext;
340
- }
341
- public editStatement(): EditStatementContext {
342
- let localContext = new EditStatementContext(this.context, this.state);
343
- this.enterRule(localContext, 8, plurnkParser.RULE_editStatement);
344
- let _la: number;
345
- try {
346
- this.enterOuterAlt(localContext, 1);
347
- {
348
- this.state = 80;
349
- this.match(plurnkParser.OPEN_EDIT);
350
- this.state = 82;
351
- this.errorHandler.sync(this);
352
- _la = this.tokenStream.LA(1);
353
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
354
- {
355
- this.state = 81;
356
- this.tagOpModifiers();
357
- }
358
- }
359
-
360
- this.state = 84;
361
- this.match(plurnkParser.COLON);
362
- this.state = 86;
363
- this.errorHandler.sync(this);
364
- _la = this.tokenStream.LA(1);
365
- if (_la === 12) {
366
- {
367
- this.state = 85;
368
- this.body();
369
- }
370
- }
371
-
372
- this.state = 88;
373
- this.match(plurnkParser.CLOSE_TAG);
374
- }
375
- }
376
- catch (re) {
377
- if (re instanceof antlr.RecognitionException) {
378
- this.errorHandler.reportError(this, re);
379
- this.errorHandler.recover(this, re);
380
- } else {
381
- throw re;
382
- }
383
- }
384
- finally {
385
- this.exitRule();
386
- }
387
- return localContext;
388
- }
389
- public copyStatement(): CopyStatementContext {
390
- let localContext = new CopyStatementContext(this.context, this.state);
391
- this.enterRule(localContext, 10, plurnkParser.RULE_copyStatement);
392
- let _la: number;
393
- try {
394
- this.enterOuterAlt(localContext, 1);
395
- {
396
- this.state = 90;
397
- this.match(plurnkParser.OPEN_COPY);
398
- this.state = 92;
399
- this.errorHandler.sync(this);
400
- _la = this.tokenStream.LA(1);
401
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
402
- {
403
- this.state = 91;
404
- this.tagOpModifiers();
405
- }
406
- }
407
-
408
- this.state = 94;
409
- this.match(plurnkParser.COLON);
410
- this.state = 96;
411
- this.errorHandler.sync(this);
412
- _la = this.tokenStream.LA(1);
413
- if (_la === 12) {
414
- {
415
- this.state = 95;
416
- this.body();
417
- }
418
- }
419
-
420
- this.state = 98;
421
- this.match(plurnkParser.CLOSE_TAG);
422
- }
423
- }
424
- catch (re) {
425
- if (re instanceof antlr.RecognitionException) {
426
- this.errorHandler.reportError(this, re);
427
- this.errorHandler.recover(this, re);
428
- } else {
429
- throw re;
430
- }
431
- }
432
- finally {
433
- this.exitRule();
434
- }
435
- return localContext;
436
- }
437
- public moveStatement(): MoveStatementContext {
438
- let localContext = new MoveStatementContext(this.context, this.state);
439
- this.enterRule(localContext, 12, plurnkParser.RULE_moveStatement);
440
- let _la: number;
441
- try {
442
- this.enterOuterAlt(localContext, 1);
443
- {
444
- this.state = 100;
445
- this.match(plurnkParser.OPEN_MOVE);
446
- this.state = 102;
447
- this.errorHandler.sync(this);
448
- _la = this.tokenStream.LA(1);
449
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
450
- {
451
- this.state = 101;
452
- this.tagOpModifiers();
453
- }
454
- }
455
-
456
- this.state = 104;
457
- this.match(plurnkParser.COLON);
458
- this.state = 106;
459
- this.errorHandler.sync(this);
460
- _la = this.tokenStream.LA(1);
461
- if (_la === 12) {
462
- {
463
- this.state = 105;
464
- this.body();
465
- }
466
- }
467
-
468
- this.state = 108;
469
- this.match(plurnkParser.CLOSE_TAG);
470
- }
471
- }
472
- catch (re) {
473
- if (re instanceof antlr.RecognitionException) {
474
- this.errorHandler.reportError(this, re);
475
- this.errorHandler.recover(this, re);
476
- } else {
477
- throw re;
478
- }
479
- }
480
- finally {
481
- this.exitRule();
482
- }
483
- return localContext;
484
- }
485
- public showStatement(): ShowStatementContext {
486
- let localContext = new ShowStatementContext(this.context, this.state);
487
- this.enterRule(localContext, 14, plurnkParser.RULE_showStatement);
488
- let _la: number;
489
- try {
490
- this.enterOuterAlt(localContext, 1);
491
- {
492
- this.state = 110;
493
- this.match(plurnkParser.OPEN_SHOW);
494
- this.state = 112;
495
- this.errorHandler.sync(this);
496
- _la = this.tokenStream.LA(1);
497
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
498
- {
499
- this.state = 111;
500
- this.tagOpModifiers();
501
- }
502
- }
503
-
504
- this.state = 114;
505
- this.match(plurnkParser.COLON);
506
- this.state = 116;
507
- this.errorHandler.sync(this);
508
- _la = this.tokenStream.LA(1);
509
- if (_la === 12) {
510
- {
511
- this.state = 115;
512
- this.body();
513
- }
514
- }
515
-
516
- this.state = 118;
517
- this.match(plurnkParser.CLOSE_TAG);
518
- }
519
- }
520
- catch (re) {
521
- if (re instanceof antlr.RecognitionException) {
522
- this.errorHandler.reportError(this, re);
523
- this.errorHandler.recover(this, re);
524
- } else {
525
- throw re;
526
- }
527
- }
528
- finally {
529
- this.exitRule();
530
- }
531
- return localContext;
532
- }
533
- public hideStatement(): HideStatementContext {
534
- let localContext = new HideStatementContext(this.context, this.state);
535
- this.enterRule(localContext, 16, plurnkParser.RULE_hideStatement);
536
- let _la: number;
537
- try {
538
- this.enterOuterAlt(localContext, 1);
539
- {
540
- this.state = 120;
541
- this.match(plurnkParser.OPEN_HIDE);
542
- this.state = 122;
543
- this.errorHandler.sync(this);
544
- _la = this.tokenStream.LA(1);
545
- if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 42) !== 0)) {
546
- {
547
- this.state = 121;
548
- this.tagOpModifiers();
549
- }
550
- }
551
-
552
- this.state = 124;
553
- this.match(plurnkParser.COLON);
554
- this.state = 126;
555
- this.errorHandler.sync(this);
556
- _la = this.tokenStream.LA(1);
557
- if (_la === 12) {
558
- {
559
- this.state = 125;
560
- this.body();
561
- }
562
- }
563
-
564
- this.state = 128;
565
- this.match(plurnkParser.CLOSE_TAG);
566
- }
567
- }
568
- catch (re) {
569
- if (re instanceof antlr.RecognitionException) {
570
- this.errorHandler.reportError(this, re);
571
- this.errorHandler.recover(this, re);
572
- } else {
573
- throw re;
574
- }
575
- }
576
- finally {
577
- this.exitRule();
578
- }
579
- return localContext;
580
- }
581
- public sendStatement(): SendStatementContext {
582
- let localContext = new SendStatementContext(this.context, this.state);
583
- this.enterRule(localContext, 18, plurnkParser.RULE_sendStatement);
584
- let _la: number;
585
- try {
586
- this.enterOuterAlt(localContext, 1);
587
- {
588
- this.state = 130;
589
- this.match(plurnkParser.OPEN_SEND);
590
- this.state = 132;
591
- this.errorHandler.sync(this);
592
- _la = this.tokenStream.LA(1);
593
- if (_la === 1 || _la === 3) {
594
- {
595
- this.state = 131;
596
- this.sendModifiers();
597
- }
598
- }
599
-
600
- this.state = 134;
601
- this.match(plurnkParser.COLON);
602
- this.state = 136;
603
- this.errorHandler.sync(this);
604
- _la = this.tokenStream.LA(1);
605
- if (_la === 12) {
606
- {
607
- this.state = 135;
608
- this.body();
609
- }
610
- }
611
-
612
- this.state = 138;
613
- this.match(plurnkParser.CLOSE_TAG);
614
- }
615
- }
616
- catch (re) {
617
- if (re instanceof antlr.RecognitionException) {
618
- this.errorHandler.reportError(this, re);
619
- this.errorHandler.recover(this, re);
620
- } else {
621
- throw re;
622
- }
623
- }
624
- finally {
625
- this.exitRule();
626
- }
627
- return localContext;
628
- }
629
- public execStatement(): ExecStatementContext {
630
- let localContext = new ExecStatementContext(this.context, this.state);
631
- this.enterRule(localContext, 20, plurnkParser.RULE_execStatement);
632
- let _la: number;
633
- try {
634
- this.enterOuterAlt(localContext, 1);
635
- {
636
- this.state = 140;
637
- this.match(plurnkParser.OPEN_EXEC);
638
- this.state = 142;
639
- this.errorHandler.sync(this);
640
- _la = this.tokenStream.LA(1);
641
- if (_la === 1 || _la === 3) {
642
- {
643
- this.state = 141;
644
- this.execModifiers();
645
- }
646
- }
647
-
648
- this.state = 144;
649
- this.match(plurnkParser.COLON);
650
- this.state = 146;
651
- this.errorHandler.sync(this);
652
- _la = this.tokenStream.LA(1);
653
- if (_la === 12) {
654
- {
655
- this.state = 145;
656
- this.body();
657
- }
658
- }
659
-
660
- this.state = 148;
661
- this.match(plurnkParser.CLOSE_TAG);
662
- }
663
- }
664
- catch (re) {
665
- if (re instanceof antlr.RecognitionException) {
666
- this.errorHandler.reportError(this, re);
667
- this.errorHandler.recover(this, re);
668
- } else {
669
- throw re;
670
- }
671
- }
672
- finally {
673
- this.exitRule();
674
- }
675
- return localContext;
676
- }
677
- public tagOpModifiers(): TagOpModifiersContext {
678
- let localContext = new TagOpModifiersContext(this.context, this.state);
679
- this.enterRule(localContext, 22, plurnkParser.RULE_tagOpModifiers);
680
- let _la: number;
681
- try {
682
- this.state = 183;
683
- this.errorHandler.sync(this);
684
- switch (this.tokenStream.LA(1)) {
685
- case plurnkParser.LBRACKET:
686
- this.enterOuterAlt(localContext, 1);
687
- {
688
- this.state = 150;
689
- this.tagSignal();
690
- this.state = 159;
691
- this.errorHandler.sync(this);
692
- switch (this.tokenStream.LA(1)) {
693
- case plurnkParser.LPAREN:
694
- {
695
- this.state = 151;
696
- this.path();
697
- this.state = 153;
698
- this.errorHandler.sync(this);
699
- _la = this.tokenStream.LA(1);
700
- if (_la === 5) {
701
- {
702
- this.state = 152;
703
- this.lineMarker();
704
- }
705
- }
706
-
707
- }
708
- break;
709
- case plurnkParser.L_MARKER:
710
- {
711
- this.state = 155;
712
- this.lineMarker();
713
- this.state = 157;
714
- this.errorHandler.sync(this);
715
- _la = this.tokenStream.LA(1);
716
- if (_la === 3) {
717
- {
718
- this.state = 156;
719
- this.path();
720
- }
721
- }
722
-
723
- }
724
- break;
725
- case plurnkParser.COLON:
726
- break;
727
- default:
728
- break;
729
- }
730
- }
731
- break;
732
- case plurnkParser.LPAREN:
733
- this.enterOuterAlt(localContext, 2);
734
- {
735
- this.state = 161;
736
- this.path();
737
- this.state = 170;
738
- this.errorHandler.sync(this);
739
- switch (this.tokenStream.LA(1)) {
740
- case plurnkParser.LBRACKET:
741
- {
742
- this.state = 162;
743
- this.tagSignal();
744
- this.state = 164;
745
- this.errorHandler.sync(this);
746
- _la = this.tokenStream.LA(1);
747
- if (_la === 5) {
748
- {
749
- this.state = 163;
750
- this.lineMarker();
751
- }
752
- }
753
-
754
- }
755
- break;
756
- case plurnkParser.L_MARKER:
757
- {
758
- this.state = 166;
759
- this.lineMarker();
760
- this.state = 168;
761
- this.errorHandler.sync(this);
762
- _la = this.tokenStream.LA(1);
763
- if (_la === 1) {
764
- {
765
- this.state = 167;
766
- this.tagSignal();
767
- }
768
- }
769
-
770
- }
771
- break;
772
- case plurnkParser.COLON:
773
- break;
774
- default:
775
- break;
776
- }
777
- }
778
- break;
779
- case plurnkParser.L_MARKER:
780
- this.enterOuterAlt(localContext, 3);
781
- {
782
- this.state = 172;
783
- this.lineMarker();
784
- this.state = 181;
785
- this.errorHandler.sync(this);
786
- switch (this.tokenStream.LA(1)) {
787
- case plurnkParser.LBRACKET:
788
- {
789
- this.state = 173;
790
- this.tagSignal();
791
- this.state = 175;
792
- this.errorHandler.sync(this);
793
- _la = this.tokenStream.LA(1);
794
- if (_la === 3) {
795
- {
796
- this.state = 174;
797
- this.path();
798
- }
799
- }
800
-
801
- }
802
- break;
803
- case plurnkParser.LPAREN:
804
- {
805
- this.state = 177;
806
- this.path();
807
- this.state = 179;
808
- this.errorHandler.sync(this);
809
- _la = this.tokenStream.LA(1);
810
- if (_la === 1) {
811
- {
812
- this.state = 178;
813
- this.tagSignal();
814
- }
815
- }
816
-
817
- }
818
- break;
819
- case plurnkParser.COLON:
820
- break;
821
- default:
822
- break;
823
- }
824
- }
825
- break;
826
- default:
827
- throw new antlr.NoViableAltException(this);
828
- }
829
- }
830
- catch (re) {
831
- if (re instanceof antlr.RecognitionException) {
832
- this.errorHandler.reportError(this, re);
833
- this.errorHandler.recover(this, re);
834
- } else {
835
- throw re;
836
- }
837
- }
838
- finally {
839
- this.exitRule();
840
- }
841
- return localContext;
842
- }
843
- public sendModifiers(): SendModifiersContext {
844
- let localContext = new SendModifiersContext(this.context, this.state);
845
- this.enterRule(localContext, 24, plurnkParser.RULE_sendModifiers);
846
- let _la: number;
847
- try {
848
- this.state = 193;
849
- this.errorHandler.sync(this);
850
- switch (this.tokenStream.LA(1)) {
851
- case plurnkParser.LBRACKET:
852
- this.enterOuterAlt(localContext, 1);
853
- {
854
- this.state = 185;
855
- this.intSignal();
856
- this.state = 187;
857
- this.errorHandler.sync(this);
858
- _la = this.tokenStream.LA(1);
859
- if (_la === 3) {
860
- {
861
- this.state = 186;
862
- this.path();
863
- }
864
- }
865
-
866
- }
867
- break;
868
- case plurnkParser.LPAREN:
869
- this.enterOuterAlt(localContext, 2);
870
- {
871
- this.state = 189;
872
- this.path();
873
- this.state = 191;
874
- this.errorHandler.sync(this);
875
- _la = this.tokenStream.LA(1);
876
- if (_la === 1) {
877
- {
878
- this.state = 190;
879
- this.intSignal();
880
- }
881
- }
882
-
883
- }
884
- break;
885
- default:
886
- throw new antlr.NoViableAltException(this);
887
- }
888
- }
889
- catch (re) {
890
- if (re instanceof antlr.RecognitionException) {
891
- this.errorHandler.reportError(this, re);
892
- this.errorHandler.recover(this, re);
893
- } else {
894
- throw re;
895
- }
896
- }
897
- finally {
898
- this.exitRule();
899
- }
900
- return localContext;
901
- }
902
- public execModifiers(): ExecModifiersContext {
903
- let localContext = new ExecModifiersContext(this.context, this.state);
904
- this.enterRule(localContext, 26, plurnkParser.RULE_execModifiers);
905
- let _la: number;
906
- try {
907
- this.state = 203;
908
- this.errorHandler.sync(this);
909
- switch (this.tokenStream.LA(1)) {
910
- case plurnkParser.LBRACKET:
911
- this.enterOuterAlt(localContext, 1);
912
- {
913
- this.state = 195;
914
- this.identSignal();
915
- this.state = 197;
916
- this.errorHandler.sync(this);
917
- _la = this.tokenStream.LA(1);
918
- if (_la === 3) {
919
- {
920
- this.state = 196;
921
- this.path();
922
- }
923
- }
924
-
925
- }
926
- break;
927
- case plurnkParser.LPAREN:
928
- this.enterOuterAlt(localContext, 2);
929
- {
930
- this.state = 199;
931
- this.path();
932
- this.state = 201;
933
- this.errorHandler.sync(this);
934
- _la = this.tokenStream.LA(1);
935
- if (_la === 1) {
936
- {
937
- this.state = 200;
938
- this.identSignal();
939
- }
940
- }
941
-
942
- }
943
- break;
944
- default:
945
- throw new antlr.NoViableAltException(this);
946
- }
947
- }
948
- catch (re) {
949
- if (re instanceof antlr.RecognitionException) {
950
- this.errorHandler.reportError(this, re);
951
- this.errorHandler.recover(this, re);
952
- } else {
953
- throw re;
954
- }
955
- }
956
- finally {
957
- this.exitRule();
958
- }
959
- return localContext;
960
- }
961
- public tagSignal(): TagSignalContext {
962
- let localContext = new TagSignalContext(this.context, this.state);
963
- this.enterRule(localContext, 28, plurnkParser.RULE_tagSignal);
964
- let _la: number;
965
- try {
966
- this.enterOuterAlt(localContext, 1);
967
- {
968
- this.state = 205;
969
- this.match(plurnkParser.LBRACKET);
970
- this.state = 209;
971
- this.errorHandler.sync(this);
972
- _la = this.tokenStream.LA(1);
973
- while (_la === 7 || _la === 10) {
974
- {
975
- {
976
- this.state = 206;
977
- _la = this.tokenStream.LA(1);
978
- if(!(_la === 7 || _la === 10)) {
979
- this.errorHandler.recoverInline(this);
980
- }
981
- else {
982
- this.errorHandler.reportMatch(this);
983
- this.consume();
984
- }
985
- }
986
- }
987
- this.state = 211;
988
- this.errorHandler.sync(this);
989
- _la = this.tokenStream.LA(1);
990
- }
991
- this.state = 212;
992
- this.match(plurnkParser.RBRACKET);
993
- }
994
- }
995
- catch (re) {
996
- if (re instanceof antlr.RecognitionException) {
997
- this.errorHandler.reportError(this, re);
998
- this.errorHandler.recover(this, re);
999
- } else {
1000
- throw re;
1001
- }
1002
- }
1003
- finally {
1004
- this.exitRule();
1005
- }
1006
- return localContext;
1007
- }
1008
- public intSignal(): IntSignalContext {
1009
- let localContext = new IntSignalContext(this.context, this.state);
1010
- this.enterRule(localContext, 30, plurnkParser.RULE_intSignal);
1011
- let _la: number;
1012
- try {
1013
- this.enterOuterAlt(localContext, 1);
1014
- {
1015
- this.state = 214;
1016
- this.match(plurnkParser.LBRACKET);
1017
- this.state = 216;
1018
- this.errorHandler.sync(this);
1019
- _la = this.tokenStream.LA(1);
1020
- if (_la === 8) {
1021
- {
1022
- this.state = 215;
1023
- this.match(plurnkParser.INT);
1024
- }
1025
- }
1026
-
1027
- this.state = 218;
1028
- this.match(plurnkParser.RBRACKET);
1029
- }
1030
- }
1031
- catch (re) {
1032
- if (re instanceof antlr.RecognitionException) {
1033
- this.errorHandler.reportError(this, re);
1034
- this.errorHandler.recover(this, re);
1035
- } else {
1036
- throw re;
1037
- }
1038
- }
1039
- finally {
1040
- this.exitRule();
1041
- }
1042
- return localContext;
1043
- }
1044
- public identSignal(): IdentSignalContext {
1045
- let localContext = new IdentSignalContext(this.context, this.state);
1046
- this.enterRule(localContext, 32, plurnkParser.RULE_identSignal);
1047
- let _la: number;
1048
- try {
1049
- this.enterOuterAlt(localContext, 1);
1050
- {
1051
- this.state = 220;
1052
- this.match(plurnkParser.LBRACKET);
1053
- this.state = 222;
1054
- this.errorHandler.sync(this);
1055
- _la = this.tokenStream.LA(1);
1056
- if (_la === 9) {
1057
- {
1058
- this.state = 221;
1059
- this.match(plurnkParser.IDENT);
1060
- }
1061
- }
1062
-
1063
- this.state = 224;
1064
- this.match(plurnkParser.RBRACKET);
1065
- }
1066
- }
1067
- catch (re) {
1068
- if (re instanceof antlr.RecognitionException) {
1069
- this.errorHandler.reportError(this, re);
1070
- this.errorHandler.recover(this, re);
1071
- } else {
1072
- throw re;
1073
- }
1074
- }
1075
- finally {
1076
- this.exitRule();
1077
- }
1078
- return localContext;
1079
- }
1080
- public path(): PathContext {
1081
- let localContext = new PathContext(this.context, this.state);
1082
- this.enterRule(localContext, 34, plurnkParser.RULE_path);
1083
- let _la: number;
1084
- try {
1085
- this.enterOuterAlt(localContext, 1);
1086
- {
1087
- this.state = 226;
1088
- this.match(plurnkParser.LPAREN);
1089
- this.state = 228;
1090
- this.errorHandler.sync(this);
1091
- _la = this.tokenStream.LA(1);
1092
- if (_la === 11) {
1093
- {
1094
- this.state = 227;
1095
- this.match(plurnkParser.PATH_TEXT);
1096
- }
1097
- }
1098
-
1099
- this.state = 230;
1100
- this.match(plurnkParser.RPAREN);
1101
- }
1102
- }
1103
- catch (re) {
1104
- if (re instanceof antlr.RecognitionException) {
1105
- this.errorHandler.reportError(this, re);
1106
- this.errorHandler.recover(this, re);
1107
- } else {
1108
- throw re;
1109
- }
1110
- }
1111
- finally {
1112
- this.exitRule();
1113
- }
1114
- return localContext;
1115
- }
1116
- public lineMarker(): LineMarkerContext {
1117
- let localContext = new LineMarkerContext(this.context, this.state);
1118
- this.enterRule(localContext, 36, plurnkParser.RULE_lineMarker);
1119
- try {
1120
- this.enterOuterAlt(localContext, 1);
1121
- {
1122
- this.state = 232;
1123
- this.match(plurnkParser.L_MARKER);
1124
- }
1125
- }
1126
- catch (re) {
1127
- if (re instanceof antlr.RecognitionException) {
1128
- this.errorHandler.reportError(this, re);
1129
- this.errorHandler.recover(this, re);
1130
- } else {
1131
- throw re;
1132
- }
1133
- }
1134
- finally {
1135
- this.exitRule();
1136
- }
1137
- return localContext;
1138
- }
1139
- public body(): BodyContext {
1140
- let localContext = new BodyContext(this.context, this.state);
1141
- this.enterRule(localContext, 38, plurnkParser.RULE_body);
1142
- let _la: number;
1143
- try {
1144
- this.enterOuterAlt(localContext, 1);
1145
- {
1146
- this.state = 235;
1147
- this.errorHandler.sync(this);
1148
- _la = this.tokenStream.LA(1);
1149
- do {
1150
- {
1151
- {
1152
- this.state = 234;
1153
- this.match(plurnkParser.BODY_TEXT);
1154
- }
1155
- }
1156
- this.state = 237;
1157
- this.errorHandler.sync(this);
1158
- _la = this.tokenStream.LA(1);
1159
- } while (_la === 12);
1160
- }
1161
- }
1162
- catch (re) {
1163
- if (re instanceof antlr.RecognitionException) {
1164
- this.errorHandler.reportError(this, re);
1165
- this.errorHandler.recover(this, re);
1166
- } else {
1167
- throw re;
1168
- }
1169
- }
1170
- finally {
1171
- this.exitRule();
1172
- }
1173
- return localContext;
1174
- }
1175
-
1176
- public static readonly _serializedATN: number[] = [
1177
- 4,1,29,240,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,
1178
- 6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,
1179
- 2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,1,0,
1180
- 1,0,5,0,43,8,0,10,0,12,0,46,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,
1181
- 1,1,1,1,1,1,3,1,59,8,1,1,2,1,2,3,2,63,8,2,1,2,1,2,3,2,67,8,2,1,2,
1182
- 1,2,1,3,1,3,3,3,73,8,3,1,3,1,3,3,3,77,8,3,1,3,1,3,1,4,1,4,3,4,83,
1183
- 8,4,1,4,1,4,3,4,87,8,4,1,4,1,4,1,5,1,5,3,5,93,8,5,1,5,1,5,3,5,97,
1184
- 8,5,1,5,1,5,1,6,1,6,3,6,103,8,6,1,6,1,6,3,6,107,8,6,1,6,1,6,1,7,
1185
- 1,7,3,7,113,8,7,1,7,1,7,3,7,117,8,7,1,7,1,7,1,8,1,8,3,8,123,8,8,
1186
- 1,8,1,8,3,8,127,8,8,1,8,1,8,1,9,1,9,3,9,133,8,9,1,9,1,9,3,9,137,
1187
- 8,9,1,9,1,9,1,10,1,10,3,10,143,8,10,1,10,1,10,3,10,147,8,10,1,10,
1188
- 1,10,1,11,1,11,1,11,3,11,154,8,11,1,11,1,11,3,11,158,8,11,3,11,160,
1189
- 8,11,1,11,1,11,1,11,3,11,165,8,11,1,11,1,11,3,11,169,8,11,3,11,171,
1190
- 8,11,1,11,1,11,1,11,3,11,176,8,11,1,11,1,11,3,11,180,8,11,3,11,182,
1191
- 8,11,3,11,184,8,11,1,12,1,12,3,12,188,8,12,1,12,1,12,3,12,192,8,
1192
- 12,3,12,194,8,12,1,13,1,13,3,13,198,8,13,1,13,1,13,3,13,202,8,13,
1193
- 3,13,204,8,13,1,14,1,14,5,14,208,8,14,10,14,12,14,211,9,14,1,14,
1194
- 1,14,1,15,1,15,3,15,217,8,15,1,15,1,15,1,16,1,16,3,16,223,8,16,1,
1195
- 16,1,16,1,17,1,17,3,17,229,8,17,1,17,1,17,1,18,1,18,1,19,4,19,236,
1196
- 8,19,11,19,12,19,237,1,19,0,0,20,0,2,4,6,8,10,12,14,16,18,20,22,
1197
- 24,26,28,30,32,34,36,38,0,1,2,0,7,7,10,10,272,0,44,1,0,0,0,2,58,
1198
- 1,0,0,0,4,60,1,0,0,0,6,70,1,0,0,0,8,80,1,0,0,0,10,90,1,0,0,0,12,
1199
- 100,1,0,0,0,14,110,1,0,0,0,16,120,1,0,0,0,18,130,1,0,0,0,20,140,
1200
- 1,0,0,0,22,183,1,0,0,0,24,193,1,0,0,0,26,203,1,0,0,0,28,205,1,0,
1201
- 0,0,30,214,1,0,0,0,32,220,1,0,0,0,34,226,1,0,0,0,36,232,1,0,0,0,
1202
- 38,235,1,0,0,0,40,43,3,2,1,0,41,43,5,14,0,0,42,40,1,0,0,0,42,41,
1203
- 1,0,0,0,43,46,1,0,0,0,44,42,1,0,0,0,44,45,1,0,0,0,45,47,1,0,0,0,
1204
- 46,44,1,0,0,0,47,48,5,0,0,1,48,1,1,0,0,0,49,59,3,4,2,0,50,59,3,6,
1205
- 3,0,51,59,3,8,4,0,52,59,3,10,5,0,53,59,3,12,6,0,54,59,3,14,7,0,55,
1206
- 59,3,16,8,0,56,59,3,18,9,0,57,59,3,20,10,0,58,49,1,0,0,0,58,50,1,
1207
- 0,0,0,58,51,1,0,0,0,58,52,1,0,0,0,58,53,1,0,0,0,58,54,1,0,0,0,58,
1208
- 55,1,0,0,0,58,56,1,0,0,0,58,57,1,0,0,0,59,3,1,0,0,0,60,62,5,15,0,
1209
- 0,61,63,3,22,11,0,62,61,1,0,0,0,62,63,1,0,0,0,63,64,1,0,0,0,64,66,
1210
- 5,6,0,0,65,67,3,38,19,0,66,65,1,0,0,0,66,67,1,0,0,0,67,68,1,0,0,
1211
- 0,68,69,5,13,0,0,69,5,1,0,0,0,70,72,5,16,0,0,71,73,3,22,11,0,72,
1212
- 71,1,0,0,0,72,73,1,0,0,0,73,74,1,0,0,0,74,76,5,6,0,0,75,77,3,38,
1213
- 19,0,76,75,1,0,0,0,76,77,1,0,0,0,77,78,1,0,0,0,78,79,5,13,0,0,79,
1214
- 7,1,0,0,0,80,82,5,17,0,0,81,83,3,22,11,0,82,81,1,0,0,0,82,83,1,0,
1215
- 0,0,83,84,1,0,0,0,84,86,5,6,0,0,85,87,3,38,19,0,86,85,1,0,0,0,86,
1216
- 87,1,0,0,0,87,88,1,0,0,0,88,89,5,13,0,0,89,9,1,0,0,0,90,92,5,18,
1217
- 0,0,91,93,3,22,11,0,92,91,1,0,0,0,92,93,1,0,0,0,93,94,1,0,0,0,94,
1218
- 96,5,6,0,0,95,97,3,38,19,0,96,95,1,0,0,0,96,97,1,0,0,0,97,98,1,0,
1219
- 0,0,98,99,5,13,0,0,99,11,1,0,0,0,100,102,5,19,0,0,101,103,3,22,11,
1220
- 0,102,101,1,0,0,0,102,103,1,0,0,0,103,104,1,0,0,0,104,106,5,6,0,
1221
- 0,105,107,3,38,19,0,106,105,1,0,0,0,106,107,1,0,0,0,107,108,1,0,
1222
- 0,0,108,109,5,13,0,0,109,13,1,0,0,0,110,112,5,20,0,0,111,113,3,22,
1223
- 11,0,112,111,1,0,0,0,112,113,1,0,0,0,113,114,1,0,0,0,114,116,5,6,
1224
- 0,0,115,117,3,38,19,0,116,115,1,0,0,0,116,117,1,0,0,0,117,118,1,
1225
- 0,0,0,118,119,5,13,0,0,119,15,1,0,0,0,120,122,5,21,0,0,121,123,3,
1226
- 22,11,0,122,121,1,0,0,0,122,123,1,0,0,0,123,124,1,0,0,0,124,126,
1227
- 5,6,0,0,125,127,3,38,19,0,126,125,1,0,0,0,126,127,1,0,0,0,127,128,
1228
- 1,0,0,0,128,129,5,13,0,0,129,17,1,0,0,0,130,132,5,22,0,0,131,133,
1229
- 3,24,12,0,132,131,1,0,0,0,132,133,1,0,0,0,133,134,1,0,0,0,134,136,
1230
- 5,6,0,0,135,137,3,38,19,0,136,135,1,0,0,0,136,137,1,0,0,0,137,138,
1231
- 1,0,0,0,138,139,5,13,0,0,139,19,1,0,0,0,140,142,5,23,0,0,141,143,
1232
- 3,26,13,0,142,141,1,0,0,0,142,143,1,0,0,0,143,144,1,0,0,0,144,146,
1233
- 5,6,0,0,145,147,3,38,19,0,146,145,1,0,0,0,146,147,1,0,0,0,147,148,
1234
- 1,0,0,0,148,149,5,13,0,0,149,21,1,0,0,0,150,159,3,28,14,0,151,153,
1235
- 3,34,17,0,152,154,3,36,18,0,153,152,1,0,0,0,153,154,1,0,0,0,154,
1236
- 160,1,0,0,0,155,157,3,36,18,0,156,158,3,34,17,0,157,156,1,0,0,0,
1237
- 157,158,1,0,0,0,158,160,1,0,0,0,159,151,1,0,0,0,159,155,1,0,0,0,
1238
- 159,160,1,0,0,0,160,184,1,0,0,0,161,170,3,34,17,0,162,164,3,28,14,
1239
- 0,163,165,3,36,18,0,164,163,1,0,0,0,164,165,1,0,0,0,165,171,1,0,
1240
- 0,0,166,168,3,36,18,0,167,169,3,28,14,0,168,167,1,0,0,0,168,169,
1241
- 1,0,0,0,169,171,1,0,0,0,170,162,1,0,0,0,170,166,1,0,0,0,170,171,
1242
- 1,0,0,0,171,184,1,0,0,0,172,181,3,36,18,0,173,175,3,28,14,0,174,
1243
- 176,3,34,17,0,175,174,1,0,0,0,175,176,1,0,0,0,176,182,1,0,0,0,177,
1244
- 179,3,34,17,0,178,180,3,28,14,0,179,178,1,0,0,0,179,180,1,0,0,0,
1245
- 180,182,1,0,0,0,181,173,1,0,0,0,181,177,1,0,0,0,181,182,1,0,0,0,
1246
- 182,184,1,0,0,0,183,150,1,0,0,0,183,161,1,0,0,0,183,172,1,0,0,0,
1247
- 184,23,1,0,0,0,185,187,3,30,15,0,186,188,3,34,17,0,187,186,1,0,0,
1248
- 0,187,188,1,0,0,0,188,194,1,0,0,0,189,191,3,34,17,0,190,192,3,30,
1249
- 15,0,191,190,1,0,0,0,191,192,1,0,0,0,192,194,1,0,0,0,193,185,1,0,
1250
- 0,0,193,189,1,0,0,0,194,25,1,0,0,0,195,197,3,32,16,0,196,198,3,34,
1251
- 17,0,197,196,1,0,0,0,197,198,1,0,0,0,198,204,1,0,0,0,199,201,3,34,
1252
- 17,0,200,202,3,32,16,0,201,200,1,0,0,0,201,202,1,0,0,0,202,204,1,
1253
- 0,0,0,203,195,1,0,0,0,203,199,1,0,0,0,204,27,1,0,0,0,205,209,5,1,
1254
- 0,0,206,208,7,0,0,0,207,206,1,0,0,0,208,211,1,0,0,0,209,207,1,0,
1255
- 0,0,209,210,1,0,0,0,210,212,1,0,0,0,211,209,1,0,0,0,212,213,5,2,
1256
- 0,0,213,29,1,0,0,0,214,216,5,1,0,0,215,217,5,8,0,0,216,215,1,0,0,
1257
- 0,216,217,1,0,0,0,217,218,1,0,0,0,218,219,5,2,0,0,219,31,1,0,0,0,
1258
- 220,222,5,1,0,0,221,223,5,9,0,0,222,221,1,0,0,0,222,223,1,0,0,0,
1259
- 223,224,1,0,0,0,224,225,5,2,0,0,225,33,1,0,0,0,226,228,5,3,0,0,227,
1260
- 229,5,11,0,0,228,227,1,0,0,0,228,229,1,0,0,0,229,230,1,0,0,0,230,
1261
- 231,5,4,0,0,231,35,1,0,0,0,232,233,5,5,0,0,233,37,1,0,0,0,234,236,
1262
- 5,12,0,0,235,234,1,0,0,0,236,237,1,0,0,0,237,235,1,0,0,0,237,238,
1263
- 1,0,0,0,238,39,1,0,0,0,42,42,44,58,62,66,72,76,82,86,92,96,102,106,
1264
- 112,116,122,126,132,136,142,146,153,157,159,164,168,170,175,179,
1265
- 181,183,187,191,193,197,201,203,209,216,222,228,237
1266
- ];
1267
-
1268
- private static __ATN: antlr.ATN;
1269
- public static get _ATN(): antlr.ATN {
1270
- if (!plurnkParser.__ATN) {
1271
- plurnkParser.__ATN = new antlr.ATNDeserializer().deserialize(plurnkParser._serializedATN);
1272
- }
1273
-
1274
- return plurnkParser.__ATN;
1275
- }
1276
-
1277
-
1278
- private static readonly vocabulary = new antlr.Vocabulary(plurnkParser.literalNames, plurnkParser.symbolicNames, []);
1279
-
1280
- public override get vocabulary(): antlr.Vocabulary {
1281
- return plurnkParser.vocabulary;
1282
- }
1283
-
1284
- private static readonly decisionsToDFA = plurnkParser._ATN.decisionToState.map( (ds: antlr.DecisionState, index: number) => new antlr.DFA(ds, index) );
1285
- }
1286
-
1287
- export class DocumentContext extends antlr.ParserRuleContext {
1288
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1289
- super(parent, invokingState);
1290
- }
1291
- public EOF(): antlr.TerminalNode {
1292
- return this.getToken(plurnkParser.EOF, 0)!;
1293
- }
1294
- public statement(): StatementContext[];
1295
- public statement(i: number): StatementContext | null;
1296
- public statement(i?: number): StatementContext[] | StatementContext | null {
1297
- if (i === undefined) {
1298
- return this.getRuleContexts(StatementContext);
1299
- }
1300
-
1301
- return this.getRuleContext(i, StatementContext);
1302
- }
1303
- public TEXT(): antlr.TerminalNode[];
1304
- public TEXT(i: number): antlr.TerminalNode | null;
1305
- public TEXT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
1306
- if (i === undefined) {
1307
- return this.getTokens(plurnkParser.TEXT);
1308
- } else {
1309
- return this.getToken(plurnkParser.TEXT, i);
1310
- }
1311
- }
1312
- public override get ruleIndex(): number {
1313
- return plurnkParser.RULE_document;
1314
- }
1315
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1316
- if (visitor.visitDocument) {
1317
- return visitor.visitDocument(this);
1318
- } else {
1319
- return visitor.visitChildren(this);
1320
- }
1321
- }
1322
- }
1323
-
1324
-
1325
- export class StatementContext extends antlr.ParserRuleContext {
1326
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1327
- super(parent, invokingState);
1328
- }
1329
- public findStatement(): FindStatementContext | null {
1330
- return this.getRuleContext(0, FindStatementContext);
1331
- }
1332
- public readStatement(): ReadStatementContext | null {
1333
- return this.getRuleContext(0, ReadStatementContext);
1334
- }
1335
- public editStatement(): EditStatementContext | null {
1336
- return this.getRuleContext(0, EditStatementContext);
1337
- }
1338
- public copyStatement(): CopyStatementContext | null {
1339
- return this.getRuleContext(0, CopyStatementContext);
1340
- }
1341
- public moveStatement(): MoveStatementContext | null {
1342
- return this.getRuleContext(0, MoveStatementContext);
1343
- }
1344
- public showStatement(): ShowStatementContext | null {
1345
- return this.getRuleContext(0, ShowStatementContext);
1346
- }
1347
- public hideStatement(): HideStatementContext | null {
1348
- return this.getRuleContext(0, HideStatementContext);
1349
- }
1350
- public sendStatement(): SendStatementContext | null {
1351
- return this.getRuleContext(0, SendStatementContext);
1352
- }
1353
- public execStatement(): ExecStatementContext | null {
1354
- return this.getRuleContext(0, ExecStatementContext);
1355
- }
1356
- public override get ruleIndex(): number {
1357
- return plurnkParser.RULE_statement;
1358
- }
1359
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1360
- if (visitor.visitStatement) {
1361
- return visitor.visitStatement(this);
1362
- } else {
1363
- return visitor.visitChildren(this);
1364
- }
1365
- }
1366
- }
1367
-
1368
-
1369
- export class FindStatementContext extends antlr.ParserRuleContext {
1370
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1371
- super(parent, invokingState);
1372
- }
1373
- public OPEN_FIND(): antlr.TerminalNode {
1374
- return this.getToken(plurnkParser.OPEN_FIND, 0)!;
1375
- }
1376
- public COLON(): antlr.TerminalNode {
1377
- return this.getToken(plurnkParser.COLON, 0)!;
1378
- }
1379
- public CLOSE_TAG(): antlr.TerminalNode {
1380
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1381
- }
1382
- public tagOpModifiers(): TagOpModifiersContext | null {
1383
- return this.getRuleContext(0, TagOpModifiersContext);
1384
- }
1385
- public body(): BodyContext | null {
1386
- return this.getRuleContext(0, BodyContext);
1387
- }
1388
- public override get ruleIndex(): number {
1389
- return plurnkParser.RULE_findStatement;
1390
- }
1391
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1392
- if (visitor.visitFindStatement) {
1393
- return visitor.visitFindStatement(this);
1394
- } else {
1395
- return visitor.visitChildren(this);
1396
- }
1397
- }
1398
- }
1399
-
1400
-
1401
- export class ReadStatementContext extends antlr.ParserRuleContext {
1402
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1403
- super(parent, invokingState);
1404
- }
1405
- public OPEN_READ(): antlr.TerminalNode {
1406
- return this.getToken(plurnkParser.OPEN_READ, 0)!;
1407
- }
1408
- public COLON(): antlr.TerminalNode {
1409
- return this.getToken(plurnkParser.COLON, 0)!;
1410
- }
1411
- public CLOSE_TAG(): antlr.TerminalNode {
1412
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1413
- }
1414
- public tagOpModifiers(): TagOpModifiersContext | null {
1415
- return this.getRuleContext(0, TagOpModifiersContext);
1416
- }
1417
- public body(): BodyContext | null {
1418
- return this.getRuleContext(0, BodyContext);
1419
- }
1420
- public override get ruleIndex(): number {
1421
- return plurnkParser.RULE_readStatement;
1422
- }
1423
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1424
- if (visitor.visitReadStatement) {
1425
- return visitor.visitReadStatement(this);
1426
- } else {
1427
- return visitor.visitChildren(this);
1428
- }
1429
- }
1430
- }
1431
-
1432
-
1433
- export class EditStatementContext extends antlr.ParserRuleContext {
1434
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1435
- super(parent, invokingState);
1436
- }
1437
- public OPEN_EDIT(): antlr.TerminalNode {
1438
- return this.getToken(plurnkParser.OPEN_EDIT, 0)!;
1439
- }
1440
- public COLON(): antlr.TerminalNode {
1441
- return this.getToken(plurnkParser.COLON, 0)!;
1442
- }
1443
- public CLOSE_TAG(): antlr.TerminalNode {
1444
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1445
- }
1446
- public tagOpModifiers(): TagOpModifiersContext | null {
1447
- return this.getRuleContext(0, TagOpModifiersContext);
1448
- }
1449
- public body(): BodyContext | null {
1450
- return this.getRuleContext(0, BodyContext);
1451
- }
1452
- public override get ruleIndex(): number {
1453
- return plurnkParser.RULE_editStatement;
1454
- }
1455
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1456
- if (visitor.visitEditStatement) {
1457
- return visitor.visitEditStatement(this);
1458
- } else {
1459
- return visitor.visitChildren(this);
1460
- }
1461
- }
1462
- }
1463
-
1464
-
1465
- export class CopyStatementContext extends antlr.ParserRuleContext {
1466
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1467
- super(parent, invokingState);
1468
- }
1469
- public OPEN_COPY(): antlr.TerminalNode {
1470
- return this.getToken(plurnkParser.OPEN_COPY, 0)!;
1471
- }
1472
- public COLON(): antlr.TerminalNode {
1473
- return this.getToken(plurnkParser.COLON, 0)!;
1474
- }
1475
- public CLOSE_TAG(): antlr.TerminalNode {
1476
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1477
- }
1478
- public tagOpModifiers(): TagOpModifiersContext | null {
1479
- return this.getRuleContext(0, TagOpModifiersContext);
1480
- }
1481
- public body(): BodyContext | null {
1482
- return this.getRuleContext(0, BodyContext);
1483
- }
1484
- public override get ruleIndex(): number {
1485
- return plurnkParser.RULE_copyStatement;
1486
- }
1487
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1488
- if (visitor.visitCopyStatement) {
1489
- return visitor.visitCopyStatement(this);
1490
- } else {
1491
- return visitor.visitChildren(this);
1492
- }
1493
- }
1494
- }
1495
-
1496
-
1497
- export class MoveStatementContext extends antlr.ParserRuleContext {
1498
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1499
- super(parent, invokingState);
1500
- }
1501
- public OPEN_MOVE(): antlr.TerminalNode {
1502
- return this.getToken(plurnkParser.OPEN_MOVE, 0)!;
1503
- }
1504
- public COLON(): antlr.TerminalNode {
1505
- return this.getToken(plurnkParser.COLON, 0)!;
1506
- }
1507
- public CLOSE_TAG(): antlr.TerminalNode {
1508
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1509
- }
1510
- public tagOpModifiers(): TagOpModifiersContext | null {
1511
- return this.getRuleContext(0, TagOpModifiersContext);
1512
- }
1513
- public body(): BodyContext | null {
1514
- return this.getRuleContext(0, BodyContext);
1515
- }
1516
- public override get ruleIndex(): number {
1517
- return plurnkParser.RULE_moveStatement;
1518
- }
1519
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1520
- if (visitor.visitMoveStatement) {
1521
- return visitor.visitMoveStatement(this);
1522
- } else {
1523
- return visitor.visitChildren(this);
1524
- }
1525
- }
1526
- }
1527
-
1528
-
1529
- export class ShowStatementContext extends antlr.ParserRuleContext {
1530
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1531
- super(parent, invokingState);
1532
- }
1533
- public OPEN_SHOW(): antlr.TerminalNode {
1534
- return this.getToken(plurnkParser.OPEN_SHOW, 0)!;
1535
- }
1536
- public COLON(): antlr.TerminalNode {
1537
- return this.getToken(plurnkParser.COLON, 0)!;
1538
- }
1539
- public CLOSE_TAG(): antlr.TerminalNode {
1540
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1541
- }
1542
- public tagOpModifiers(): TagOpModifiersContext | null {
1543
- return this.getRuleContext(0, TagOpModifiersContext);
1544
- }
1545
- public body(): BodyContext | null {
1546
- return this.getRuleContext(0, BodyContext);
1547
- }
1548
- public override get ruleIndex(): number {
1549
- return plurnkParser.RULE_showStatement;
1550
- }
1551
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1552
- if (visitor.visitShowStatement) {
1553
- return visitor.visitShowStatement(this);
1554
- } else {
1555
- return visitor.visitChildren(this);
1556
- }
1557
- }
1558
- }
1559
-
1560
-
1561
- export class HideStatementContext extends antlr.ParserRuleContext {
1562
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1563
- super(parent, invokingState);
1564
- }
1565
- public OPEN_HIDE(): antlr.TerminalNode {
1566
- return this.getToken(plurnkParser.OPEN_HIDE, 0)!;
1567
- }
1568
- public COLON(): antlr.TerminalNode {
1569
- return this.getToken(plurnkParser.COLON, 0)!;
1570
- }
1571
- public CLOSE_TAG(): antlr.TerminalNode {
1572
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1573
- }
1574
- public tagOpModifiers(): TagOpModifiersContext | null {
1575
- return this.getRuleContext(0, TagOpModifiersContext);
1576
- }
1577
- public body(): BodyContext | null {
1578
- return this.getRuleContext(0, BodyContext);
1579
- }
1580
- public override get ruleIndex(): number {
1581
- return plurnkParser.RULE_hideStatement;
1582
- }
1583
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1584
- if (visitor.visitHideStatement) {
1585
- return visitor.visitHideStatement(this);
1586
- } else {
1587
- return visitor.visitChildren(this);
1588
- }
1589
- }
1590
- }
1591
-
1592
-
1593
- export class SendStatementContext extends antlr.ParserRuleContext {
1594
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1595
- super(parent, invokingState);
1596
- }
1597
- public OPEN_SEND(): antlr.TerminalNode {
1598
- return this.getToken(plurnkParser.OPEN_SEND, 0)!;
1599
- }
1600
- public COLON(): antlr.TerminalNode {
1601
- return this.getToken(plurnkParser.COLON, 0)!;
1602
- }
1603
- public CLOSE_TAG(): antlr.TerminalNode {
1604
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1605
- }
1606
- public sendModifiers(): SendModifiersContext | null {
1607
- return this.getRuleContext(0, SendModifiersContext);
1608
- }
1609
- public body(): BodyContext | null {
1610
- return this.getRuleContext(0, BodyContext);
1611
- }
1612
- public override get ruleIndex(): number {
1613
- return plurnkParser.RULE_sendStatement;
1614
- }
1615
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1616
- if (visitor.visitSendStatement) {
1617
- return visitor.visitSendStatement(this);
1618
- } else {
1619
- return visitor.visitChildren(this);
1620
- }
1621
- }
1622
- }
1623
-
1624
-
1625
- export class ExecStatementContext extends antlr.ParserRuleContext {
1626
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1627
- super(parent, invokingState);
1628
- }
1629
- public OPEN_EXEC(): antlr.TerminalNode {
1630
- return this.getToken(plurnkParser.OPEN_EXEC, 0)!;
1631
- }
1632
- public COLON(): antlr.TerminalNode {
1633
- return this.getToken(plurnkParser.COLON, 0)!;
1634
- }
1635
- public CLOSE_TAG(): antlr.TerminalNode {
1636
- return this.getToken(plurnkParser.CLOSE_TAG, 0)!;
1637
- }
1638
- public execModifiers(): ExecModifiersContext | null {
1639
- return this.getRuleContext(0, ExecModifiersContext);
1640
- }
1641
- public body(): BodyContext | null {
1642
- return this.getRuleContext(0, BodyContext);
1643
- }
1644
- public override get ruleIndex(): number {
1645
- return plurnkParser.RULE_execStatement;
1646
- }
1647
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1648
- if (visitor.visitExecStatement) {
1649
- return visitor.visitExecStatement(this);
1650
- } else {
1651
- return visitor.visitChildren(this);
1652
- }
1653
- }
1654
- }
1655
-
1656
-
1657
- export class TagOpModifiersContext extends antlr.ParserRuleContext {
1658
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1659
- super(parent, invokingState);
1660
- }
1661
- public tagSignal(): TagSignalContext | null {
1662
- return this.getRuleContext(0, TagSignalContext);
1663
- }
1664
- public path(): PathContext | null {
1665
- return this.getRuleContext(0, PathContext);
1666
- }
1667
- public lineMarker(): LineMarkerContext | null {
1668
- return this.getRuleContext(0, LineMarkerContext);
1669
- }
1670
- public override get ruleIndex(): number {
1671
- return plurnkParser.RULE_tagOpModifiers;
1672
- }
1673
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1674
- if (visitor.visitTagOpModifiers) {
1675
- return visitor.visitTagOpModifiers(this);
1676
- } else {
1677
- return visitor.visitChildren(this);
1678
- }
1679
- }
1680
- }
1681
-
1682
-
1683
- export class SendModifiersContext extends antlr.ParserRuleContext {
1684
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1685
- super(parent, invokingState);
1686
- }
1687
- public intSignal(): IntSignalContext | null {
1688
- return this.getRuleContext(0, IntSignalContext);
1689
- }
1690
- public path(): PathContext | null {
1691
- return this.getRuleContext(0, PathContext);
1692
- }
1693
- public override get ruleIndex(): number {
1694
- return plurnkParser.RULE_sendModifiers;
1695
- }
1696
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1697
- if (visitor.visitSendModifiers) {
1698
- return visitor.visitSendModifiers(this);
1699
- } else {
1700
- return visitor.visitChildren(this);
1701
- }
1702
- }
1703
- }
1704
-
1705
-
1706
- export class ExecModifiersContext extends antlr.ParserRuleContext {
1707
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1708
- super(parent, invokingState);
1709
- }
1710
- public identSignal(): IdentSignalContext | null {
1711
- return this.getRuleContext(0, IdentSignalContext);
1712
- }
1713
- public path(): PathContext | null {
1714
- return this.getRuleContext(0, PathContext);
1715
- }
1716
- public override get ruleIndex(): number {
1717
- return plurnkParser.RULE_execModifiers;
1718
- }
1719
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1720
- if (visitor.visitExecModifiers) {
1721
- return visitor.visitExecModifiers(this);
1722
- } else {
1723
- return visitor.visitChildren(this);
1724
- }
1725
- }
1726
- }
1727
-
1728
-
1729
- export class TagSignalContext extends antlr.ParserRuleContext {
1730
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1731
- super(parent, invokingState);
1732
- }
1733
- public LBRACKET(): antlr.TerminalNode {
1734
- return this.getToken(plurnkParser.LBRACKET, 0)!;
1735
- }
1736
- public RBRACKET(): antlr.TerminalNode {
1737
- return this.getToken(plurnkParser.RBRACKET, 0)!;
1738
- }
1739
- public TAG(): antlr.TerminalNode[];
1740
- public TAG(i: number): antlr.TerminalNode | null;
1741
- public TAG(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
1742
- if (i === undefined) {
1743
- return this.getTokens(plurnkParser.TAG);
1744
- } else {
1745
- return this.getToken(plurnkParser.TAG, i);
1746
- }
1747
- }
1748
- public COMMA(): antlr.TerminalNode[];
1749
- public COMMA(i: number): antlr.TerminalNode | null;
1750
- public COMMA(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
1751
- if (i === undefined) {
1752
- return this.getTokens(plurnkParser.COMMA);
1753
- } else {
1754
- return this.getToken(plurnkParser.COMMA, i);
1755
- }
1756
- }
1757
- public override get ruleIndex(): number {
1758
- return plurnkParser.RULE_tagSignal;
1759
- }
1760
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1761
- if (visitor.visitTagSignal) {
1762
- return visitor.visitTagSignal(this);
1763
- } else {
1764
- return visitor.visitChildren(this);
1765
- }
1766
- }
1767
- }
1768
-
1769
-
1770
- export class IntSignalContext extends antlr.ParserRuleContext {
1771
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1772
- super(parent, invokingState);
1773
- }
1774
- public LBRACKET(): antlr.TerminalNode {
1775
- return this.getToken(plurnkParser.LBRACKET, 0)!;
1776
- }
1777
- public RBRACKET(): antlr.TerminalNode {
1778
- return this.getToken(plurnkParser.RBRACKET, 0)!;
1779
- }
1780
- public INT(): antlr.TerminalNode | null {
1781
- return this.getToken(plurnkParser.INT, 0);
1782
- }
1783
- public override get ruleIndex(): number {
1784
- return plurnkParser.RULE_intSignal;
1785
- }
1786
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1787
- if (visitor.visitIntSignal) {
1788
- return visitor.visitIntSignal(this);
1789
- } else {
1790
- return visitor.visitChildren(this);
1791
- }
1792
- }
1793
- }
1794
-
1795
-
1796
- export class IdentSignalContext extends antlr.ParserRuleContext {
1797
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1798
- super(parent, invokingState);
1799
- }
1800
- public LBRACKET(): antlr.TerminalNode {
1801
- return this.getToken(plurnkParser.LBRACKET, 0)!;
1802
- }
1803
- public RBRACKET(): antlr.TerminalNode {
1804
- return this.getToken(plurnkParser.RBRACKET, 0)!;
1805
- }
1806
- public IDENT(): antlr.TerminalNode | null {
1807
- return this.getToken(plurnkParser.IDENT, 0);
1808
- }
1809
- public override get ruleIndex(): number {
1810
- return plurnkParser.RULE_identSignal;
1811
- }
1812
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1813
- if (visitor.visitIdentSignal) {
1814
- return visitor.visitIdentSignal(this);
1815
- } else {
1816
- return visitor.visitChildren(this);
1817
- }
1818
- }
1819
- }
1820
-
1821
-
1822
- export class PathContext extends antlr.ParserRuleContext {
1823
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1824
- super(parent, invokingState);
1825
- }
1826
- public LPAREN(): antlr.TerminalNode {
1827
- return this.getToken(plurnkParser.LPAREN, 0)!;
1828
- }
1829
- public RPAREN(): antlr.TerminalNode {
1830
- return this.getToken(plurnkParser.RPAREN, 0)!;
1831
- }
1832
- public PATH_TEXT(): antlr.TerminalNode | null {
1833
- return this.getToken(plurnkParser.PATH_TEXT, 0);
1834
- }
1835
- public override get ruleIndex(): number {
1836
- return plurnkParser.RULE_path;
1837
- }
1838
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1839
- if (visitor.visitPath) {
1840
- return visitor.visitPath(this);
1841
- } else {
1842
- return visitor.visitChildren(this);
1843
- }
1844
- }
1845
- }
1846
-
1847
-
1848
- export class LineMarkerContext extends antlr.ParserRuleContext {
1849
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1850
- super(parent, invokingState);
1851
- }
1852
- public L_MARKER(): antlr.TerminalNode {
1853
- return this.getToken(plurnkParser.L_MARKER, 0)!;
1854
- }
1855
- public override get ruleIndex(): number {
1856
- return plurnkParser.RULE_lineMarker;
1857
- }
1858
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1859
- if (visitor.visitLineMarker) {
1860
- return visitor.visitLineMarker(this);
1861
- } else {
1862
- return visitor.visitChildren(this);
1863
- }
1864
- }
1865
- }
1866
-
1867
-
1868
- export class BodyContext extends antlr.ParserRuleContext {
1869
- public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) {
1870
- super(parent, invokingState);
1871
- }
1872
- public BODY_TEXT(): antlr.TerminalNode[];
1873
- public BODY_TEXT(i: number): antlr.TerminalNode | null;
1874
- public BODY_TEXT(i?: number): antlr.TerminalNode | null | antlr.TerminalNode[] {
1875
- if (i === undefined) {
1876
- return this.getTokens(plurnkParser.BODY_TEXT);
1877
- } else {
1878
- return this.getToken(plurnkParser.BODY_TEXT, i);
1879
- }
1880
- }
1881
- public override get ruleIndex(): number {
1882
- return plurnkParser.RULE_body;
1883
- }
1884
- public override accept<Result>(visitor: plurnkParserVisitor<Result>): Result | null {
1885
- if (visitor.visitBody) {
1886
- return visitor.visitBody(this);
1887
- } else {
1888
- return visitor.visitChildren(this);
1889
- }
1890
- }
1891
- }