circuitscript 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseVisitor.js +147 -115
- package/dist/cjs/antlr/CircuitScriptParser.js +949 -932
- package/dist/cjs/builtinMethods.js +7 -1
- package/dist/cjs/execute.js +67 -35
- package/dist/cjs/globals.js +7 -1
- package/dist/cjs/helpers.js +11 -8
- package/dist/cjs/layout.js +50 -16
- package/dist/cjs/objects/ExecutionScope.js +3 -0
- package/dist/cjs/objects/Net.js +1 -0
- package/dist/cjs/objects/ParamDefinition.js +3 -0
- package/dist/cjs/objects/types.js +19 -10
- package/dist/cjs/parser.js +3 -1
- package/dist/cjs/render.js +48 -6
- package/dist/cjs/utils.js +16 -1
- package/dist/cjs/visitor.js +69 -52
- package/dist/esm/BaseVisitor.js +113 -81
- package/dist/esm/antlr/CircuitScriptParser.js +943 -926
- package/dist/esm/antlr/CircuitScriptVisitor.js +4 -4
- package/dist/esm/builtinMethods.js +8 -2
- package/dist/esm/execute.js +68 -36
- package/dist/esm/globals.js +6 -0
- package/dist/esm/helpers.js +11 -8
- package/dist/esm/layout.js +53 -17
- package/dist/esm/objects/ExecutionScope.js +3 -0
- package/dist/esm/objects/Net.js +1 -0
- package/dist/esm/objects/ParamDefinition.js +4 -1
- package/dist/esm/objects/types.js +21 -15
- package/dist/esm/parser.js +3 -1
- package/dist/esm/render.js +49 -7
- package/dist/esm/utils.js +13 -0
- package/dist/esm/visitor.js +57 -40
- package/dist/types/BaseVisitor.d.ts +5 -6
- package/dist/types/antlr/CircuitScriptParser.d.ts +58 -58
- package/dist/types/antlr/CircuitScriptVisitor.d.ts +8 -8
- package/dist/types/execute.d.ts +4 -2
- package/dist/types/globals.d.ts +5 -0
- package/dist/types/layout.d.ts +16 -3
- package/dist/types/objects/ExecutionScope.d.ts +15 -3
- package/dist/types/objects/Net.d.ts +1 -0
- package/dist/types/objects/types.d.ts +25 -18
- package/dist/types/parser.d.ts +1 -0
- package/dist/types/utils.d.ts +3 -1
- package/dist/types/visitor.d.ts +3 -2
- package/package.json +1 -1
- /package/dist/libs/{lib.cst → std.cst} +0 -0
- /package/libs/{lib.cst → std.cst} +0 -0
|
@@ -69,29 +69,29 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
69
69
|
static DEDENT = 67;
|
|
70
70
|
static RULE_script = 0;
|
|
71
71
|
static RULE_expression = 1;
|
|
72
|
-
static
|
|
73
|
-
static
|
|
74
|
-
static
|
|
75
|
-
static
|
|
76
|
-
static
|
|
77
|
-
static
|
|
78
|
-
static
|
|
79
|
-
static
|
|
80
|
-
static
|
|
81
|
-
static
|
|
82
|
-
static
|
|
83
|
-
static
|
|
84
|
-
static
|
|
85
|
-
static
|
|
86
|
-
static
|
|
87
|
-
static
|
|
88
|
-
static
|
|
89
|
-
static
|
|
90
|
-
static
|
|
91
|
-
static
|
|
92
|
-
static
|
|
93
|
-
static
|
|
94
|
-
static
|
|
72
|
+
static RULE_flow_expressions = 2;
|
|
73
|
+
static RULE_graph_expressions = 3;
|
|
74
|
+
static RULE_graph_linear_expression = 4;
|
|
75
|
+
static RULE_expressions_block = 5;
|
|
76
|
+
static RULE_path_block = 6;
|
|
77
|
+
static RULE_property_set_expr2 = 7;
|
|
78
|
+
static RULE_assignment_expr2 = 8;
|
|
79
|
+
static RULE_pin_select_expr = 9;
|
|
80
|
+
static RULE_component_modifier_expr = 10;
|
|
81
|
+
static RULE_data_expr_with_assignment = 11;
|
|
82
|
+
static RULE_add_component_expr = 12;
|
|
83
|
+
static RULE_component_select_expr = 13;
|
|
84
|
+
static RULE_pin_select_expr2 = 14;
|
|
85
|
+
static RULE_at_component_expr = 15;
|
|
86
|
+
static RULE_to_component_expr = 16;
|
|
87
|
+
static RULE_at_to_multiple_expr = 17;
|
|
88
|
+
static RULE_at_to_multiple_line_expr = 18;
|
|
89
|
+
static RULE_at_to_multiple_line_expr_to_pin = 19;
|
|
90
|
+
static RULE_at_block = 20;
|
|
91
|
+
static RULE_at_block_expressions = 21;
|
|
92
|
+
static RULE_at_block_pin_expr = 22;
|
|
93
|
+
static RULE_at_block_pin_expression_simple = 23;
|
|
94
|
+
static RULE_at_block_pin_expression_complex = 24;
|
|
95
95
|
static RULE_assignment_expr = 25;
|
|
96
96
|
static RULE_operator_assignment_expr = 26;
|
|
97
97
|
static RULE_keyword_assignment_expr = 27;
|
|
@@ -155,15 +155,15 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
155
155
|
"ALPHA_NUMERIC", "WS", "NEWLINE", "COMMENT", "INDENT", "DEDENT"
|
|
156
156
|
];
|
|
157
157
|
static ruleNames = [
|
|
158
|
-
"script", "expression", "
|
|
159
|
-
"
|
|
158
|
+
"script", "expression", "flow_expressions", "graph_expressions",
|
|
159
|
+
"graph_linear_expression", "expressions_block", "path_block", "property_set_expr2",
|
|
160
|
+
"assignment_expr2", "pin_select_expr", "component_modifier_expr",
|
|
160
161
|
"data_expr_with_assignment", "add_component_expr", "component_select_expr",
|
|
161
162
|
"pin_select_expr2", "at_component_expr", "to_component_expr", "at_to_multiple_expr",
|
|
162
163
|
"at_to_multiple_line_expr", "at_to_multiple_line_expr_to_pin", "at_block",
|
|
163
164
|
"at_block_expressions", "at_block_pin_expr", "at_block_pin_expression_simple",
|
|
164
|
-
"at_block_pin_expression_complex", "
|
|
165
|
-
"
|
|
166
|
-
"parameters", "property_set_expr", "double_dot_property_set_expr",
|
|
165
|
+
"at_block_pin_expression_complex", "assignment_expr", "operator_assignment_expr",
|
|
166
|
+
"keyword_assignment_expr", "parameters", "property_set_expr", "double_dot_property_set_expr",
|
|
167
167
|
"data_expr", "binary_operator", "unary_operator", "value_expr",
|
|
168
168
|
"function_def_expr", "function_expr", "function_args_expr", "atom_expr",
|
|
169
169
|
"trailer_expr", "function_call_expr", "net_namespace_expr", "function_return_expr",
|
|
@@ -294,161 +294,253 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
294
294
|
let localContext = new ExpressionContext(this.context, this.state);
|
|
295
295
|
this.enterRule(localContext, 2, CircuitScriptParser.RULE_expression);
|
|
296
296
|
try {
|
|
297
|
-
this.state =
|
|
297
|
+
this.state = 155;
|
|
298
298
|
this.errorHandler.sync(this);
|
|
299
299
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context)) {
|
|
300
300
|
case 1:
|
|
301
301
|
this.enterOuterAlt(localContext, 1);
|
|
302
302
|
{
|
|
303
303
|
this.state = 143;
|
|
304
|
-
this.
|
|
304
|
+
this.graph_expressions();
|
|
305
305
|
}
|
|
306
306
|
break;
|
|
307
307
|
case 2:
|
|
308
308
|
this.enterOuterAlt(localContext, 2);
|
|
309
309
|
{
|
|
310
310
|
this.state = 144;
|
|
311
|
-
this.
|
|
311
|
+
this.assignment_expr();
|
|
312
312
|
}
|
|
313
313
|
break;
|
|
314
314
|
case 3:
|
|
315
315
|
this.enterOuterAlt(localContext, 3);
|
|
316
316
|
{
|
|
317
317
|
this.state = 145;
|
|
318
|
-
this.
|
|
318
|
+
this.operator_assignment_expr();
|
|
319
319
|
}
|
|
320
320
|
break;
|
|
321
321
|
case 4:
|
|
322
322
|
this.enterOuterAlt(localContext, 4);
|
|
323
323
|
{
|
|
324
324
|
this.state = 146;
|
|
325
|
-
this.
|
|
325
|
+
this.property_set_expr();
|
|
326
326
|
}
|
|
327
327
|
break;
|
|
328
328
|
case 5:
|
|
329
329
|
this.enterOuterAlt(localContext, 5);
|
|
330
330
|
{
|
|
331
331
|
this.state = 147;
|
|
332
|
-
this.
|
|
332
|
+
this.property_set_expr2();
|
|
333
333
|
}
|
|
334
334
|
break;
|
|
335
335
|
case 6:
|
|
336
336
|
this.enterOuterAlt(localContext, 6);
|
|
337
337
|
{
|
|
338
338
|
this.state = 148;
|
|
339
|
-
this.
|
|
339
|
+
this.double_dot_property_set_expr();
|
|
340
340
|
}
|
|
341
341
|
break;
|
|
342
342
|
case 7:
|
|
343
343
|
this.enterOuterAlt(localContext, 7);
|
|
344
344
|
{
|
|
345
345
|
this.state = 149;
|
|
346
|
-
this.
|
|
346
|
+
this.function_def_expr();
|
|
347
347
|
}
|
|
348
348
|
break;
|
|
349
349
|
case 8:
|
|
350
350
|
this.enterOuterAlt(localContext, 8);
|
|
351
351
|
{
|
|
352
352
|
this.state = 150;
|
|
353
|
-
this.
|
|
353
|
+
this.function_call_expr();
|
|
354
354
|
}
|
|
355
355
|
break;
|
|
356
356
|
case 9:
|
|
357
357
|
this.enterOuterAlt(localContext, 9);
|
|
358
358
|
{
|
|
359
359
|
this.state = 151;
|
|
360
|
-
this.
|
|
360
|
+
this.import_expr();
|
|
361
361
|
}
|
|
362
362
|
break;
|
|
363
363
|
case 10:
|
|
364
364
|
this.enterOuterAlt(localContext, 10);
|
|
365
365
|
{
|
|
366
366
|
this.state = 152;
|
|
367
|
-
this.
|
|
367
|
+
this.atom_expr();
|
|
368
368
|
}
|
|
369
369
|
break;
|
|
370
370
|
case 11:
|
|
371
371
|
this.enterOuterAlt(localContext, 11);
|
|
372
372
|
{
|
|
373
373
|
this.state = 153;
|
|
374
|
-
this.
|
|
374
|
+
this.frame_expr();
|
|
375
375
|
}
|
|
376
376
|
break;
|
|
377
377
|
case 12:
|
|
378
378
|
this.enterOuterAlt(localContext, 12);
|
|
379
379
|
{
|
|
380
380
|
this.state = 154;
|
|
381
|
-
this.
|
|
381
|
+
this.flow_expressions();
|
|
382
382
|
}
|
|
383
383
|
break;
|
|
384
|
-
|
|
385
|
-
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
catch (re) {
|
|
387
|
+
if (re instanceof antlr.RecognitionException) {
|
|
388
|
+
this.errorHandler.reportError(this, re);
|
|
389
|
+
this.errorHandler.recover(this, re);
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
throw re;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
finally {
|
|
396
|
+
this.exitRule();
|
|
397
|
+
}
|
|
398
|
+
return localContext;
|
|
399
|
+
}
|
|
400
|
+
flow_expressions() {
|
|
401
|
+
let localContext = new Flow_expressionsContext(this.context, this.state);
|
|
402
|
+
this.enterRule(localContext, 4, CircuitScriptParser.RULE_flow_expressions);
|
|
403
|
+
try {
|
|
404
|
+
this.state = 162;
|
|
405
|
+
this.errorHandler.sync(this);
|
|
406
|
+
switch (this.tokenStream.LA(1)) {
|
|
407
|
+
case CircuitScriptParser.If:
|
|
408
|
+
this.enterOuterAlt(localContext, 1);
|
|
386
409
|
{
|
|
387
|
-
this.state =
|
|
388
|
-
this.
|
|
410
|
+
this.state = 157;
|
|
411
|
+
this.if_expr();
|
|
389
412
|
}
|
|
390
413
|
break;
|
|
391
|
-
case
|
|
392
|
-
this.enterOuterAlt(localContext,
|
|
414
|
+
case CircuitScriptParser.While:
|
|
415
|
+
this.enterOuterAlt(localContext, 2);
|
|
393
416
|
{
|
|
394
|
-
this.state =
|
|
395
|
-
this.
|
|
417
|
+
this.state = 158;
|
|
418
|
+
this.while_expr();
|
|
396
419
|
}
|
|
397
420
|
break;
|
|
398
|
-
case
|
|
399
|
-
this.enterOuterAlt(localContext,
|
|
421
|
+
case CircuitScriptParser.For:
|
|
422
|
+
this.enterOuterAlt(localContext, 3);
|
|
400
423
|
{
|
|
401
|
-
this.state =
|
|
402
|
-
this.
|
|
424
|
+
this.state = 159;
|
|
425
|
+
this.for_expr();
|
|
403
426
|
}
|
|
404
427
|
break;
|
|
405
|
-
case
|
|
406
|
-
this.enterOuterAlt(localContext,
|
|
428
|
+
case CircuitScriptParser.Break:
|
|
429
|
+
this.enterOuterAlt(localContext, 4);
|
|
407
430
|
{
|
|
408
|
-
this.state =
|
|
409
|
-
this.
|
|
431
|
+
this.state = 160;
|
|
432
|
+
this.match(CircuitScriptParser.Break);
|
|
410
433
|
}
|
|
411
434
|
break;
|
|
412
|
-
case
|
|
413
|
-
this.enterOuterAlt(localContext,
|
|
435
|
+
case CircuitScriptParser.Continue:
|
|
436
|
+
this.enterOuterAlt(localContext, 5);
|
|
414
437
|
{
|
|
415
|
-
this.state =
|
|
416
|
-
this.
|
|
438
|
+
this.state = 161;
|
|
439
|
+
this.match(CircuitScriptParser.Continue);
|
|
440
|
+
}
|
|
441
|
+
break;
|
|
442
|
+
default:
|
|
443
|
+
throw new antlr.NoViableAltException(this);
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
catch (re) {
|
|
447
|
+
if (re instanceof antlr.RecognitionException) {
|
|
448
|
+
this.errorHandler.reportError(this, re);
|
|
449
|
+
this.errorHandler.recover(this, re);
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
throw re;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
finally {
|
|
456
|
+
this.exitRule();
|
|
457
|
+
}
|
|
458
|
+
return localContext;
|
|
459
|
+
}
|
|
460
|
+
graph_expressions() {
|
|
461
|
+
let localContext = new Graph_expressionsContext(this.context, this.state);
|
|
462
|
+
this.enterRule(localContext, 6, CircuitScriptParser.RULE_graph_expressions);
|
|
463
|
+
try {
|
|
464
|
+
this.state = 166;
|
|
465
|
+
this.errorHandler.sync(this);
|
|
466
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 6, this.context)) {
|
|
467
|
+
case 1:
|
|
468
|
+
this.enterOuterAlt(localContext, 1);
|
|
469
|
+
{
|
|
470
|
+
this.state = 164;
|
|
471
|
+
this.graph_linear_expression();
|
|
417
472
|
}
|
|
418
473
|
break;
|
|
419
|
-
case
|
|
420
|
-
this.enterOuterAlt(localContext,
|
|
474
|
+
case 2:
|
|
475
|
+
this.enterOuterAlt(localContext, 2);
|
|
421
476
|
{
|
|
422
|
-
this.state =
|
|
423
|
-
this.
|
|
477
|
+
this.state = 165;
|
|
478
|
+
this.path_block();
|
|
424
479
|
}
|
|
425
480
|
break;
|
|
426
|
-
|
|
427
|
-
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
catch (re) {
|
|
484
|
+
if (re instanceof antlr.RecognitionException) {
|
|
485
|
+
this.errorHandler.reportError(this, re);
|
|
486
|
+
this.errorHandler.recover(this, re);
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
throw re;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
finally {
|
|
493
|
+
this.exitRule();
|
|
494
|
+
}
|
|
495
|
+
return localContext;
|
|
496
|
+
}
|
|
497
|
+
graph_linear_expression() {
|
|
498
|
+
let localContext = new Graph_linear_expressionContext(this.context, this.state);
|
|
499
|
+
this.enterRule(localContext, 8, CircuitScriptParser.RULE_graph_linear_expression);
|
|
500
|
+
try {
|
|
501
|
+
this.state = 174;
|
|
502
|
+
this.errorHandler.sync(this);
|
|
503
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 7, this.context)) {
|
|
504
|
+
case 1:
|
|
505
|
+
this.enterOuterAlt(localContext, 1);
|
|
428
506
|
{
|
|
429
|
-
this.state =
|
|
430
|
-
this.
|
|
507
|
+
this.state = 168;
|
|
508
|
+
this.add_component_expr();
|
|
431
509
|
}
|
|
432
510
|
break;
|
|
433
|
-
case
|
|
434
|
-
this.enterOuterAlt(localContext,
|
|
511
|
+
case 2:
|
|
512
|
+
this.enterOuterAlt(localContext, 2);
|
|
435
513
|
{
|
|
436
|
-
this.state =
|
|
437
|
-
this.
|
|
514
|
+
this.state = 169;
|
|
515
|
+
this.to_component_expr();
|
|
438
516
|
}
|
|
439
517
|
break;
|
|
440
|
-
case
|
|
441
|
-
this.enterOuterAlt(localContext,
|
|
518
|
+
case 3:
|
|
519
|
+
this.enterOuterAlt(localContext, 3);
|
|
442
520
|
{
|
|
443
|
-
this.state =
|
|
444
|
-
this.
|
|
521
|
+
this.state = 170;
|
|
522
|
+
this.at_component_expr();
|
|
445
523
|
}
|
|
446
524
|
break;
|
|
447
|
-
case
|
|
448
|
-
this.enterOuterAlt(localContext,
|
|
525
|
+
case 4:
|
|
526
|
+
this.enterOuterAlt(localContext, 4);
|
|
449
527
|
{
|
|
450
|
-
this.state =
|
|
451
|
-
this.
|
|
528
|
+
this.state = 171;
|
|
529
|
+
this.at_block();
|
|
530
|
+
}
|
|
531
|
+
break;
|
|
532
|
+
case 5:
|
|
533
|
+
this.enterOuterAlt(localContext, 5);
|
|
534
|
+
{
|
|
535
|
+
this.state = 172;
|
|
536
|
+
this.wire_expr();
|
|
537
|
+
}
|
|
538
|
+
break;
|
|
539
|
+
case 6:
|
|
540
|
+
this.enterOuterAlt(localContext, 6);
|
|
541
|
+
{
|
|
542
|
+
this.state = 173;
|
|
543
|
+
this.point_expr();
|
|
452
544
|
}
|
|
453
545
|
break;
|
|
454
546
|
}
|
|
@@ -469,26 +561,26 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
469
561
|
}
|
|
470
562
|
expressions_block() {
|
|
471
563
|
let localContext = new Expressions_blockContext(this.context, this.state);
|
|
472
|
-
this.enterRule(localContext,
|
|
564
|
+
this.enterRule(localContext, 10, CircuitScriptParser.RULE_expressions_block);
|
|
473
565
|
let _la;
|
|
474
566
|
try {
|
|
475
567
|
this.enterOuterAlt(localContext, 1);
|
|
476
568
|
{
|
|
477
|
-
this.state =
|
|
569
|
+
this.state = 176;
|
|
478
570
|
this.match(CircuitScriptParser.NEWLINE);
|
|
479
|
-
this.state =
|
|
571
|
+
this.state = 177;
|
|
480
572
|
this.match(CircuitScriptParser.INDENT);
|
|
481
|
-
this.state =
|
|
573
|
+
this.state = 180;
|
|
482
574
|
this.errorHandler.sync(this);
|
|
483
575
|
_la = this.tokenStream.LA(1);
|
|
484
576
|
do {
|
|
485
577
|
{
|
|
486
|
-
this.state =
|
|
578
|
+
this.state = 180;
|
|
487
579
|
this.errorHandler.sync(this);
|
|
488
580
|
switch (this.tokenStream.LA(1)) {
|
|
489
581
|
case CircuitScriptParser.NEWLINE:
|
|
490
582
|
{
|
|
491
|
-
this.state =
|
|
583
|
+
this.state = 178;
|
|
492
584
|
this.match(CircuitScriptParser.NEWLINE);
|
|
493
585
|
}
|
|
494
586
|
break;
|
|
@@ -514,7 +606,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
514
606
|
case CircuitScriptParser.Divide:
|
|
515
607
|
case CircuitScriptParser.ID:
|
|
516
608
|
{
|
|
517
|
-
this.state =
|
|
609
|
+
this.state = 179;
|
|
518
610
|
this.expression();
|
|
519
611
|
}
|
|
520
612
|
break;
|
|
@@ -522,11 +614,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
522
614
|
throw new antlr.NoViableAltException(this);
|
|
523
615
|
}
|
|
524
616
|
}
|
|
525
|
-
this.state =
|
|
617
|
+
this.state = 182;
|
|
526
618
|
this.errorHandler.sync(this);
|
|
527
619
|
_la = this.tokenStream.LA(1);
|
|
528
620
|
} while (((((_la - 4)) & ~0x1F) === 0 && ((1 << (_la - 4)) & 867955761) !== 0) || ((((_la - 42)) & ~0x1F) === 0 && ((1 << (_la - 42)) & 4210693) !== 0));
|
|
529
|
-
this.state =
|
|
621
|
+
this.state = 184;
|
|
530
622
|
this.match(CircuitScriptParser.DEDENT);
|
|
531
623
|
}
|
|
532
624
|
}
|
|
@@ -544,57 +636,14 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
544
636
|
}
|
|
545
637
|
return localContext;
|
|
546
638
|
}
|
|
547
|
-
|
|
548
|
-
let localContext = new
|
|
549
|
-
this.enterRule(localContext,
|
|
550
|
-
try {
|
|
551
|
-
let alternative;
|
|
552
|
-
this.enterOuterAlt(localContext, 1);
|
|
553
|
-
{
|
|
554
|
-
this.state = 178;
|
|
555
|
-
this.errorHandler.sync(this);
|
|
556
|
-
alternative = 1;
|
|
557
|
-
do {
|
|
558
|
-
switch (alternative) {
|
|
559
|
-
case 1:
|
|
560
|
-
{
|
|
561
|
-
{
|
|
562
|
-
this.state = 177;
|
|
563
|
-
this.path_block_inner();
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
break;
|
|
567
|
-
default:
|
|
568
|
-
throw new antlr.NoViableAltException(this);
|
|
569
|
-
}
|
|
570
|
-
this.state = 180;
|
|
571
|
-
this.errorHandler.sync(this);
|
|
572
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream, 7, this.context);
|
|
573
|
-
} while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER);
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
catch (re) {
|
|
577
|
-
if (re instanceof antlr.RecognitionException) {
|
|
578
|
-
this.errorHandler.reportError(this, re);
|
|
579
|
-
this.errorHandler.recover(this, re);
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
throw re;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
finally {
|
|
586
|
-
this.exitRule();
|
|
587
|
-
}
|
|
588
|
-
return localContext;
|
|
589
|
-
}
|
|
590
|
-
path_block_inner() {
|
|
591
|
-
let localContext = new Path_block_innerContext(this.context, this.state);
|
|
592
|
-
this.enterRule(localContext, 8, CircuitScriptParser.RULE_path_block_inner);
|
|
639
|
+
path_block() {
|
|
640
|
+
let localContext = new Path_blockContext(this.context, this.state);
|
|
641
|
+
this.enterRule(localContext, 12, CircuitScriptParser.RULE_path_block);
|
|
593
642
|
let _la;
|
|
594
643
|
try {
|
|
595
644
|
this.enterOuterAlt(localContext, 1);
|
|
596
645
|
{
|
|
597
|
-
this.state =
|
|
646
|
+
this.state = 186;
|
|
598
647
|
_la = this.tokenStream.LA(1);
|
|
599
648
|
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & 3670528) !== 0))) {
|
|
600
649
|
this.errorHandler.recoverInline(this);
|
|
@@ -603,9 +652,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
603
652
|
this.errorHandler.reportMatch(this);
|
|
604
653
|
this.consume();
|
|
605
654
|
}
|
|
606
|
-
this.state =
|
|
655
|
+
this.state = 187;
|
|
607
656
|
this.match(CircuitScriptParser.T__0);
|
|
608
|
-
this.state =
|
|
657
|
+
this.state = 188;
|
|
609
658
|
this.expressions_block();
|
|
610
659
|
}
|
|
611
660
|
}
|
|
@@ -625,37 +674,37 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
625
674
|
}
|
|
626
675
|
property_set_expr2() {
|
|
627
676
|
let localContext = new Property_set_expr2Context(this.context, this.state);
|
|
628
|
-
this.enterRule(localContext,
|
|
677
|
+
this.enterRule(localContext, 14, CircuitScriptParser.RULE_property_set_expr2);
|
|
629
678
|
let _la;
|
|
630
679
|
try {
|
|
631
680
|
this.enterOuterAlt(localContext, 1);
|
|
632
681
|
{
|
|
633
|
-
this.state =
|
|
682
|
+
this.state = 190;
|
|
634
683
|
this.atom_expr();
|
|
635
|
-
this.state =
|
|
684
|
+
this.state = 191;
|
|
636
685
|
this.match(CircuitScriptParser.T__0);
|
|
637
|
-
this.state =
|
|
686
|
+
this.state = 192;
|
|
638
687
|
this.match(CircuitScriptParser.NEWLINE);
|
|
639
|
-
this.state =
|
|
688
|
+
this.state = 193;
|
|
640
689
|
this.match(CircuitScriptParser.INDENT);
|
|
641
|
-
this.state =
|
|
690
|
+
this.state = 196;
|
|
642
691
|
this.errorHandler.sync(this);
|
|
643
692
|
_la = this.tokenStream.LA(1);
|
|
644
693
|
do {
|
|
645
694
|
{
|
|
646
|
-
this.state =
|
|
695
|
+
this.state = 196;
|
|
647
696
|
this.errorHandler.sync(this);
|
|
648
697
|
switch (this.tokenStream.LA(1)) {
|
|
649
698
|
case CircuitScriptParser.NEWLINE:
|
|
650
699
|
{
|
|
651
|
-
this.state =
|
|
700
|
+
this.state = 194;
|
|
652
701
|
this.match(CircuitScriptParser.NEWLINE);
|
|
653
702
|
}
|
|
654
703
|
break;
|
|
655
704
|
case CircuitScriptParser.ID:
|
|
656
705
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
657
706
|
{
|
|
658
|
-
this.state =
|
|
707
|
+
this.state = 195;
|
|
659
708
|
this.assignment_expr2();
|
|
660
709
|
}
|
|
661
710
|
break;
|
|
@@ -663,11 +712,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
663
712
|
throw new antlr.NoViableAltException(this);
|
|
664
713
|
}
|
|
665
714
|
}
|
|
666
|
-
this.state =
|
|
715
|
+
this.state = 198;
|
|
667
716
|
this.errorHandler.sync(this);
|
|
668
717
|
_la = this.tokenStream.LA(1);
|
|
669
718
|
} while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 259) !== 0));
|
|
670
|
-
this.state =
|
|
719
|
+
this.state = 200;
|
|
671
720
|
this.match(CircuitScriptParser.DEDENT);
|
|
672
721
|
}
|
|
673
722
|
}
|
|
@@ -687,12 +736,12 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
687
736
|
}
|
|
688
737
|
assignment_expr2() {
|
|
689
738
|
let localContext = new Assignment_expr2Context(this.context, this.state);
|
|
690
|
-
this.enterRule(localContext,
|
|
739
|
+
this.enterRule(localContext, 16, CircuitScriptParser.RULE_assignment_expr2);
|
|
691
740
|
let _la;
|
|
692
741
|
try {
|
|
693
742
|
this.enterOuterAlt(localContext, 1);
|
|
694
743
|
{
|
|
695
|
-
this.state =
|
|
744
|
+
this.state = 202;
|
|
696
745
|
_la = this.tokenStream.LA(1);
|
|
697
746
|
if (!(_la === 56 || _la === 57)) {
|
|
698
747
|
this.errorHandler.recoverInline(this);
|
|
@@ -701,9 +750,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
701
750
|
this.errorHandler.reportMatch(this);
|
|
702
751
|
this.consume();
|
|
703
752
|
}
|
|
704
|
-
this.state =
|
|
753
|
+
this.state = 203;
|
|
705
754
|
this.match(CircuitScriptParser.T__0);
|
|
706
|
-
this.state =
|
|
755
|
+
this.state = 204;
|
|
707
756
|
this.value_expr();
|
|
708
757
|
}
|
|
709
758
|
}
|
|
@@ -723,13 +772,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
723
772
|
}
|
|
724
773
|
pin_select_expr() {
|
|
725
774
|
let localContext = new Pin_select_exprContext(this.context, this.state);
|
|
726
|
-
this.enterRule(localContext,
|
|
775
|
+
this.enterRule(localContext, 18, CircuitScriptParser.RULE_pin_select_expr);
|
|
727
776
|
try {
|
|
728
777
|
this.enterOuterAlt(localContext, 1);
|
|
729
778
|
{
|
|
730
|
-
this.state =
|
|
779
|
+
this.state = 206;
|
|
731
780
|
this.match(CircuitScriptParser.Pin);
|
|
732
|
-
this.state =
|
|
781
|
+
this.state = 207;
|
|
733
782
|
this.data_expr(0);
|
|
734
783
|
}
|
|
735
784
|
}
|
|
@@ -749,15 +798,15 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
749
798
|
}
|
|
750
799
|
component_modifier_expr() {
|
|
751
800
|
let localContext = new Component_modifier_exprContext(this.context, this.state);
|
|
752
|
-
this.enterRule(localContext,
|
|
801
|
+
this.enterRule(localContext, 20, CircuitScriptParser.RULE_component_modifier_expr);
|
|
753
802
|
try {
|
|
754
803
|
this.enterOuterAlt(localContext, 1);
|
|
755
804
|
{
|
|
756
|
-
this.state =
|
|
805
|
+
this.state = 209;
|
|
757
806
|
this.match(CircuitScriptParser.ID);
|
|
758
|
-
this.state =
|
|
807
|
+
this.state = 210;
|
|
759
808
|
this.match(CircuitScriptParser.T__0);
|
|
760
|
-
this.state =
|
|
809
|
+
this.state = 213;
|
|
761
810
|
this.errorHandler.sync(this);
|
|
762
811
|
switch (this.tokenStream.LA(1)) {
|
|
763
812
|
case CircuitScriptParser.Minus:
|
|
@@ -768,13 +817,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
768
817
|
case CircuitScriptParser.STRING_VALUE:
|
|
769
818
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
770
819
|
{
|
|
771
|
-
this.state =
|
|
820
|
+
this.state = 211;
|
|
772
821
|
this.value_expr();
|
|
773
822
|
}
|
|
774
823
|
break;
|
|
775
824
|
case CircuitScriptParser.ID:
|
|
776
825
|
{
|
|
777
|
-
this.state =
|
|
826
|
+
this.state = 212;
|
|
778
827
|
this.match(CircuitScriptParser.ID);
|
|
779
828
|
}
|
|
780
829
|
break;
|
|
@@ -799,50 +848,50 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
799
848
|
}
|
|
800
849
|
data_expr_with_assignment() {
|
|
801
850
|
let localContext = new Data_expr_with_assignmentContext(this.context, this.state);
|
|
802
|
-
this.enterRule(localContext,
|
|
851
|
+
this.enterRule(localContext, 22, CircuitScriptParser.RULE_data_expr_with_assignment);
|
|
803
852
|
let _la;
|
|
804
853
|
try {
|
|
805
854
|
let alternative;
|
|
806
855
|
this.enterOuterAlt(localContext, 1);
|
|
807
856
|
{
|
|
808
|
-
this.state =
|
|
857
|
+
this.state = 217;
|
|
809
858
|
this.errorHandler.sync(this);
|
|
810
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
859
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 13, this.context)) {
|
|
811
860
|
case 1:
|
|
812
861
|
{
|
|
813
|
-
this.state =
|
|
862
|
+
this.state = 215;
|
|
814
863
|
this.data_expr(0);
|
|
815
864
|
}
|
|
816
865
|
break;
|
|
817
866
|
case 2:
|
|
818
867
|
{
|
|
819
|
-
this.state =
|
|
868
|
+
this.state = 216;
|
|
820
869
|
this.assignment_expr();
|
|
821
870
|
}
|
|
822
871
|
break;
|
|
823
872
|
}
|
|
824
|
-
this.state =
|
|
873
|
+
this.state = 222;
|
|
825
874
|
this.errorHandler.sync(this);
|
|
826
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
875
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 14, this.context);
|
|
827
876
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
828
877
|
if (alternative === 1) {
|
|
829
878
|
{
|
|
830
879
|
{
|
|
831
|
-
this.state =
|
|
880
|
+
this.state = 219;
|
|
832
881
|
this.component_modifier_expr();
|
|
833
882
|
}
|
|
834
883
|
}
|
|
835
884
|
}
|
|
836
|
-
this.state =
|
|
885
|
+
this.state = 224;
|
|
837
886
|
this.errorHandler.sync(this);
|
|
838
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
887
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 14, this.context);
|
|
839
888
|
}
|
|
840
|
-
this.state =
|
|
889
|
+
this.state = 226;
|
|
841
890
|
this.errorHandler.sync(this);
|
|
842
891
|
_la = this.tokenStream.LA(1);
|
|
843
892
|
if (_la === 15) {
|
|
844
893
|
{
|
|
845
|
-
this.state =
|
|
894
|
+
this.state = 225;
|
|
846
895
|
this.pin_select_expr();
|
|
847
896
|
}
|
|
848
897
|
}
|
|
@@ -864,13 +913,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
864
913
|
}
|
|
865
914
|
add_component_expr() {
|
|
866
915
|
let localContext = new Add_component_exprContext(this.context, this.state);
|
|
867
|
-
this.enterRule(localContext,
|
|
916
|
+
this.enterRule(localContext, 24, CircuitScriptParser.RULE_add_component_expr);
|
|
868
917
|
try {
|
|
869
918
|
this.enterOuterAlt(localContext, 1);
|
|
870
919
|
{
|
|
871
|
-
this.state =
|
|
920
|
+
this.state = 228;
|
|
872
921
|
this.match(CircuitScriptParser.Add);
|
|
873
|
-
this.state =
|
|
922
|
+
this.state = 229;
|
|
874
923
|
this.data_expr_with_assignment();
|
|
875
924
|
}
|
|
876
925
|
}
|
|
@@ -890,9 +939,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
890
939
|
}
|
|
891
940
|
component_select_expr() {
|
|
892
941
|
let localContext = new Component_select_exprContext(this.context, this.state);
|
|
893
|
-
this.enterRule(localContext,
|
|
942
|
+
this.enterRule(localContext, 26, CircuitScriptParser.RULE_component_select_expr);
|
|
894
943
|
try {
|
|
895
|
-
this.state =
|
|
944
|
+
this.state = 234;
|
|
896
945
|
this.errorHandler.sync(this);
|
|
897
946
|
switch (this.tokenStream.LA(1)) {
|
|
898
947
|
case CircuitScriptParser.T__5:
|
|
@@ -911,21 +960,21 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
911
960
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
912
961
|
this.enterOuterAlt(localContext, 1);
|
|
913
962
|
{
|
|
914
|
-
this.state =
|
|
963
|
+
this.state = 231;
|
|
915
964
|
this.data_expr_with_assignment();
|
|
916
965
|
}
|
|
917
966
|
break;
|
|
918
967
|
case CircuitScriptParser.Pin:
|
|
919
968
|
this.enterOuterAlt(localContext, 2);
|
|
920
969
|
{
|
|
921
|
-
this.state =
|
|
970
|
+
this.state = 232;
|
|
922
971
|
this.pin_select_expr();
|
|
923
972
|
}
|
|
924
973
|
break;
|
|
925
974
|
case CircuitScriptParser.Point:
|
|
926
975
|
this.enterOuterAlt(localContext, 3);
|
|
927
976
|
{
|
|
928
|
-
this.state =
|
|
977
|
+
this.state = 233;
|
|
929
978
|
this.match(CircuitScriptParser.Point);
|
|
930
979
|
}
|
|
931
980
|
break;
|
|
@@ -949,12 +998,12 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
949
998
|
}
|
|
950
999
|
pin_select_expr2() {
|
|
951
1000
|
let localContext = new Pin_select_expr2Context(this.context, this.state);
|
|
952
|
-
this.enterRule(localContext,
|
|
1001
|
+
this.enterRule(localContext, 28, CircuitScriptParser.RULE_pin_select_expr2);
|
|
953
1002
|
let _la;
|
|
954
1003
|
try {
|
|
955
1004
|
this.enterOuterAlt(localContext, 1);
|
|
956
1005
|
{
|
|
957
|
-
this.state =
|
|
1006
|
+
this.state = 236;
|
|
958
1007
|
_la = this.tokenStream.LA(1);
|
|
959
1008
|
if (!(_la === 57 || _la === 60)) {
|
|
960
1009
|
this.errorHandler.recoverInline(this);
|
|
@@ -981,13 +1030,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
981
1030
|
}
|
|
982
1031
|
at_component_expr() {
|
|
983
1032
|
let localContext = new At_component_exprContext(this.context, this.state);
|
|
984
|
-
this.enterRule(localContext,
|
|
1033
|
+
this.enterRule(localContext, 30, CircuitScriptParser.RULE_at_component_expr);
|
|
985
1034
|
try {
|
|
986
1035
|
this.enterOuterAlt(localContext, 1);
|
|
987
1036
|
{
|
|
988
|
-
this.state =
|
|
1037
|
+
this.state = 238;
|
|
989
1038
|
this.match(CircuitScriptParser.At);
|
|
990
|
-
this.state =
|
|
1039
|
+
this.state = 239;
|
|
991
1040
|
this.component_select_expr();
|
|
992
1041
|
}
|
|
993
1042
|
}
|
|
@@ -1007,29 +1056,29 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1007
1056
|
}
|
|
1008
1057
|
to_component_expr() {
|
|
1009
1058
|
let localContext = new To_component_exprContext(this.context, this.state);
|
|
1010
|
-
this.enterRule(localContext,
|
|
1059
|
+
this.enterRule(localContext, 32, CircuitScriptParser.RULE_to_component_expr);
|
|
1011
1060
|
let _la;
|
|
1012
1061
|
try {
|
|
1013
1062
|
this.enterOuterAlt(localContext, 1);
|
|
1014
1063
|
{
|
|
1015
|
-
this.state =
|
|
1064
|
+
this.state = 241;
|
|
1016
1065
|
this.match(CircuitScriptParser.To);
|
|
1017
1066
|
{
|
|
1018
|
-
this.state =
|
|
1067
|
+
this.state = 242;
|
|
1019
1068
|
this.component_select_expr();
|
|
1020
|
-
this.state =
|
|
1069
|
+
this.state = 247;
|
|
1021
1070
|
this.errorHandler.sync(this);
|
|
1022
1071
|
_la = this.tokenStream.LA(1);
|
|
1023
1072
|
while (_la === 2) {
|
|
1024
1073
|
{
|
|
1025
1074
|
{
|
|
1026
|
-
this.state =
|
|
1075
|
+
this.state = 243;
|
|
1027
1076
|
this.match(CircuitScriptParser.T__1);
|
|
1028
|
-
this.state =
|
|
1077
|
+
this.state = 244;
|
|
1029
1078
|
this.component_select_expr();
|
|
1030
1079
|
}
|
|
1031
1080
|
}
|
|
1032
|
-
this.state =
|
|
1081
|
+
this.state = 249;
|
|
1033
1082
|
this.errorHandler.sync(this);
|
|
1034
1083
|
_la = this.tokenStream.LA(1);
|
|
1035
1084
|
}
|
|
@@ -1052,59 +1101,59 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1052
1101
|
}
|
|
1053
1102
|
at_to_multiple_expr() {
|
|
1054
1103
|
let localContext = new At_to_multiple_exprContext(this.context, this.state);
|
|
1055
|
-
this.enterRule(localContext,
|
|
1104
|
+
this.enterRule(localContext, 34, CircuitScriptParser.RULE_at_to_multiple_expr);
|
|
1056
1105
|
let _la;
|
|
1057
1106
|
try {
|
|
1058
1107
|
this.enterOuterAlt(localContext, 1);
|
|
1059
1108
|
{
|
|
1060
|
-
this.state =
|
|
1109
|
+
this.state = 250;
|
|
1061
1110
|
this.match(CircuitScriptParser.At);
|
|
1062
|
-
this.state =
|
|
1111
|
+
this.state = 251;
|
|
1063
1112
|
this.component_select_expr();
|
|
1064
|
-
this.state =
|
|
1113
|
+
this.state = 252;
|
|
1065
1114
|
this.match(CircuitScriptParser.To);
|
|
1066
|
-
this.state =
|
|
1115
|
+
this.state = 253;
|
|
1067
1116
|
this.component_select_expr();
|
|
1068
|
-
this.state =
|
|
1117
|
+
this.state = 258;
|
|
1069
1118
|
this.errorHandler.sync(this);
|
|
1070
1119
|
_la = this.tokenStream.LA(1);
|
|
1071
1120
|
while (_la === 2) {
|
|
1072
1121
|
{
|
|
1073
1122
|
{
|
|
1074
|
-
this.state =
|
|
1123
|
+
this.state = 254;
|
|
1075
1124
|
this.match(CircuitScriptParser.T__1);
|
|
1076
|
-
this.state =
|
|
1125
|
+
this.state = 255;
|
|
1077
1126
|
this.component_select_expr();
|
|
1078
1127
|
}
|
|
1079
1128
|
}
|
|
1080
|
-
this.state =
|
|
1129
|
+
this.state = 260;
|
|
1081
1130
|
this.errorHandler.sync(this);
|
|
1082
1131
|
_la = this.tokenStream.LA(1);
|
|
1083
1132
|
}
|
|
1084
|
-
this.state =
|
|
1133
|
+
this.state = 261;
|
|
1085
1134
|
this.match(CircuitScriptParser.T__0);
|
|
1086
|
-
this.state =
|
|
1135
|
+
this.state = 262;
|
|
1087
1136
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1088
|
-
this.state =
|
|
1137
|
+
this.state = 263;
|
|
1089
1138
|
this.match(CircuitScriptParser.INDENT);
|
|
1090
|
-
this.state =
|
|
1139
|
+
this.state = 266;
|
|
1091
1140
|
this.errorHandler.sync(this);
|
|
1092
1141
|
_la = this.tokenStream.LA(1);
|
|
1093
1142
|
do {
|
|
1094
1143
|
{
|
|
1095
|
-
this.state =
|
|
1144
|
+
this.state = 266;
|
|
1096
1145
|
this.errorHandler.sync(this);
|
|
1097
1146
|
switch (this.tokenStream.LA(1)) {
|
|
1098
1147
|
case CircuitScriptParser.NEWLINE:
|
|
1099
1148
|
{
|
|
1100
|
-
this.state =
|
|
1149
|
+
this.state = 264;
|
|
1101
1150
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1102
1151
|
}
|
|
1103
1152
|
break;
|
|
1104
1153
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
1105
1154
|
case CircuitScriptParser.STRING_VALUE:
|
|
1106
1155
|
{
|
|
1107
|
-
this.state =
|
|
1156
|
+
this.state = 265;
|
|
1108
1157
|
this.at_to_multiple_line_expr();
|
|
1109
1158
|
}
|
|
1110
1159
|
break;
|
|
@@ -1112,11 +1161,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1112
1161
|
throw new antlr.NoViableAltException(this);
|
|
1113
1162
|
}
|
|
1114
1163
|
}
|
|
1115
|
-
this.state =
|
|
1164
|
+
this.state = 268;
|
|
1116
1165
|
this.errorHandler.sync(this);
|
|
1117
1166
|
_la = this.tokenStream.LA(1);
|
|
1118
1167
|
} while (((((_la - 57)) & ~0x1F) === 0 && ((1 << (_la - 57)) & 137) !== 0));
|
|
1119
|
-
this.state =
|
|
1168
|
+
this.state = 270;
|
|
1120
1169
|
this.match(CircuitScriptParser.DEDENT);
|
|
1121
1170
|
}
|
|
1122
1171
|
}
|
|
@@ -1136,30 +1185,30 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1136
1185
|
}
|
|
1137
1186
|
at_to_multiple_line_expr() {
|
|
1138
1187
|
let localContext = new At_to_multiple_line_exprContext(this.context, this.state);
|
|
1139
|
-
this.enterRule(localContext,
|
|
1188
|
+
this.enterRule(localContext, 36, CircuitScriptParser.RULE_at_to_multiple_line_expr);
|
|
1140
1189
|
let _la;
|
|
1141
1190
|
try {
|
|
1142
1191
|
this.enterOuterAlt(localContext, 1);
|
|
1143
1192
|
{
|
|
1144
|
-
this.state =
|
|
1193
|
+
this.state = 272;
|
|
1145
1194
|
this.pin_select_expr2();
|
|
1146
|
-
this.state =
|
|
1195
|
+
this.state = 273;
|
|
1147
1196
|
this.match(CircuitScriptParser.T__0);
|
|
1148
|
-
this.state =
|
|
1197
|
+
this.state = 274;
|
|
1149
1198
|
this.at_to_multiple_line_expr_to_pin();
|
|
1150
|
-
this.state =
|
|
1199
|
+
this.state = 279;
|
|
1151
1200
|
this.errorHandler.sync(this);
|
|
1152
1201
|
_la = this.tokenStream.LA(1);
|
|
1153
1202
|
while (_la === 2) {
|
|
1154
1203
|
{
|
|
1155
1204
|
{
|
|
1156
|
-
this.state =
|
|
1205
|
+
this.state = 275;
|
|
1157
1206
|
this.match(CircuitScriptParser.T__1);
|
|
1158
|
-
this.state =
|
|
1207
|
+
this.state = 276;
|
|
1159
1208
|
this.at_to_multiple_line_expr_to_pin();
|
|
1160
1209
|
}
|
|
1161
1210
|
}
|
|
1162
|
-
this.state =
|
|
1211
|
+
this.state = 281;
|
|
1163
1212
|
this.errorHandler.sync(this);
|
|
1164
1213
|
_la = this.tokenStream.LA(1);
|
|
1165
1214
|
}
|
|
@@ -1181,12 +1230,12 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1181
1230
|
}
|
|
1182
1231
|
at_to_multiple_line_expr_to_pin() {
|
|
1183
1232
|
let localContext = new At_to_multiple_line_expr_to_pinContext(this.context, this.state);
|
|
1184
|
-
this.enterRule(localContext,
|
|
1233
|
+
this.enterRule(localContext, 38, CircuitScriptParser.RULE_at_to_multiple_line_expr_to_pin);
|
|
1185
1234
|
let _la;
|
|
1186
1235
|
try {
|
|
1187
1236
|
this.enterOuterAlt(localContext, 1);
|
|
1188
1237
|
{
|
|
1189
|
-
this.state =
|
|
1238
|
+
this.state = 282;
|
|
1190
1239
|
_la = this.tokenStream.LA(1);
|
|
1191
1240
|
if (!(_la === 54 || _la === 57)) {
|
|
1192
1241
|
this.errorHandler.recoverInline(this);
|
|
@@ -1213,30 +1262,30 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1213
1262
|
}
|
|
1214
1263
|
at_block() {
|
|
1215
1264
|
let localContext = new At_blockContext(this.context, this.state);
|
|
1216
|
-
this.enterRule(localContext,
|
|
1265
|
+
this.enterRule(localContext, 40, CircuitScriptParser.RULE_at_block);
|
|
1217
1266
|
let _la;
|
|
1218
1267
|
try {
|
|
1219
1268
|
this.enterOuterAlt(localContext, 1);
|
|
1220
1269
|
{
|
|
1221
|
-
this.state =
|
|
1270
|
+
this.state = 284;
|
|
1222
1271
|
this.at_component_expr();
|
|
1223
|
-
this.state =
|
|
1272
|
+
this.state = 285;
|
|
1224
1273
|
this.match(CircuitScriptParser.T__0);
|
|
1225
|
-
this.state =
|
|
1274
|
+
this.state = 286;
|
|
1226
1275
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1227
|
-
this.state =
|
|
1276
|
+
this.state = 287;
|
|
1228
1277
|
this.match(CircuitScriptParser.INDENT);
|
|
1229
|
-
this.state =
|
|
1278
|
+
this.state = 290;
|
|
1230
1279
|
this.errorHandler.sync(this);
|
|
1231
1280
|
_la = this.tokenStream.LA(1);
|
|
1232
1281
|
do {
|
|
1233
1282
|
{
|
|
1234
|
-
this.state =
|
|
1283
|
+
this.state = 290;
|
|
1235
1284
|
this.errorHandler.sync(this);
|
|
1236
1285
|
switch (this.tokenStream.LA(1)) {
|
|
1237
1286
|
case CircuitScriptParser.NEWLINE:
|
|
1238
1287
|
{
|
|
1239
|
-
this.state =
|
|
1288
|
+
this.state = 288;
|
|
1240
1289
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1241
1290
|
}
|
|
1242
1291
|
break;
|
|
@@ -1264,7 +1313,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1264
1313
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
1265
1314
|
case CircuitScriptParser.STRING_VALUE:
|
|
1266
1315
|
{
|
|
1267
|
-
this.state =
|
|
1316
|
+
this.state = 289;
|
|
1268
1317
|
this.at_block_expressions();
|
|
1269
1318
|
}
|
|
1270
1319
|
break;
|
|
@@ -1272,11 +1321,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1272
1321
|
throw new antlr.NoViableAltException(this);
|
|
1273
1322
|
}
|
|
1274
1323
|
}
|
|
1275
|
-
this.state =
|
|
1324
|
+
this.state = 292;
|
|
1276
1325
|
this.errorHandler.sync(this);
|
|
1277
1326
|
_la = this.tokenStream.LA(1);
|
|
1278
1327
|
} while (((((_la - 4)) & ~0x1F) === 0 && ((1 << (_la - 4)) & 867955761) !== 0) || ((((_la - 42)) & ~0x1F) === 0 && ((1 << (_la - 42)) & 4505605) !== 0));
|
|
1279
|
-
this.state =
|
|
1328
|
+
this.state = 294;
|
|
1280
1329
|
this.match(CircuitScriptParser.DEDENT);
|
|
1281
1330
|
}
|
|
1282
1331
|
}
|
|
@@ -1296,9 +1345,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1296
1345
|
}
|
|
1297
1346
|
at_block_expressions() {
|
|
1298
1347
|
let localContext = new At_block_expressionsContext(this.context, this.state);
|
|
1299
|
-
this.enterRule(localContext,
|
|
1348
|
+
this.enterRule(localContext, 42, CircuitScriptParser.RULE_at_block_expressions);
|
|
1300
1349
|
try {
|
|
1301
|
-
this.state =
|
|
1350
|
+
this.state = 298;
|
|
1302
1351
|
this.errorHandler.sync(this);
|
|
1303
1352
|
switch (this.tokenStream.LA(1)) {
|
|
1304
1353
|
case CircuitScriptParser.T__3:
|
|
@@ -1324,7 +1373,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1324
1373
|
case CircuitScriptParser.ID:
|
|
1325
1374
|
this.enterOuterAlt(localContext, 1);
|
|
1326
1375
|
{
|
|
1327
|
-
this.state =
|
|
1376
|
+
this.state = 296;
|
|
1328
1377
|
this.expression();
|
|
1329
1378
|
}
|
|
1330
1379
|
break;
|
|
@@ -1332,7 +1381,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1332
1381
|
case CircuitScriptParser.STRING_VALUE:
|
|
1333
1382
|
this.enterOuterAlt(localContext, 2);
|
|
1334
1383
|
{
|
|
1335
|
-
this.state =
|
|
1384
|
+
this.state = 297;
|
|
1336
1385
|
this.at_block_pin_expr();
|
|
1337
1386
|
}
|
|
1338
1387
|
break;
|
|
@@ -1356,15 +1405,15 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1356
1405
|
}
|
|
1357
1406
|
at_block_pin_expr() {
|
|
1358
1407
|
let localContext = new At_block_pin_exprContext(this.context, this.state);
|
|
1359
|
-
this.enterRule(localContext,
|
|
1408
|
+
this.enterRule(localContext, 44, CircuitScriptParser.RULE_at_block_pin_expr);
|
|
1360
1409
|
try {
|
|
1361
1410
|
this.enterOuterAlt(localContext, 1);
|
|
1362
1411
|
{
|
|
1363
|
-
this.state =
|
|
1412
|
+
this.state = 300;
|
|
1364
1413
|
this.pin_select_expr2();
|
|
1365
|
-
this.state =
|
|
1414
|
+
this.state = 301;
|
|
1366
1415
|
this.match(CircuitScriptParser.T__0);
|
|
1367
|
-
this.state =
|
|
1416
|
+
this.state = 304;
|
|
1368
1417
|
this.errorHandler.sync(this);
|
|
1369
1418
|
switch (this.tokenStream.LA(1)) {
|
|
1370
1419
|
case CircuitScriptParser.T__3:
|
|
@@ -1390,13 +1439,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1390
1439
|
case CircuitScriptParser.NOT_CONNECTED:
|
|
1391
1440
|
case CircuitScriptParser.ID:
|
|
1392
1441
|
{
|
|
1393
|
-
this.state =
|
|
1442
|
+
this.state = 302;
|
|
1394
1443
|
this.at_block_pin_expression_simple();
|
|
1395
1444
|
}
|
|
1396
1445
|
break;
|
|
1397
1446
|
case CircuitScriptParser.NEWLINE:
|
|
1398
1447
|
{
|
|
1399
|
-
this.state =
|
|
1448
|
+
this.state = 303;
|
|
1400
1449
|
this.at_block_pin_expression_complex();
|
|
1401
1450
|
}
|
|
1402
1451
|
break;
|
|
@@ -1421,11 +1470,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1421
1470
|
}
|
|
1422
1471
|
at_block_pin_expression_simple() {
|
|
1423
1472
|
let localContext = new At_block_pin_expression_simpleContext(this.context, this.state);
|
|
1424
|
-
this.enterRule(localContext,
|
|
1473
|
+
this.enterRule(localContext, 46, CircuitScriptParser.RULE_at_block_pin_expression_simple);
|
|
1425
1474
|
try {
|
|
1426
1475
|
this.enterOuterAlt(localContext, 1);
|
|
1427
1476
|
{
|
|
1428
|
-
this.state =
|
|
1477
|
+
this.state = 308;
|
|
1429
1478
|
this.errorHandler.sync(this);
|
|
1430
1479
|
switch (this.tokenStream.LA(1)) {
|
|
1431
1480
|
case CircuitScriptParser.T__3:
|
|
@@ -1450,13 +1499,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1450
1499
|
case CircuitScriptParser.Divide:
|
|
1451
1500
|
case CircuitScriptParser.ID:
|
|
1452
1501
|
{
|
|
1453
|
-
this.state =
|
|
1502
|
+
this.state = 306;
|
|
1454
1503
|
this.expression();
|
|
1455
1504
|
}
|
|
1456
1505
|
break;
|
|
1457
1506
|
case CircuitScriptParser.NOT_CONNECTED:
|
|
1458
1507
|
{
|
|
1459
|
-
this.state =
|
|
1508
|
+
this.state = 307;
|
|
1460
1509
|
this.match(CircuitScriptParser.NOT_CONNECTED);
|
|
1461
1510
|
}
|
|
1462
1511
|
break;
|
|
@@ -1481,60 +1530,12 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1481
1530
|
}
|
|
1482
1531
|
at_block_pin_expression_complex() {
|
|
1483
1532
|
let localContext = new At_block_pin_expression_complexContext(this.context, this.state);
|
|
1484
|
-
this.enterRule(localContext,
|
|
1485
|
-
try {
|
|
1486
|
-
this.enterOuterAlt(localContext, 1);
|
|
1487
|
-
{
|
|
1488
|
-
this.state = 306;
|
|
1489
|
-
this.expressions_block();
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
catch (re) {
|
|
1493
|
-
if (re instanceof antlr.RecognitionException) {
|
|
1494
|
-
this.errorHandler.reportError(this, re);
|
|
1495
|
-
this.errorHandler.recover(this, re);
|
|
1496
|
-
}
|
|
1497
|
-
else {
|
|
1498
|
-
throw re;
|
|
1499
|
-
}
|
|
1500
|
-
}
|
|
1501
|
-
finally {
|
|
1502
|
-
this.exitRule();
|
|
1503
|
-
}
|
|
1504
|
-
return localContext;
|
|
1505
|
-
}
|
|
1506
|
-
break_keyword() {
|
|
1507
|
-
let localContext = new Break_keywordContext(this.context, this.state);
|
|
1508
|
-
this.enterRule(localContext, 46, CircuitScriptParser.RULE_break_keyword);
|
|
1509
|
-
try {
|
|
1510
|
-
this.enterOuterAlt(localContext, 1);
|
|
1511
|
-
{
|
|
1512
|
-
this.state = 308;
|
|
1513
|
-
this.match(CircuitScriptParser.Break);
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
catch (re) {
|
|
1517
|
-
if (re instanceof antlr.RecognitionException) {
|
|
1518
|
-
this.errorHandler.reportError(this, re);
|
|
1519
|
-
this.errorHandler.recover(this, re);
|
|
1520
|
-
}
|
|
1521
|
-
else {
|
|
1522
|
-
throw re;
|
|
1523
|
-
}
|
|
1524
|
-
}
|
|
1525
|
-
finally {
|
|
1526
|
-
this.exitRule();
|
|
1527
|
-
}
|
|
1528
|
-
return localContext;
|
|
1529
|
-
}
|
|
1530
|
-
continue_keyword() {
|
|
1531
|
-
let localContext = new Continue_keywordContext(this.context, this.state);
|
|
1532
|
-
this.enterRule(localContext, 48, CircuitScriptParser.RULE_continue_keyword);
|
|
1533
|
+
this.enterRule(localContext, 48, CircuitScriptParser.RULE_at_block_pin_expression_complex);
|
|
1533
1534
|
try {
|
|
1534
1535
|
this.enterOuterAlt(localContext, 1);
|
|
1535
1536
|
{
|
|
1536
1537
|
this.state = 310;
|
|
1537
|
-
this.
|
|
1538
|
+
this.expressions_block();
|
|
1538
1539
|
}
|
|
1539
1540
|
}
|
|
1540
1541
|
catch (re) {
|
|
@@ -1557,11 +1558,25 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1557
1558
|
try {
|
|
1558
1559
|
this.enterOuterAlt(localContext, 1);
|
|
1559
1560
|
{
|
|
1560
|
-
this.state = 312;
|
|
1561
|
-
this.atom_expr();
|
|
1562
|
-
this.state = 313;
|
|
1563
|
-
this.match(CircuitScriptParser.T__2);
|
|
1564
1561
|
this.state = 314;
|
|
1562
|
+
this.errorHandler.sync(this);
|
|
1563
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 27, this.context)) {
|
|
1564
|
+
case 1:
|
|
1565
|
+
{
|
|
1566
|
+
this.state = 312;
|
|
1567
|
+
this.atom_expr();
|
|
1568
|
+
}
|
|
1569
|
+
break;
|
|
1570
|
+
case 2:
|
|
1571
|
+
{
|
|
1572
|
+
this.state = 313;
|
|
1573
|
+
this.function_call_expr();
|
|
1574
|
+
}
|
|
1575
|
+
break;
|
|
1576
|
+
}
|
|
1577
|
+
this.state = 316;
|
|
1578
|
+
this.match(CircuitScriptParser.T__2);
|
|
1579
|
+
this.state = 317;
|
|
1565
1580
|
this.data_expr(0);
|
|
1566
1581
|
}
|
|
1567
1582
|
}
|
|
@@ -1586,9 +1601,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1586
1601
|
try {
|
|
1587
1602
|
this.enterOuterAlt(localContext, 1);
|
|
1588
1603
|
{
|
|
1589
|
-
this.state =
|
|
1604
|
+
this.state = 319;
|
|
1590
1605
|
this.atom_expr();
|
|
1591
|
-
this.state =
|
|
1606
|
+
this.state = 320;
|
|
1592
1607
|
_la = this.tokenStream.LA(1);
|
|
1593
1608
|
if (!(((((_la - 47)) & ~0x1F) === 0 && ((1 << (_la - 47)) & 31) !== 0))) {
|
|
1594
1609
|
this.errorHandler.recoverInline(this);
|
|
@@ -1597,7 +1612,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1597
1612
|
this.errorHandler.reportMatch(this);
|
|
1598
1613
|
this.consume();
|
|
1599
1614
|
}
|
|
1600
|
-
this.state =
|
|
1615
|
+
this.state = 321;
|
|
1601
1616
|
this.data_expr(0);
|
|
1602
1617
|
}
|
|
1603
1618
|
}
|
|
@@ -1621,11 +1636,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1621
1636
|
try {
|
|
1622
1637
|
this.enterOuterAlt(localContext, 1);
|
|
1623
1638
|
{
|
|
1624
|
-
this.state =
|
|
1639
|
+
this.state = 323;
|
|
1625
1640
|
this.match(CircuitScriptParser.ID);
|
|
1626
|
-
this.state =
|
|
1641
|
+
this.state = 324;
|
|
1627
1642
|
this.match(CircuitScriptParser.T__2);
|
|
1628
|
-
this.state =
|
|
1643
|
+
this.state = 325;
|
|
1629
1644
|
this.data_expr(0);
|
|
1630
1645
|
}
|
|
1631
1646
|
}
|
|
@@ -1649,46 +1664,46 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1649
1664
|
let _la;
|
|
1650
1665
|
try {
|
|
1651
1666
|
let alternative;
|
|
1652
|
-
this.state =
|
|
1667
|
+
this.state = 350;
|
|
1653
1668
|
this.errorHandler.sync(this);
|
|
1654
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
1669
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 31, this.context)) {
|
|
1655
1670
|
case 1:
|
|
1656
1671
|
this.enterOuterAlt(localContext, 1);
|
|
1657
1672
|
{
|
|
1658
1673
|
{
|
|
1659
|
-
this.state =
|
|
1674
|
+
this.state = 327;
|
|
1660
1675
|
this.data_expr(0);
|
|
1661
|
-
this.state =
|
|
1676
|
+
this.state = 332;
|
|
1662
1677
|
this.errorHandler.sync(this);
|
|
1663
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
1678
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 28, this.context);
|
|
1664
1679
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
1665
1680
|
if (alternative === 1) {
|
|
1666
1681
|
{
|
|
1667
1682
|
{
|
|
1668
|
-
this.state =
|
|
1683
|
+
this.state = 328;
|
|
1669
1684
|
this.match(CircuitScriptParser.T__1);
|
|
1670
|
-
this.state =
|
|
1685
|
+
this.state = 329;
|
|
1671
1686
|
this.data_expr(0);
|
|
1672
1687
|
}
|
|
1673
1688
|
}
|
|
1674
1689
|
}
|
|
1675
|
-
this.state =
|
|
1690
|
+
this.state = 334;
|
|
1676
1691
|
this.errorHandler.sync(this);
|
|
1677
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
1692
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 28, this.context);
|
|
1678
1693
|
}
|
|
1679
|
-
this.state =
|
|
1694
|
+
this.state = 339;
|
|
1680
1695
|
this.errorHandler.sync(this);
|
|
1681
1696
|
_la = this.tokenStream.LA(1);
|
|
1682
1697
|
while (_la === 2) {
|
|
1683
1698
|
{
|
|
1684
1699
|
{
|
|
1685
|
-
this.state =
|
|
1700
|
+
this.state = 335;
|
|
1686
1701
|
this.match(CircuitScriptParser.T__1);
|
|
1687
|
-
this.state =
|
|
1702
|
+
this.state = 336;
|
|
1688
1703
|
this.keyword_assignment_expr();
|
|
1689
1704
|
}
|
|
1690
1705
|
}
|
|
1691
|
-
this.state =
|
|
1706
|
+
this.state = 341;
|
|
1692
1707
|
this.errorHandler.sync(this);
|
|
1693
1708
|
_la = this.tokenStream.LA(1);
|
|
1694
1709
|
}
|
|
@@ -1699,21 +1714,21 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1699
1714
|
this.enterOuterAlt(localContext, 2);
|
|
1700
1715
|
{
|
|
1701
1716
|
{
|
|
1702
|
-
this.state =
|
|
1717
|
+
this.state = 342;
|
|
1703
1718
|
this.keyword_assignment_expr();
|
|
1704
|
-
this.state =
|
|
1719
|
+
this.state = 347;
|
|
1705
1720
|
this.errorHandler.sync(this);
|
|
1706
1721
|
_la = this.tokenStream.LA(1);
|
|
1707
1722
|
while (_la === 2) {
|
|
1708
1723
|
{
|
|
1709
1724
|
{
|
|
1710
|
-
this.state =
|
|
1725
|
+
this.state = 343;
|
|
1711
1726
|
this.match(CircuitScriptParser.T__1);
|
|
1712
|
-
this.state =
|
|
1727
|
+
this.state = 344;
|
|
1713
1728
|
this.keyword_assignment_expr();
|
|
1714
1729
|
}
|
|
1715
1730
|
}
|
|
1716
|
-
this.state =
|
|
1731
|
+
this.state = 349;
|
|
1717
1732
|
this.errorHandler.sync(this);
|
|
1718
1733
|
_la = this.tokenStream.LA(1);
|
|
1719
1734
|
}
|
|
@@ -1742,11 +1757,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1742
1757
|
try {
|
|
1743
1758
|
this.enterOuterAlt(localContext, 1);
|
|
1744
1759
|
{
|
|
1745
|
-
this.state =
|
|
1760
|
+
this.state = 352;
|
|
1746
1761
|
this.atom_expr();
|
|
1747
|
-
this.state =
|
|
1762
|
+
this.state = 353;
|
|
1748
1763
|
this.match(CircuitScriptParser.T__2);
|
|
1749
|
-
this.state =
|
|
1764
|
+
this.state = 354;
|
|
1750
1765
|
this.data_expr(0);
|
|
1751
1766
|
}
|
|
1752
1767
|
}
|
|
@@ -1770,13 +1785,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1770
1785
|
try {
|
|
1771
1786
|
this.enterOuterAlt(localContext, 1);
|
|
1772
1787
|
{
|
|
1773
|
-
this.state =
|
|
1788
|
+
this.state = 356;
|
|
1774
1789
|
this.match(CircuitScriptParser.T__3);
|
|
1775
|
-
this.state =
|
|
1790
|
+
this.state = 357;
|
|
1776
1791
|
this.match(CircuitScriptParser.ID);
|
|
1777
|
-
this.state =
|
|
1792
|
+
this.state = 358;
|
|
1778
1793
|
this.match(CircuitScriptParser.T__2);
|
|
1779
|
-
this.state =
|
|
1794
|
+
this.state = 359;
|
|
1780
1795
|
this.data_expr(0);
|
|
1781
1796
|
}
|
|
1782
1797
|
}
|
|
@@ -1809,19 +1824,19 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1809
1824
|
let alternative;
|
|
1810
1825
|
this.enterOuterAlt(localContext, 1);
|
|
1811
1826
|
{
|
|
1812
|
-
this.state =
|
|
1827
|
+
this.state = 378;
|
|
1813
1828
|
this.errorHandler.sync(this);
|
|
1814
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
1829
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 33, this.context)) {
|
|
1815
1830
|
case 1:
|
|
1816
1831
|
{
|
|
1817
1832
|
localContext = new RoundedBracketsExprContext(localContext);
|
|
1818
1833
|
this.context = localContext;
|
|
1819
1834
|
previousContext = localContext;
|
|
1820
|
-
this.state =
|
|
1835
|
+
this.state = 362;
|
|
1821
1836
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
1822
|
-
this.state =
|
|
1837
|
+
this.state = 363;
|
|
1823
1838
|
this.data_expr(0);
|
|
1824
|
-
this.state =
|
|
1839
|
+
this.state = 364;
|
|
1825
1840
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
1826
1841
|
}
|
|
1827
1842
|
break;
|
|
@@ -1830,7 +1845,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1830
1845
|
localContext = new ValueAtomExprContext(localContext);
|
|
1831
1846
|
this.context = localContext;
|
|
1832
1847
|
previousContext = localContext;
|
|
1833
|
-
this.state =
|
|
1848
|
+
this.state = 368;
|
|
1834
1849
|
this.errorHandler.sync(this);
|
|
1835
1850
|
switch (this.tokenStream.LA(1)) {
|
|
1836
1851
|
case CircuitScriptParser.Minus:
|
|
@@ -1841,13 +1856,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1841
1856
|
case CircuitScriptParser.STRING_VALUE:
|
|
1842
1857
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
1843
1858
|
{
|
|
1844
|
-
this.state =
|
|
1859
|
+
this.state = 366;
|
|
1845
1860
|
this.value_expr();
|
|
1846
1861
|
}
|
|
1847
1862
|
break;
|
|
1848
1863
|
case CircuitScriptParser.ID:
|
|
1849
1864
|
{
|
|
1850
|
-
this.state =
|
|
1865
|
+
this.state = 367;
|
|
1851
1866
|
this.atom_expr();
|
|
1852
1867
|
}
|
|
1853
1868
|
break;
|
|
@@ -1861,9 +1876,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1861
1876
|
localContext = new UnaryOperatorExprContext(localContext);
|
|
1862
1877
|
this.context = localContext;
|
|
1863
1878
|
previousContext = localContext;
|
|
1864
|
-
this.state =
|
|
1879
|
+
this.state = 370;
|
|
1865
1880
|
this.unary_operator();
|
|
1866
|
-
this.state =
|
|
1881
|
+
this.state = 371;
|
|
1867
1882
|
this.data_expr(10);
|
|
1868
1883
|
}
|
|
1869
1884
|
break;
|
|
@@ -1872,7 +1887,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1872
1887
|
localContext = new DataExprContext(localContext);
|
|
1873
1888
|
this.context = localContext;
|
|
1874
1889
|
previousContext = localContext;
|
|
1875
|
-
this.state =
|
|
1890
|
+
this.state = 373;
|
|
1876
1891
|
this.create_component_expr();
|
|
1877
1892
|
}
|
|
1878
1893
|
break;
|
|
@@ -1881,7 +1896,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1881
1896
|
localContext = new DataExprContext(localContext);
|
|
1882
1897
|
this.context = localContext;
|
|
1883
1898
|
previousContext = localContext;
|
|
1884
|
-
this.state =
|
|
1899
|
+
this.state = 374;
|
|
1885
1900
|
this.create_graphic_expr();
|
|
1886
1901
|
}
|
|
1887
1902
|
break;
|
|
@@ -1890,7 +1905,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1890
1905
|
localContext = new DataExprContext(localContext);
|
|
1891
1906
|
this.context = localContext;
|
|
1892
1907
|
previousContext = localContext;
|
|
1893
|
-
this.state =
|
|
1908
|
+
this.state = 375;
|
|
1894
1909
|
this.create_module_expr();
|
|
1895
1910
|
}
|
|
1896
1911
|
break;
|
|
@@ -1899,7 +1914,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1899
1914
|
localContext = new FunctionCallExprContext(localContext);
|
|
1900
1915
|
this.context = localContext;
|
|
1901
1916
|
previousContext = localContext;
|
|
1902
|
-
this.state =
|
|
1917
|
+
this.state = 376;
|
|
1903
1918
|
this.function_call_expr();
|
|
1904
1919
|
}
|
|
1905
1920
|
break;
|
|
@@ -1908,15 +1923,15 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1908
1923
|
localContext = new ArrayExprContext(localContext);
|
|
1909
1924
|
this.context = localContext;
|
|
1910
1925
|
previousContext = localContext;
|
|
1911
|
-
this.state =
|
|
1926
|
+
this.state = 377;
|
|
1912
1927
|
this.array_expr();
|
|
1913
1928
|
}
|
|
1914
1929
|
break;
|
|
1915
1930
|
}
|
|
1916
1931
|
this.context.stop = this.tokenStream.LT(-1);
|
|
1917
|
-
this.state =
|
|
1932
|
+
this.state = 395;
|
|
1918
1933
|
this.errorHandler.sync(this);
|
|
1919
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
1934
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 35, this.context);
|
|
1920
1935
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
1921
1936
|
if (alternative === 1) {
|
|
1922
1937
|
if (this.parseListeners != null) {
|
|
@@ -1924,18 +1939,18 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1924
1939
|
}
|
|
1925
1940
|
previousContext = localContext;
|
|
1926
1941
|
{
|
|
1927
|
-
this.state =
|
|
1942
|
+
this.state = 393;
|
|
1928
1943
|
this.errorHandler.sync(this);
|
|
1929
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
1944
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 34, this.context)) {
|
|
1930
1945
|
case 1:
|
|
1931
1946
|
{
|
|
1932
1947
|
localContext = new MultiplyExprContext(new Data_exprContext(parentContext, parentState));
|
|
1933
1948
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1934
|
-
this.state =
|
|
1949
|
+
this.state = 380;
|
|
1935
1950
|
if (!(this.precpred(this.context, 9))) {
|
|
1936
1951
|
throw this.createFailedPredicateException("this.precpred(this.context, 9)");
|
|
1937
1952
|
}
|
|
1938
|
-
this.state =
|
|
1953
|
+
this.state = 381;
|
|
1939
1954
|
_la = this.tokenStream.LA(1);
|
|
1940
1955
|
if (!(((((_la - 44)) & ~0x1F) === 0 && ((1 << (_la - 44)) & 7) !== 0))) {
|
|
1941
1956
|
this.errorHandler.recoverInline(this);
|
|
@@ -1944,7 +1959,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1944
1959
|
this.errorHandler.reportMatch(this);
|
|
1945
1960
|
this.consume();
|
|
1946
1961
|
}
|
|
1947
|
-
this.state =
|
|
1962
|
+
this.state = 382;
|
|
1948
1963
|
this.data_expr(10);
|
|
1949
1964
|
}
|
|
1950
1965
|
break;
|
|
@@ -1952,11 +1967,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1952
1967
|
{
|
|
1953
1968
|
localContext = new AdditionExprContext(new Data_exprContext(parentContext, parentState));
|
|
1954
1969
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1955
|
-
this.state =
|
|
1970
|
+
this.state = 383;
|
|
1956
1971
|
if (!(this.precpred(this.context, 8))) {
|
|
1957
1972
|
throw this.createFailedPredicateException("this.precpred(this.context, 8)");
|
|
1958
1973
|
}
|
|
1959
|
-
this.state =
|
|
1974
|
+
this.state = 384;
|
|
1960
1975
|
_la = this.tokenStream.LA(1);
|
|
1961
1976
|
if (!(_la === 42 || _la === 43)) {
|
|
1962
1977
|
this.errorHandler.recoverInline(this);
|
|
@@ -1965,7 +1980,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1965
1980
|
this.errorHandler.reportMatch(this);
|
|
1966
1981
|
this.consume();
|
|
1967
1982
|
}
|
|
1968
|
-
this.state =
|
|
1983
|
+
this.state = 385;
|
|
1969
1984
|
this.data_expr(9);
|
|
1970
1985
|
}
|
|
1971
1986
|
break;
|
|
@@ -1973,13 +1988,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1973
1988
|
{
|
|
1974
1989
|
localContext = new BinaryOperatorExprContext(new Data_exprContext(parentContext, parentState));
|
|
1975
1990
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1976
|
-
this.state =
|
|
1991
|
+
this.state = 386;
|
|
1977
1992
|
if (!(this.precpred(this.context, 7))) {
|
|
1978
1993
|
throw this.createFailedPredicateException("this.precpred(this.context, 7)");
|
|
1979
1994
|
}
|
|
1980
|
-
this.state =
|
|
1995
|
+
this.state = 387;
|
|
1981
1996
|
this.binary_operator();
|
|
1982
|
-
this.state =
|
|
1997
|
+
this.state = 388;
|
|
1983
1998
|
this.data_expr(8);
|
|
1984
1999
|
}
|
|
1985
2000
|
break;
|
|
@@ -1987,11 +2002,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
1987
2002
|
{
|
|
1988
2003
|
localContext = new LogicalOperatorExprContext(new Data_exprContext(parentContext, parentState));
|
|
1989
2004
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1990
|
-
this.state =
|
|
2005
|
+
this.state = 390;
|
|
1991
2006
|
if (!(this.precpred(this.context, 6))) {
|
|
1992
2007
|
throw this.createFailedPredicateException("this.precpred(this.context, 6)");
|
|
1993
2008
|
}
|
|
1994
|
-
this.state =
|
|
2009
|
+
this.state = 391;
|
|
1995
2010
|
_la = this.tokenStream.LA(1);
|
|
1996
2011
|
if (!(_la === 40 || _la === 41)) {
|
|
1997
2012
|
this.errorHandler.recoverInline(this);
|
|
@@ -2000,16 +2015,16 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2000
2015
|
this.errorHandler.reportMatch(this);
|
|
2001
2016
|
this.consume();
|
|
2002
2017
|
}
|
|
2003
|
-
this.state =
|
|
2018
|
+
this.state = 392;
|
|
2004
2019
|
this.data_expr(7);
|
|
2005
2020
|
}
|
|
2006
2021
|
break;
|
|
2007
2022
|
}
|
|
2008
2023
|
}
|
|
2009
2024
|
}
|
|
2010
|
-
this.state =
|
|
2025
|
+
this.state = 397;
|
|
2011
2026
|
this.errorHandler.sync(this);
|
|
2012
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2027
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 35, this.context);
|
|
2013
2028
|
}
|
|
2014
2029
|
}
|
|
2015
2030
|
}
|
|
@@ -2034,7 +2049,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2034
2049
|
try {
|
|
2035
2050
|
this.enterOuterAlt(localContext, 1);
|
|
2036
2051
|
{
|
|
2037
|
-
this.state =
|
|
2052
|
+
this.state = 398;
|
|
2038
2053
|
_la = this.tokenStream.LA(1);
|
|
2039
2054
|
if (!(((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 63) !== 0))) {
|
|
2040
2055
|
this.errorHandler.recoverInline(this);
|
|
@@ -2066,7 +2081,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2066
2081
|
try {
|
|
2067
2082
|
this.enterOuterAlt(localContext, 1);
|
|
2068
2083
|
{
|
|
2069
|
-
this.state =
|
|
2084
|
+
this.state = 400;
|
|
2070
2085
|
_la = this.tokenStream.LA(1);
|
|
2071
2086
|
if (!(_la === 31 || _la === 43)) {
|
|
2072
2087
|
this.errorHandler.recoverInline(this);
|
|
@@ -2099,16 +2114,16 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2099
2114
|
this.enterOuterAlt(localContext, 1);
|
|
2100
2115
|
{
|
|
2101
2116
|
{
|
|
2102
|
-
this.state =
|
|
2117
|
+
this.state = 403;
|
|
2103
2118
|
this.errorHandler.sync(this);
|
|
2104
2119
|
_la = this.tokenStream.LA(1);
|
|
2105
2120
|
if (_la === 43) {
|
|
2106
2121
|
{
|
|
2107
|
-
this.state =
|
|
2122
|
+
this.state = 402;
|
|
2108
2123
|
this.match(CircuitScriptParser.Minus);
|
|
2109
2124
|
}
|
|
2110
2125
|
}
|
|
2111
|
-
this.state =
|
|
2126
|
+
this.state = 405;
|
|
2112
2127
|
_la = this.tokenStream.LA(1);
|
|
2113
2128
|
if (!(((((_la - 55)) & ~0x1F) === 0 && ((1 << (_la - 55)) & 125) !== 0))) {
|
|
2114
2129
|
this.errorHandler.recoverInline(this);
|
|
@@ -2141,40 +2156,40 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2141
2156
|
try {
|
|
2142
2157
|
this.enterOuterAlt(localContext, 1);
|
|
2143
2158
|
{
|
|
2144
|
-
this.state =
|
|
2159
|
+
this.state = 407;
|
|
2145
2160
|
this.match(CircuitScriptParser.Define);
|
|
2146
|
-
this.state =
|
|
2161
|
+
this.state = 408;
|
|
2147
2162
|
this.match(CircuitScriptParser.ID);
|
|
2148
|
-
this.state =
|
|
2163
|
+
this.state = 409;
|
|
2149
2164
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2150
|
-
this.state =
|
|
2165
|
+
this.state = 411;
|
|
2151
2166
|
this.errorHandler.sync(this);
|
|
2152
2167
|
_la = this.tokenStream.LA(1);
|
|
2153
2168
|
if (_la === 56) {
|
|
2154
2169
|
{
|
|
2155
|
-
this.state =
|
|
2170
|
+
this.state = 410;
|
|
2156
2171
|
this.function_args_expr();
|
|
2157
2172
|
}
|
|
2158
2173
|
}
|
|
2159
|
-
this.state =
|
|
2174
|
+
this.state = 413;
|
|
2160
2175
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2161
|
-
this.state =
|
|
2176
|
+
this.state = 414;
|
|
2162
2177
|
this.match(CircuitScriptParser.T__0);
|
|
2163
|
-
this.state =
|
|
2178
|
+
this.state = 415;
|
|
2164
2179
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2165
|
-
this.state = 413;
|
|
2166
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2167
2180
|
this.state = 416;
|
|
2181
|
+
this.match(CircuitScriptParser.INDENT);
|
|
2182
|
+
this.state = 419;
|
|
2168
2183
|
this.errorHandler.sync(this);
|
|
2169
2184
|
_la = this.tokenStream.LA(1);
|
|
2170
2185
|
do {
|
|
2171
2186
|
{
|
|
2172
|
-
this.state =
|
|
2187
|
+
this.state = 419;
|
|
2173
2188
|
this.errorHandler.sync(this);
|
|
2174
2189
|
switch (this.tokenStream.LA(1)) {
|
|
2175
2190
|
case CircuitScriptParser.NEWLINE:
|
|
2176
2191
|
{
|
|
2177
|
-
this.state =
|
|
2192
|
+
this.state = 417;
|
|
2178
2193
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2179
2194
|
}
|
|
2180
2195
|
break;
|
|
@@ -2201,7 +2216,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2201
2216
|
case CircuitScriptParser.Divide:
|
|
2202
2217
|
case CircuitScriptParser.ID:
|
|
2203
2218
|
{
|
|
2204
|
-
this.state =
|
|
2219
|
+
this.state = 418;
|
|
2205
2220
|
this.function_expr();
|
|
2206
2221
|
}
|
|
2207
2222
|
break;
|
|
@@ -2209,11 +2224,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2209
2224
|
throw new antlr.NoViableAltException(this);
|
|
2210
2225
|
}
|
|
2211
2226
|
}
|
|
2212
|
-
this.state =
|
|
2227
|
+
this.state = 421;
|
|
2213
2228
|
this.errorHandler.sync(this);
|
|
2214
2229
|
_la = this.tokenStream.LA(1);
|
|
2215
2230
|
} while (((((_la - 4)) & ~0x1F) === 0 && ((1 << (_la - 4)) & 868217905) !== 0) || ((((_la - 42)) & ~0x1F) === 0 && ((1 << (_la - 42)) & 4210693) !== 0));
|
|
2216
|
-
this.state =
|
|
2231
|
+
this.state = 423;
|
|
2217
2232
|
this.match(CircuitScriptParser.DEDENT);
|
|
2218
2233
|
}
|
|
2219
2234
|
}
|
|
@@ -2235,7 +2250,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2235
2250
|
let localContext = new Function_exprContext(this.context, this.state);
|
|
2236
2251
|
this.enterRule(localContext, 72, CircuitScriptParser.RULE_function_expr);
|
|
2237
2252
|
try {
|
|
2238
|
-
this.state =
|
|
2253
|
+
this.state = 427;
|
|
2239
2254
|
this.errorHandler.sync(this);
|
|
2240
2255
|
switch (this.tokenStream.LA(1)) {
|
|
2241
2256
|
case CircuitScriptParser.T__3:
|
|
@@ -2261,14 +2276,14 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2261
2276
|
case CircuitScriptParser.ID:
|
|
2262
2277
|
this.enterOuterAlt(localContext, 1);
|
|
2263
2278
|
{
|
|
2264
|
-
this.state =
|
|
2279
|
+
this.state = 425;
|
|
2265
2280
|
this.expression();
|
|
2266
2281
|
}
|
|
2267
2282
|
break;
|
|
2268
2283
|
case CircuitScriptParser.Return:
|
|
2269
2284
|
this.enterOuterAlt(localContext, 2);
|
|
2270
2285
|
{
|
|
2271
|
-
this.state =
|
|
2286
|
+
this.state = 426;
|
|
2272
2287
|
this.function_return_expr();
|
|
2273
2288
|
}
|
|
2274
2289
|
break;
|
|
@@ -2296,49 +2311,49 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2296
2311
|
let _la;
|
|
2297
2312
|
try {
|
|
2298
2313
|
let alternative;
|
|
2299
|
-
this.state =
|
|
2314
|
+
this.state = 458;
|
|
2300
2315
|
this.errorHandler.sync(this);
|
|
2301
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
2316
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 44, this.context)) {
|
|
2302
2317
|
case 1:
|
|
2303
2318
|
this.enterOuterAlt(localContext, 1);
|
|
2304
2319
|
{
|
|
2305
|
-
this.state =
|
|
2320
|
+
this.state = 429;
|
|
2306
2321
|
this.match(CircuitScriptParser.ID);
|
|
2307
|
-
this.state =
|
|
2322
|
+
this.state = 434;
|
|
2308
2323
|
this.errorHandler.sync(this);
|
|
2309
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2324
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 41, this.context);
|
|
2310
2325
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
2311
2326
|
if (alternative === 1) {
|
|
2312
2327
|
{
|
|
2313
2328
|
{
|
|
2314
|
-
this.state =
|
|
2329
|
+
this.state = 430;
|
|
2315
2330
|
this.match(CircuitScriptParser.T__1);
|
|
2316
|
-
this.state =
|
|
2331
|
+
this.state = 431;
|
|
2317
2332
|
this.match(CircuitScriptParser.ID);
|
|
2318
2333
|
}
|
|
2319
2334
|
}
|
|
2320
2335
|
}
|
|
2321
|
-
this.state =
|
|
2336
|
+
this.state = 436;
|
|
2322
2337
|
this.errorHandler.sync(this);
|
|
2323
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2338
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 41, this.context);
|
|
2324
2339
|
}
|
|
2325
|
-
this.state =
|
|
2340
|
+
this.state = 443;
|
|
2326
2341
|
this.errorHandler.sync(this);
|
|
2327
2342
|
_la = this.tokenStream.LA(1);
|
|
2328
2343
|
while (_la === 2) {
|
|
2329
2344
|
{
|
|
2330
2345
|
{
|
|
2331
|
-
this.state =
|
|
2346
|
+
this.state = 437;
|
|
2332
2347
|
this.match(CircuitScriptParser.T__1);
|
|
2333
|
-
this.state =
|
|
2348
|
+
this.state = 438;
|
|
2334
2349
|
this.match(CircuitScriptParser.ID);
|
|
2335
|
-
this.state =
|
|
2350
|
+
this.state = 439;
|
|
2336
2351
|
this.match(CircuitScriptParser.T__2);
|
|
2337
|
-
this.state =
|
|
2352
|
+
this.state = 440;
|
|
2338
2353
|
this.value_expr();
|
|
2339
2354
|
}
|
|
2340
2355
|
}
|
|
2341
|
-
this.state =
|
|
2356
|
+
this.state = 445;
|
|
2342
2357
|
this.errorHandler.sync(this);
|
|
2343
2358
|
_la = this.tokenStream.LA(1);
|
|
2344
2359
|
}
|
|
@@ -2347,29 +2362,29 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2347
2362
|
case 2:
|
|
2348
2363
|
this.enterOuterAlt(localContext, 2);
|
|
2349
2364
|
{
|
|
2350
|
-
this.state =
|
|
2365
|
+
this.state = 446;
|
|
2351
2366
|
this.match(CircuitScriptParser.ID);
|
|
2352
|
-
this.state =
|
|
2367
|
+
this.state = 447;
|
|
2353
2368
|
this.match(CircuitScriptParser.T__2);
|
|
2354
|
-
this.state =
|
|
2369
|
+
this.state = 448;
|
|
2355
2370
|
this.value_expr();
|
|
2356
|
-
this.state =
|
|
2371
|
+
this.state = 455;
|
|
2357
2372
|
this.errorHandler.sync(this);
|
|
2358
2373
|
_la = this.tokenStream.LA(1);
|
|
2359
2374
|
while (_la === 2) {
|
|
2360
2375
|
{
|
|
2361
2376
|
{
|
|
2362
|
-
this.state =
|
|
2377
|
+
this.state = 449;
|
|
2363
2378
|
this.match(CircuitScriptParser.T__1);
|
|
2364
|
-
this.state =
|
|
2379
|
+
this.state = 450;
|
|
2365
2380
|
this.match(CircuitScriptParser.ID);
|
|
2366
|
-
this.state =
|
|
2381
|
+
this.state = 451;
|
|
2367
2382
|
this.match(CircuitScriptParser.T__2);
|
|
2368
|
-
this.state =
|
|
2383
|
+
this.state = 452;
|
|
2369
2384
|
this.value_expr();
|
|
2370
2385
|
}
|
|
2371
2386
|
}
|
|
2372
|
-
this.state =
|
|
2387
|
+
this.state = 457;
|
|
2373
2388
|
this.errorHandler.sync(this);
|
|
2374
2389
|
_la = this.tokenStream.LA(1);
|
|
2375
2390
|
}
|
|
@@ -2398,25 +2413,25 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2398
2413
|
let alternative;
|
|
2399
2414
|
this.enterOuterAlt(localContext, 1);
|
|
2400
2415
|
{
|
|
2401
|
-
this.state =
|
|
2416
|
+
this.state = 460;
|
|
2402
2417
|
this.match(CircuitScriptParser.ID);
|
|
2403
|
-
this.state =
|
|
2418
|
+
this.state = 465;
|
|
2404
2419
|
this.errorHandler.sync(this);
|
|
2405
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2420
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context);
|
|
2406
2421
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
2407
2422
|
if (alternative === 1) {
|
|
2408
2423
|
{
|
|
2409
2424
|
{
|
|
2410
|
-
this.state =
|
|
2425
|
+
this.state = 461;
|
|
2411
2426
|
this.match(CircuitScriptParser.T__4);
|
|
2412
|
-
this.state =
|
|
2427
|
+
this.state = 462;
|
|
2413
2428
|
this.match(CircuitScriptParser.ID);
|
|
2414
2429
|
}
|
|
2415
2430
|
}
|
|
2416
2431
|
}
|
|
2417
|
-
this.state =
|
|
2432
|
+
this.state = 467;
|
|
2418
2433
|
this.errorHandler.sync(this);
|
|
2419
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2434
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context);
|
|
2420
2435
|
}
|
|
2421
2436
|
}
|
|
2422
2437
|
}
|
|
@@ -2439,33 +2454,33 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2439
2454
|
this.enterRule(localContext, 78, CircuitScriptParser.RULE_trailer_expr);
|
|
2440
2455
|
let _la;
|
|
2441
2456
|
try {
|
|
2442
|
-
this.state =
|
|
2457
|
+
this.state = 475;
|
|
2443
2458
|
this.errorHandler.sync(this);
|
|
2444
2459
|
switch (this.tokenStream.LA(1)) {
|
|
2445
2460
|
case CircuitScriptParser.OPEN_PAREN:
|
|
2446
2461
|
this.enterOuterAlt(localContext, 1);
|
|
2447
2462
|
{
|
|
2448
|
-
this.state =
|
|
2463
|
+
this.state = 468;
|
|
2449
2464
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2450
|
-
this.state =
|
|
2465
|
+
this.state = 470;
|
|
2451
2466
|
this.errorHandler.sync(this);
|
|
2452
2467
|
_la = this.tokenStream.LA(1);
|
|
2453
2468
|
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2147484736) !== 0) || ((((_la - 42)) & ~0x1F) === 0 && ((1 << (_la - 42)) & 1041415) !== 0)) {
|
|
2454
2469
|
{
|
|
2455
|
-
this.state =
|
|
2470
|
+
this.state = 469;
|
|
2456
2471
|
this.parameters();
|
|
2457
2472
|
}
|
|
2458
2473
|
}
|
|
2459
|
-
this.state =
|
|
2474
|
+
this.state = 472;
|
|
2460
2475
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2461
2476
|
}
|
|
2462
2477
|
break;
|
|
2463
2478
|
case CircuitScriptParser.T__4:
|
|
2464
2479
|
this.enterOuterAlt(localContext, 2);
|
|
2465
2480
|
{
|
|
2466
|
-
this.state =
|
|
2481
|
+
this.state = 473;
|
|
2467
2482
|
this.match(CircuitScriptParser.T__4);
|
|
2468
|
-
this.state =
|
|
2483
|
+
this.state = 474;
|
|
2469
2484
|
this.match(CircuitScriptParser.ID);
|
|
2470
2485
|
}
|
|
2471
2486
|
break;
|
|
@@ -2495,18 +2510,18 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2495
2510
|
let alternative;
|
|
2496
2511
|
this.enterOuterAlt(localContext, 1);
|
|
2497
2512
|
{
|
|
2498
|
-
this.state =
|
|
2513
|
+
this.state = 478;
|
|
2499
2514
|
this.errorHandler.sync(this);
|
|
2500
2515
|
_la = this.tokenStream.LA(1);
|
|
2501
2516
|
if (_la === 42 || _la === 44) {
|
|
2502
2517
|
{
|
|
2503
|
-
this.state =
|
|
2518
|
+
this.state = 477;
|
|
2504
2519
|
this.net_namespace_expr();
|
|
2505
2520
|
}
|
|
2506
2521
|
}
|
|
2507
|
-
this.state =
|
|
2522
|
+
this.state = 480;
|
|
2508
2523
|
this.match(CircuitScriptParser.ID);
|
|
2509
|
-
this.state =
|
|
2524
|
+
this.state = 482;
|
|
2510
2525
|
this.errorHandler.sync(this);
|
|
2511
2526
|
alternative = 1;
|
|
2512
2527
|
do {
|
|
@@ -2514,7 +2529,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2514
2529
|
case 1:
|
|
2515
2530
|
{
|
|
2516
2531
|
{
|
|
2517
|
-
this.state =
|
|
2532
|
+
this.state = 481;
|
|
2518
2533
|
this.trailer_expr();
|
|
2519
2534
|
}
|
|
2520
2535
|
}
|
|
@@ -2522,9 +2537,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2522
2537
|
default:
|
|
2523
2538
|
throw new antlr.NoViableAltException(this);
|
|
2524
2539
|
}
|
|
2525
|
-
this.state =
|
|
2540
|
+
this.state = 484;
|
|
2526
2541
|
this.errorHandler.sync(this);
|
|
2527
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
2542
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 49, this.context);
|
|
2528
2543
|
} while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER);
|
|
2529
2544
|
}
|
|
2530
2545
|
}
|
|
@@ -2549,23 +2564,23 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2549
2564
|
try {
|
|
2550
2565
|
this.enterOuterAlt(localContext, 1);
|
|
2551
2566
|
{
|
|
2552
|
-
this.state =
|
|
2567
|
+
this.state = 487;
|
|
2553
2568
|
this.errorHandler.sync(this);
|
|
2554
2569
|
_la = this.tokenStream.LA(1);
|
|
2555
2570
|
if (_la === 42) {
|
|
2556
2571
|
{
|
|
2557
|
-
this.state =
|
|
2572
|
+
this.state = 486;
|
|
2558
2573
|
this.match(CircuitScriptParser.Addition);
|
|
2559
2574
|
}
|
|
2560
2575
|
}
|
|
2561
|
-
this.state =
|
|
2576
|
+
this.state = 489;
|
|
2562
2577
|
this.match(CircuitScriptParser.Divide);
|
|
2563
|
-
this.state =
|
|
2578
|
+
this.state = 491;
|
|
2564
2579
|
this.errorHandler.sync(this);
|
|
2565
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
2580
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 51, this.context)) {
|
|
2566
2581
|
case 1:
|
|
2567
2582
|
{
|
|
2568
|
-
this.state =
|
|
2583
|
+
this.state = 490;
|
|
2569
2584
|
this.data_expr(0);
|
|
2570
2585
|
}
|
|
2571
2586
|
break;
|
|
@@ -2592,9 +2607,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2592
2607
|
try {
|
|
2593
2608
|
this.enterOuterAlt(localContext, 1);
|
|
2594
2609
|
{
|
|
2595
|
-
this.state =
|
|
2610
|
+
this.state = 493;
|
|
2596
2611
|
this.match(CircuitScriptParser.Return);
|
|
2597
|
-
this.state =
|
|
2612
|
+
this.state = 494;
|
|
2598
2613
|
this.data_expr(0);
|
|
2599
2614
|
}
|
|
2600
2615
|
}
|
|
@@ -2618,11 +2633,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2618
2633
|
try {
|
|
2619
2634
|
this.enterOuterAlt(localContext, 1);
|
|
2620
2635
|
{
|
|
2621
|
-
this.state =
|
|
2636
|
+
this.state = 496;
|
|
2622
2637
|
this.property_key_expr();
|
|
2623
|
-
this.state =
|
|
2638
|
+
this.state = 497;
|
|
2624
2639
|
this.match(CircuitScriptParser.T__0);
|
|
2625
|
-
this.state =
|
|
2640
|
+
this.state = 498;
|
|
2626
2641
|
this.expressions_block();
|
|
2627
2642
|
}
|
|
2628
2643
|
}
|
|
@@ -2647,27 +2662,27 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2647
2662
|
try {
|
|
2648
2663
|
this.enterOuterAlt(localContext, 1);
|
|
2649
2664
|
{
|
|
2650
|
-
this.state =
|
|
2665
|
+
this.state = 500;
|
|
2651
2666
|
this.match(CircuitScriptParser.Create);
|
|
2652
|
-
this.state =
|
|
2667
|
+
this.state = 501;
|
|
2653
2668
|
this.match(CircuitScriptParser.Component);
|
|
2654
|
-
this.state =
|
|
2669
|
+
this.state = 502;
|
|
2655
2670
|
this.match(CircuitScriptParser.T__0);
|
|
2656
|
-
this.state =
|
|
2671
|
+
this.state = 503;
|
|
2657
2672
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2658
|
-
this.state = 501;
|
|
2659
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2660
2673
|
this.state = 504;
|
|
2674
|
+
this.match(CircuitScriptParser.INDENT);
|
|
2675
|
+
this.state = 507;
|
|
2661
2676
|
this.errorHandler.sync(this);
|
|
2662
2677
|
_la = this.tokenStream.LA(1);
|
|
2663
2678
|
do {
|
|
2664
2679
|
{
|
|
2665
|
-
this.state =
|
|
2680
|
+
this.state = 507;
|
|
2666
2681
|
this.errorHandler.sync(this);
|
|
2667
2682
|
switch (this.tokenStream.LA(1)) {
|
|
2668
2683
|
case CircuitScriptParser.NEWLINE:
|
|
2669
2684
|
{
|
|
2670
|
-
this.state =
|
|
2685
|
+
this.state = 505;
|
|
2671
2686
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2672
2687
|
}
|
|
2673
2688
|
break;
|
|
@@ -2675,7 +2690,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2675
2690
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
2676
2691
|
case CircuitScriptParser.STRING_VALUE:
|
|
2677
2692
|
{
|
|
2678
|
-
this.state =
|
|
2693
|
+
this.state = 506;
|
|
2679
2694
|
this.property_expr();
|
|
2680
2695
|
}
|
|
2681
2696
|
break;
|
|
@@ -2683,11 +2698,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2683
2698
|
throw new antlr.NoViableAltException(this);
|
|
2684
2699
|
}
|
|
2685
2700
|
}
|
|
2686
|
-
this.state =
|
|
2701
|
+
this.state = 509;
|
|
2687
2702
|
this.errorHandler.sync(this);
|
|
2688
2703
|
_la = this.tokenStream.LA(1);
|
|
2689
2704
|
} while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 275) !== 0));
|
|
2690
|
-
this.state =
|
|
2705
|
+
this.state = 511;
|
|
2691
2706
|
this.match(CircuitScriptParser.DEDENT);
|
|
2692
2707
|
}
|
|
2693
2708
|
}
|
|
@@ -2712,21 +2727,21 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2712
2727
|
try {
|
|
2713
2728
|
this.enterOuterAlt(localContext, 1);
|
|
2714
2729
|
{
|
|
2715
|
-
this.state =
|
|
2730
|
+
this.state = 513;
|
|
2716
2731
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2717
|
-
this.state = 511;
|
|
2718
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2719
2732
|
this.state = 514;
|
|
2733
|
+
this.match(CircuitScriptParser.INDENT);
|
|
2734
|
+
this.state = 517;
|
|
2720
2735
|
this.errorHandler.sync(this);
|
|
2721
2736
|
_la = this.tokenStream.LA(1);
|
|
2722
2737
|
do {
|
|
2723
2738
|
{
|
|
2724
|
-
this.state =
|
|
2739
|
+
this.state = 517;
|
|
2725
2740
|
this.errorHandler.sync(this);
|
|
2726
2741
|
switch (this.tokenStream.LA(1)) {
|
|
2727
2742
|
case CircuitScriptParser.NEWLINE:
|
|
2728
2743
|
{
|
|
2729
|
-
this.state =
|
|
2744
|
+
this.state = 515;
|
|
2730
2745
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2731
2746
|
}
|
|
2732
2747
|
break;
|
|
@@ -2734,7 +2749,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2734
2749
|
case CircuitScriptParser.For:
|
|
2735
2750
|
case CircuitScriptParser.ID:
|
|
2736
2751
|
{
|
|
2737
|
-
this.state =
|
|
2752
|
+
this.state = 516;
|
|
2738
2753
|
this.graphic_expr();
|
|
2739
2754
|
}
|
|
2740
2755
|
break;
|
|
@@ -2742,11 +2757,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2742
2757
|
throw new antlr.NoViableAltException(this);
|
|
2743
2758
|
}
|
|
2744
2759
|
}
|
|
2745
|
-
this.state =
|
|
2760
|
+
this.state = 519;
|
|
2746
2761
|
this.errorHandler.sync(this);
|
|
2747
2762
|
_la = this.tokenStream.LA(1);
|
|
2748
2763
|
} while (_la === 15 || _la === 25 || _la === 56 || _la === 64);
|
|
2749
|
-
this.state =
|
|
2764
|
+
this.state = 521;
|
|
2750
2765
|
this.match(CircuitScriptParser.DEDENT);
|
|
2751
2766
|
}
|
|
2752
2767
|
}
|
|
@@ -2771,26 +2786,26 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2771
2786
|
try {
|
|
2772
2787
|
this.enterOuterAlt(localContext, 1);
|
|
2773
2788
|
{
|
|
2774
|
-
this.state =
|
|
2789
|
+
this.state = 523;
|
|
2775
2790
|
this.match(CircuitScriptParser.Create);
|
|
2776
|
-
this.state =
|
|
2791
|
+
this.state = 524;
|
|
2777
2792
|
this.match(CircuitScriptParser.Graphic);
|
|
2778
|
-
this.state =
|
|
2793
|
+
this.state = 528;
|
|
2779
2794
|
this.errorHandler.sync(this);
|
|
2780
2795
|
_la = this.tokenStream.LA(1);
|
|
2781
2796
|
if (_la === 52) {
|
|
2782
2797
|
{
|
|
2783
|
-
this.state =
|
|
2798
|
+
this.state = 525;
|
|
2784
2799
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2785
|
-
this.state =
|
|
2800
|
+
this.state = 526;
|
|
2786
2801
|
this.match(CircuitScriptParser.ID);
|
|
2787
|
-
this.state =
|
|
2802
|
+
this.state = 527;
|
|
2788
2803
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2789
2804
|
}
|
|
2790
2805
|
}
|
|
2791
|
-
this.state =
|
|
2806
|
+
this.state = 530;
|
|
2792
2807
|
this.match(CircuitScriptParser.T__0);
|
|
2793
|
-
this.state =
|
|
2808
|
+
this.state = 531;
|
|
2794
2809
|
this.graphic_expressions_block();
|
|
2795
2810
|
}
|
|
2796
2811
|
}
|
|
@@ -2815,49 +2830,49 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2815
2830
|
try {
|
|
2816
2831
|
this.enterOuterAlt(localContext, 1);
|
|
2817
2832
|
{
|
|
2818
|
-
this.state =
|
|
2833
|
+
this.state = 533;
|
|
2819
2834
|
this.match(CircuitScriptParser.Create);
|
|
2820
|
-
this.state =
|
|
2835
|
+
this.state = 534;
|
|
2821
2836
|
this.match(CircuitScriptParser.Module);
|
|
2822
|
-
this.state =
|
|
2837
|
+
this.state = 535;
|
|
2823
2838
|
this.match(CircuitScriptParser.T__0);
|
|
2824
|
-
this.state =
|
|
2839
|
+
this.state = 536;
|
|
2825
2840
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2826
|
-
this.state =
|
|
2841
|
+
this.state = 537;
|
|
2827
2842
|
this.match(CircuitScriptParser.INDENT);
|
|
2828
|
-
this.state =
|
|
2843
|
+
this.state = 541;
|
|
2829
2844
|
this.errorHandler.sync(this);
|
|
2830
2845
|
_la = this.tokenStream.LA(1);
|
|
2831
2846
|
do {
|
|
2832
2847
|
{
|
|
2833
|
-
this.state =
|
|
2848
|
+
this.state = 541;
|
|
2834
2849
|
this.errorHandler.sync(this);
|
|
2835
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
2850
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 57, this.context)) {
|
|
2836
2851
|
case 1:
|
|
2837
2852
|
{
|
|
2838
|
-
this.state =
|
|
2853
|
+
this.state = 538;
|
|
2839
2854
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2840
2855
|
}
|
|
2841
2856
|
break;
|
|
2842
2857
|
case 2:
|
|
2843
2858
|
{
|
|
2844
|
-
this.state =
|
|
2859
|
+
this.state = 539;
|
|
2845
2860
|
this.property_expr();
|
|
2846
2861
|
}
|
|
2847
2862
|
break;
|
|
2848
2863
|
case 3:
|
|
2849
2864
|
{
|
|
2850
|
-
this.state =
|
|
2865
|
+
this.state = 540;
|
|
2851
2866
|
this.property_block_expr();
|
|
2852
2867
|
}
|
|
2853
2868
|
break;
|
|
2854
2869
|
}
|
|
2855
2870
|
}
|
|
2856
|
-
this.state =
|
|
2871
|
+
this.state = 543;
|
|
2857
2872
|
this.errorHandler.sync(this);
|
|
2858
2873
|
_la = this.tokenStream.LA(1);
|
|
2859
2874
|
} while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 275) !== 0));
|
|
2860
|
-
this.state =
|
|
2875
|
+
this.state = 545;
|
|
2861
2876
|
this.match(CircuitScriptParser.DEDENT);
|
|
2862
2877
|
}
|
|
2863
2878
|
}
|
|
@@ -2883,21 +2898,21 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2883
2898
|
this.enterOuterAlt(localContext, 1);
|
|
2884
2899
|
{
|
|
2885
2900
|
{
|
|
2886
|
-
this.state =
|
|
2901
|
+
this.state = 547;
|
|
2887
2902
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2888
|
-
this.state = 545;
|
|
2889
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2890
2903
|
this.state = 548;
|
|
2904
|
+
this.match(CircuitScriptParser.INDENT);
|
|
2905
|
+
this.state = 551;
|
|
2891
2906
|
this.errorHandler.sync(this);
|
|
2892
2907
|
_la = this.tokenStream.LA(1);
|
|
2893
2908
|
do {
|
|
2894
2909
|
{
|
|
2895
|
-
this.state =
|
|
2910
|
+
this.state = 551;
|
|
2896
2911
|
this.errorHandler.sync(this);
|
|
2897
2912
|
switch (this.tokenStream.LA(1)) {
|
|
2898
2913
|
case CircuitScriptParser.NEWLINE:
|
|
2899
2914
|
{
|
|
2900
|
-
this.state =
|
|
2915
|
+
this.state = 549;
|
|
2901
2916
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2902
2917
|
}
|
|
2903
2918
|
break;
|
|
@@ -2905,7 +2920,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2905
2920
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
2906
2921
|
case CircuitScriptParser.STRING_VALUE:
|
|
2907
2922
|
{
|
|
2908
|
-
this.state =
|
|
2923
|
+
this.state = 550;
|
|
2909
2924
|
this.property_expr();
|
|
2910
2925
|
}
|
|
2911
2926
|
break;
|
|
@@ -2913,11 +2928,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2913
2928
|
throw new antlr.NoViableAltException(this);
|
|
2914
2929
|
}
|
|
2915
2930
|
}
|
|
2916
|
-
this.state =
|
|
2931
|
+
this.state = 553;
|
|
2917
2932
|
this.errorHandler.sync(this);
|
|
2918
2933
|
_la = this.tokenStream.LA(1);
|
|
2919
2934
|
} while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 275) !== 0));
|
|
2920
|
-
this.state =
|
|
2935
|
+
this.state = 555;
|
|
2921
2936
|
this.match(CircuitScriptParser.DEDENT);
|
|
2922
2937
|
}
|
|
2923
2938
|
}
|
|
@@ -2941,7 +2956,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2941
2956
|
this.enterRule(localContext, 98, CircuitScriptParser.RULE_graphic_expr);
|
|
2942
2957
|
let _la;
|
|
2943
2958
|
try {
|
|
2944
|
-
this.state =
|
|
2959
|
+
this.state = 583;
|
|
2945
2960
|
this.errorHandler.sync(this);
|
|
2946
2961
|
switch (this.tokenStream.LA(1)) {
|
|
2947
2962
|
case CircuitScriptParser.Pin:
|
|
@@ -2949,7 +2964,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2949
2964
|
localContext = new GraphicCommandExprContext(localContext);
|
|
2950
2965
|
this.enterOuterAlt(localContext, 1);
|
|
2951
2966
|
{
|
|
2952
|
-
this.state =
|
|
2967
|
+
this.state = 557;
|
|
2953
2968
|
localContext._command = this.tokenStream.LT(1);
|
|
2954
2969
|
_la = this.tokenStream.LA(1);
|
|
2955
2970
|
if (!(_la === 15 || _la === 56)) {
|
|
@@ -2959,37 +2974,37 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
2959
2974
|
this.errorHandler.reportMatch(this);
|
|
2960
2975
|
this.consume();
|
|
2961
2976
|
}
|
|
2962
|
-
this.state =
|
|
2977
|
+
this.state = 559;
|
|
2963
2978
|
this.errorHandler.sync(this);
|
|
2964
2979
|
_la = this.tokenStream.LA(1);
|
|
2965
2980
|
if (_la === 1) {
|
|
2966
2981
|
{
|
|
2967
|
-
this.state =
|
|
2982
|
+
this.state = 558;
|
|
2968
2983
|
this.match(CircuitScriptParser.T__0);
|
|
2969
2984
|
}
|
|
2970
2985
|
}
|
|
2971
|
-
this.state =
|
|
2986
|
+
this.state = 567;
|
|
2972
2987
|
this.errorHandler.sync(this);
|
|
2973
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
2988
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 62, this.context)) {
|
|
2974
2989
|
case 1:
|
|
2975
2990
|
{
|
|
2976
|
-
this.state =
|
|
2991
|
+
this.state = 561;
|
|
2977
2992
|
this.parameters();
|
|
2978
2993
|
}
|
|
2979
2994
|
break;
|
|
2980
2995
|
case 2:
|
|
2981
2996
|
{
|
|
2982
|
-
this.state =
|
|
2997
|
+
this.state = 562;
|
|
2983
2998
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2984
|
-
this.state =
|
|
2999
|
+
this.state = 563;
|
|
2985
3000
|
this.parameters();
|
|
2986
|
-
this.state =
|
|
3001
|
+
this.state = 564;
|
|
2987
3002
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2988
3003
|
}
|
|
2989
3004
|
break;
|
|
2990
3005
|
case 3:
|
|
2991
3006
|
{
|
|
2992
|
-
this.state =
|
|
3007
|
+
this.state = 566;
|
|
2993
3008
|
this.nested_properties_inner();
|
|
2994
3009
|
}
|
|
2995
3010
|
break;
|
|
@@ -3000,33 +3015,33 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3000
3015
|
localContext = new GraphicForExprContext(localContext);
|
|
3001
3016
|
this.enterOuterAlt(localContext, 2);
|
|
3002
3017
|
{
|
|
3003
|
-
this.state =
|
|
3018
|
+
this.state = 569;
|
|
3004
3019
|
this.match(CircuitScriptParser.For);
|
|
3005
|
-
this.state =
|
|
3020
|
+
this.state = 570;
|
|
3006
3021
|
this.match(CircuitScriptParser.ID);
|
|
3007
|
-
this.state =
|
|
3022
|
+
this.state = 575;
|
|
3008
3023
|
this.errorHandler.sync(this);
|
|
3009
3024
|
_la = this.tokenStream.LA(1);
|
|
3010
3025
|
while (_la === 2) {
|
|
3011
3026
|
{
|
|
3012
3027
|
{
|
|
3013
|
-
this.state =
|
|
3028
|
+
this.state = 571;
|
|
3014
3029
|
this.match(CircuitScriptParser.T__1);
|
|
3015
|
-
this.state =
|
|
3030
|
+
this.state = 572;
|
|
3016
3031
|
this.match(CircuitScriptParser.ID);
|
|
3017
3032
|
}
|
|
3018
3033
|
}
|
|
3019
|
-
this.state =
|
|
3034
|
+
this.state = 577;
|
|
3020
3035
|
this.errorHandler.sync(this);
|
|
3021
3036
|
_la = this.tokenStream.LA(1);
|
|
3022
3037
|
}
|
|
3023
|
-
this.state =
|
|
3038
|
+
this.state = 578;
|
|
3024
3039
|
this.match(CircuitScriptParser.In);
|
|
3025
|
-
this.state =
|
|
3040
|
+
this.state = 579;
|
|
3026
3041
|
this.data_expr(0);
|
|
3027
|
-
this.state =
|
|
3042
|
+
this.state = 580;
|
|
3028
3043
|
this.match(CircuitScriptParser.T__0);
|
|
3029
|
-
this.state =
|
|
3044
|
+
this.state = 581;
|
|
3030
3045
|
this.graphic_expressions_block();
|
|
3031
3046
|
}
|
|
3032
3047
|
break;
|
|
@@ -3054,11 +3069,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3054
3069
|
try {
|
|
3055
3070
|
this.enterOuterAlt(localContext, 1);
|
|
3056
3071
|
{
|
|
3057
|
-
this.state =
|
|
3072
|
+
this.state = 585;
|
|
3058
3073
|
this.property_key_expr();
|
|
3059
|
-
this.state =
|
|
3074
|
+
this.state = 586;
|
|
3060
3075
|
this.match(CircuitScriptParser.T__0);
|
|
3061
|
-
this.state =
|
|
3076
|
+
this.state = 587;
|
|
3062
3077
|
this.property_value_expr();
|
|
3063
3078
|
}
|
|
3064
3079
|
}
|
|
@@ -3083,7 +3098,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3083
3098
|
try {
|
|
3084
3099
|
this.enterOuterAlt(localContext, 1);
|
|
3085
3100
|
{
|
|
3086
|
-
this.state =
|
|
3101
|
+
this.state = 589;
|
|
3087
3102
|
_la = this.tokenStream.LA(1);
|
|
3088
3103
|
if (!(((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 19) !== 0))) {
|
|
3089
3104
|
this.errorHandler.recoverInline(this);
|
|
@@ -3113,14 +3128,14 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3113
3128
|
this.enterRule(localContext, 104, CircuitScriptParser.RULE_property_value_expr);
|
|
3114
3129
|
let _la;
|
|
3115
3130
|
try {
|
|
3116
|
-
this.state =
|
|
3131
|
+
this.state = 600;
|
|
3117
3132
|
this.errorHandler.sync(this);
|
|
3118
3133
|
switch (this.tokenStream.LA(1)) {
|
|
3119
3134
|
case CircuitScriptParser.NEWLINE:
|
|
3120
3135
|
localContext = new Nested_propertiesContext(localContext);
|
|
3121
3136
|
this.enterOuterAlt(localContext, 1);
|
|
3122
3137
|
{
|
|
3123
|
-
this.state =
|
|
3138
|
+
this.state = 591;
|
|
3124
3139
|
this.nested_properties_inner();
|
|
3125
3140
|
}
|
|
3126
3141
|
break;
|
|
@@ -3141,21 +3156,21 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3141
3156
|
localContext = new Single_line_propertyContext(localContext);
|
|
3142
3157
|
this.enterOuterAlt(localContext, 2);
|
|
3143
3158
|
{
|
|
3144
|
-
this.state =
|
|
3159
|
+
this.state = 592;
|
|
3145
3160
|
this.data_expr(0);
|
|
3146
|
-
this.state =
|
|
3161
|
+
this.state = 597;
|
|
3147
3162
|
this.errorHandler.sync(this);
|
|
3148
3163
|
_la = this.tokenStream.LA(1);
|
|
3149
3164
|
while (_la === 2) {
|
|
3150
3165
|
{
|
|
3151
3166
|
{
|
|
3152
|
-
this.state =
|
|
3167
|
+
this.state = 593;
|
|
3153
3168
|
this.match(CircuitScriptParser.T__1);
|
|
3154
|
-
this.state =
|
|
3169
|
+
this.state = 594;
|
|
3155
3170
|
this.data_expr(0);
|
|
3156
3171
|
}
|
|
3157
3172
|
}
|
|
3158
|
-
this.state =
|
|
3173
|
+
this.state = 599;
|
|
3159
3174
|
this.errorHandler.sync(this);
|
|
3160
3175
|
_la = this.tokenStream.LA(1);
|
|
3161
3176
|
}
|
|
@@ -3183,27 +3198,27 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3183
3198
|
let localContext = new Wire_atom_exprContext(this.context, this.state);
|
|
3184
3199
|
this.enterRule(localContext, 106, CircuitScriptParser.RULE_wire_atom_expr);
|
|
3185
3200
|
try {
|
|
3186
|
-
this.state =
|
|
3201
|
+
this.state = 608;
|
|
3187
3202
|
this.errorHandler.sync(this);
|
|
3188
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
3203
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 68, this.context)) {
|
|
3189
3204
|
case 1:
|
|
3190
3205
|
localContext = new Wire_expr_direction_valueContext(localContext);
|
|
3191
3206
|
this.enterOuterAlt(localContext, 1);
|
|
3192
3207
|
{
|
|
3193
|
-
this.state = 599;
|
|
3194
|
-
this.match(CircuitScriptParser.ID);
|
|
3195
3208
|
this.state = 602;
|
|
3209
|
+
this.match(CircuitScriptParser.ID);
|
|
3210
|
+
this.state = 605;
|
|
3196
3211
|
this.errorHandler.sync(this);
|
|
3197
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
3212
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 67, this.context)) {
|
|
3198
3213
|
case 1:
|
|
3199
3214
|
{
|
|
3200
|
-
this.state =
|
|
3215
|
+
this.state = 603;
|
|
3201
3216
|
this.match(CircuitScriptParser.INTEGER_VALUE);
|
|
3202
3217
|
}
|
|
3203
3218
|
break;
|
|
3204
3219
|
case 2:
|
|
3205
3220
|
{
|
|
3206
|
-
this.state =
|
|
3221
|
+
this.state = 604;
|
|
3207
3222
|
this.data_expr(0);
|
|
3208
3223
|
}
|
|
3209
3224
|
break;
|
|
@@ -3214,7 +3229,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3214
3229
|
localContext = new Wire_expr_direction_onlyContext(localContext);
|
|
3215
3230
|
this.enterOuterAlt(localContext, 2);
|
|
3216
3231
|
{
|
|
3217
|
-
this.state =
|
|
3232
|
+
this.state = 607;
|
|
3218
3233
|
this.match(CircuitScriptParser.ID);
|
|
3219
3234
|
}
|
|
3220
3235
|
break;
|
|
@@ -3241,23 +3256,23 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3241
3256
|
let alternative;
|
|
3242
3257
|
this.enterOuterAlt(localContext, 1);
|
|
3243
3258
|
{
|
|
3244
|
-
this.state =
|
|
3259
|
+
this.state = 610;
|
|
3245
3260
|
this.match(CircuitScriptParser.Wire);
|
|
3246
|
-
this.state =
|
|
3261
|
+
this.state = 614;
|
|
3247
3262
|
this.errorHandler.sync(this);
|
|
3248
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
3263
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 69, this.context);
|
|
3249
3264
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
3250
3265
|
if (alternative === 1) {
|
|
3251
3266
|
{
|
|
3252
3267
|
{
|
|
3253
|
-
this.state =
|
|
3268
|
+
this.state = 611;
|
|
3254
3269
|
this.wire_atom_expr();
|
|
3255
3270
|
}
|
|
3256
3271
|
}
|
|
3257
3272
|
}
|
|
3258
|
-
this.state =
|
|
3273
|
+
this.state = 616;
|
|
3259
3274
|
this.errorHandler.sync(this);
|
|
3260
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
3275
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 69, this.context);
|
|
3261
3276
|
}
|
|
3262
3277
|
}
|
|
3263
3278
|
}
|
|
@@ -3282,39 +3297,39 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3282
3297
|
try {
|
|
3283
3298
|
this.enterOuterAlt(localContext, 1);
|
|
3284
3299
|
{
|
|
3285
|
-
this.state =
|
|
3300
|
+
this.state = 617;
|
|
3286
3301
|
this.match(CircuitScriptParser.T__5);
|
|
3287
|
-
this.state =
|
|
3302
|
+
this.state = 628;
|
|
3288
3303
|
this.errorHandler.sync(this);
|
|
3289
3304
|
_la = this.tokenStream.LA(1);
|
|
3290
3305
|
while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2147484736) !== 0) || ((((_la - 42)) & ~0x1F) === 0 && ((1 << (_la - 42)) & 1041415) !== 0)) {
|
|
3291
3306
|
{
|
|
3292
3307
|
{
|
|
3293
|
-
this.state =
|
|
3308
|
+
this.state = 618;
|
|
3294
3309
|
this.data_expr(0);
|
|
3295
|
-
this.state =
|
|
3310
|
+
this.state = 623;
|
|
3296
3311
|
this.errorHandler.sync(this);
|
|
3297
3312
|
_la = this.tokenStream.LA(1);
|
|
3298
3313
|
while (_la === 2) {
|
|
3299
3314
|
{
|
|
3300
3315
|
{
|
|
3301
|
-
this.state =
|
|
3316
|
+
this.state = 619;
|
|
3302
3317
|
this.match(CircuitScriptParser.T__1);
|
|
3303
|
-
this.state =
|
|
3318
|
+
this.state = 620;
|
|
3304
3319
|
this.data_expr(0);
|
|
3305
3320
|
}
|
|
3306
3321
|
}
|
|
3307
|
-
this.state =
|
|
3322
|
+
this.state = 625;
|
|
3308
3323
|
this.errorHandler.sync(this);
|
|
3309
3324
|
_la = this.tokenStream.LA(1);
|
|
3310
3325
|
}
|
|
3311
3326
|
}
|
|
3312
3327
|
}
|
|
3313
|
-
this.state =
|
|
3328
|
+
this.state = 630;
|
|
3314
3329
|
this.errorHandler.sync(this);
|
|
3315
3330
|
_la = this.tokenStream.LA(1);
|
|
3316
3331
|
}
|
|
3317
|
-
this.state =
|
|
3332
|
+
this.state = 631;
|
|
3318
3333
|
this.match(CircuitScriptParser.T__6);
|
|
3319
3334
|
}
|
|
3320
3335
|
}
|
|
@@ -3338,20 +3353,20 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3338
3353
|
try {
|
|
3339
3354
|
this.enterOuterAlt(localContext, 1);
|
|
3340
3355
|
{
|
|
3341
|
-
this.state = 630;
|
|
3342
|
-
this.match(CircuitScriptParser.Point);
|
|
3343
3356
|
this.state = 633;
|
|
3357
|
+
this.match(CircuitScriptParser.Point);
|
|
3358
|
+
this.state = 636;
|
|
3344
3359
|
this.errorHandler.sync(this);
|
|
3345
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
3360
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 72, this.context)) {
|
|
3346
3361
|
case 1:
|
|
3347
3362
|
{
|
|
3348
|
-
this.state =
|
|
3363
|
+
this.state = 634;
|
|
3349
3364
|
this.match(CircuitScriptParser.ID);
|
|
3350
3365
|
}
|
|
3351
3366
|
break;
|
|
3352
3367
|
case 2:
|
|
3353
3368
|
{
|
|
3354
|
-
this.state =
|
|
3369
|
+
this.state = 635;
|
|
3355
3370
|
this.data_expr(0);
|
|
3356
3371
|
}
|
|
3357
3372
|
break;
|
|
@@ -3378,9 +3393,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3378
3393
|
try {
|
|
3379
3394
|
this.enterOuterAlt(localContext, 1);
|
|
3380
3395
|
{
|
|
3381
|
-
this.state =
|
|
3396
|
+
this.state = 638;
|
|
3382
3397
|
this.match(CircuitScriptParser.Import);
|
|
3383
|
-
this.state =
|
|
3398
|
+
this.state = 639;
|
|
3384
3399
|
this.match(CircuitScriptParser.ID);
|
|
3385
3400
|
}
|
|
3386
3401
|
}
|
|
@@ -3405,7 +3420,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3405
3420
|
try {
|
|
3406
3421
|
this.enterOuterAlt(localContext, 1);
|
|
3407
3422
|
{
|
|
3408
|
-
this.state =
|
|
3423
|
+
this.state = 641;
|
|
3409
3424
|
_la = this.tokenStream.LA(1);
|
|
3410
3425
|
if (!(_la === 32 || _la === 33)) {
|
|
3411
3426
|
this.errorHandler.recoverInline(this);
|
|
@@ -3414,9 +3429,9 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3414
3429
|
this.errorHandler.reportMatch(this);
|
|
3415
3430
|
this.consume();
|
|
3416
3431
|
}
|
|
3417
|
-
this.state =
|
|
3432
|
+
this.state = 642;
|
|
3418
3433
|
this.match(CircuitScriptParser.T__0);
|
|
3419
|
-
this.state =
|
|
3434
|
+
this.state = 643;
|
|
3420
3435
|
this.expressions_block();
|
|
3421
3436
|
}
|
|
3422
3437
|
}
|
|
@@ -3442,36 +3457,36 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3442
3457
|
let alternative;
|
|
3443
3458
|
this.enterOuterAlt(localContext, 1);
|
|
3444
3459
|
{
|
|
3445
|
-
this.state =
|
|
3460
|
+
this.state = 645;
|
|
3446
3461
|
this.match(CircuitScriptParser.If);
|
|
3447
|
-
this.state =
|
|
3462
|
+
this.state = 646;
|
|
3448
3463
|
this.data_expr(0);
|
|
3449
|
-
this.state =
|
|
3464
|
+
this.state = 647;
|
|
3450
3465
|
this.match(CircuitScriptParser.T__0);
|
|
3451
|
-
this.state =
|
|
3466
|
+
this.state = 648;
|
|
3452
3467
|
this.expressions_block();
|
|
3453
|
-
this.state =
|
|
3468
|
+
this.state = 652;
|
|
3454
3469
|
this.errorHandler.sync(this);
|
|
3455
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
3470
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 73, this.context);
|
|
3456
3471
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
3457
3472
|
if (alternative === 1) {
|
|
3458
3473
|
{
|
|
3459
3474
|
{
|
|
3460
|
-
this.state =
|
|
3475
|
+
this.state = 649;
|
|
3461
3476
|
this.if_inner_expr();
|
|
3462
3477
|
}
|
|
3463
3478
|
}
|
|
3464
3479
|
}
|
|
3465
|
-
this.state =
|
|
3480
|
+
this.state = 654;
|
|
3466
3481
|
this.errorHandler.sync(this);
|
|
3467
|
-
alternative = this.interpreter.adaptivePredict(this.tokenStream,
|
|
3482
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 73, this.context);
|
|
3468
3483
|
}
|
|
3469
|
-
this.state =
|
|
3484
|
+
this.state = 656;
|
|
3470
3485
|
this.errorHandler.sync(this);
|
|
3471
3486
|
_la = this.tokenStream.LA(1);
|
|
3472
3487
|
if (_la === 30) {
|
|
3473
3488
|
{
|
|
3474
|
-
this.state =
|
|
3489
|
+
this.state = 655;
|
|
3475
3490
|
this.else_expr();
|
|
3476
3491
|
}
|
|
3477
3492
|
}
|
|
@@ -3497,15 +3512,15 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3497
3512
|
try {
|
|
3498
3513
|
this.enterOuterAlt(localContext, 1);
|
|
3499
3514
|
{
|
|
3500
|
-
this.state =
|
|
3515
|
+
this.state = 658;
|
|
3501
3516
|
this.match(CircuitScriptParser.Else);
|
|
3502
|
-
this.state =
|
|
3517
|
+
this.state = 659;
|
|
3503
3518
|
this.match(CircuitScriptParser.If);
|
|
3504
|
-
this.state =
|
|
3519
|
+
this.state = 660;
|
|
3505
3520
|
this.data_expr(0);
|
|
3506
|
-
this.state =
|
|
3521
|
+
this.state = 661;
|
|
3507
3522
|
this.match(CircuitScriptParser.T__0);
|
|
3508
|
-
this.state =
|
|
3523
|
+
this.state = 662;
|
|
3509
3524
|
this.expressions_block();
|
|
3510
3525
|
}
|
|
3511
3526
|
}
|
|
@@ -3529,11 +3544,11 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3529
3544
|
try {
|
|
3530
3545
|
this.enterOuterAlt(localContext, 1);
|
|
3531
3546
|
{
|
|
3532
|
-
this.state =
|
|
3547
|
+
this.state = 664;
|
|
3533
3548
|
this.match(CircuitScriptParser.Else);
|
|
3534
|
-
this.state =
|
|
3549
|
+
this.state = 665;
|
|
3535
3550
|
this.match(CircuitScriptParser.T__0);
|
|
3536
|
-
this.state =
|
|
3551
|
+
this.state = 666;
|
|
3537
3552
|
this.expressions_block();
|
|
3538
3553
|
}
|
|
3539
3554
|
}
|
|
@@ -3557,13 +3572,13 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3557
3572
|
try {
|
|
3558
3573
|
this.enterOuterAlt(localContext, 1);
|
|
3559
3574
|
{
|
|
3560
|
-
this.state =
|
|
3575
|
+
this.state = 668;
|
|
3561
3576
|
this.match(CircuitScriptParser.While);
|
|
3562
|
-
this.state =
|
|
3577
|
+
this.state = 669;
|
|
3563
3578
|
this.data_expr(0);
|
|
3564
|
-
this.state =
|
|
3579
|
+
this.state = 670;
|
|
3565
3580
|
this.match(CircuitScriptParser.T__0);
|
|
3566
|
-
this.state =
|
|
3581
|
+
this.state = 671;
|
|
3567
3582
|
this.expressions_block();
|
|
3568
3583
|
}
|
|
3569
3584
|
}
|
|
@@ -3588,33 +3603,33 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3588
3603
|
try {
|
|
3589
3604
|
this.enterOuterAlt(localContext, 1);
|
|
3590
3605
|
{
|
|
3591
|
-
this.state =
|
|
3606
|
+
this.state = 673;
|
|
3592
3607
|
this.match(CircuitScriptParser.For);
|
|
3593
|
-
this.state =
|
|
3608
|
+
this.state = 674;
|
|
3594
3609
|
this.match(CircuitScriptParser.ID);
|
|
3595
|
-
this.state =
|
|
3610
|
+
this.state = 679;
|
|
3596
3611
|
this.errorHandler.sync(this);
|
|
3597
3612
|
_la = this.tokenStream.LA(1);
|
|
3598
3613
|
while (_la === 2) {
|
|
3599
3614
|
{
|
|
3600
3615
|
{
|
|
3601
|
-
this.state =
|
|
3616
|
+
this.state = 675;
|
|
3602
3617
|
this.match(CircuitScriptParser.T__1);
|
|
3603
|
-
this.state =
|
|
3618
|
+
this.state = 676;
|
|
3604
3619
|
this.match(CircuitScriptParser.ID);
|
|
3605
3620
|
}
|
|
3606
3621
|
}
|
|
3607
|
-
this.state =
|
|
3622
|
+
this.state = 681;
|
|
3608
3623
|
this.errorHandler.sync(this);
|
|
3609
3624
|
_la = this.tokenStream.LA(1);
|
|
3610
3625
|
}
|
|
3611
|
-
this.state =
|
|
3626
|
+
this.state = 682;
|
|
3612
3627
|
this.match(CircuitScriptParser.In);
|
|
3613
|
-
this.state =
|
|
3628
|
+
this.state = 683;
|
|
3614
3629
|
this.data_expr(0);
|
|
3615
|
-
this.state =
|
|
3630
|
+
this.state = 684;
|
|
3616
3631
|
this.match(CircuitScriptParser.T__0);
|
|
3617
|
-
this.state =
|
|
3632
|
+
this.state = 685;
|
|
3618
3633
|
this.expressions_block();
|
|
3619
3634
|
}
|
|
3620
3635
|
}
|
|
@@ -3653,7 +3668,7 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3653
3668
|
return true;
|
|
3654
3669
|
}
|
|
3655
3670
|
static _serializedATN = [
|
|
3656
|
-
4, 1, 67,
|
|
3671
|
+
4, 1, 67, 688, 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,
|
|
3657
3672
|
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,
|
|
3658
3673
|
2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20,
|
|
3659
3674
|
7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26,
|
|
@@ -3664,246 +3679,248 @@ export class CircuitScriptParser extends antlr.Parser {
|
|
|
3664
3679
|
2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59,
|
|
3665
3680
|
7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 1, 0, 1, 0, 5, 0, 131, 8, 0,
|
|
3666
3681
|
10, 0, 12, 0, 134, 9, 0, 1, 0, 1, 0, 4, 0, 138, 8, 0, 11, 0, 12, 0, 139, 1, 0, 1, 0, 1, 1,
|
|
3667
|
-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3668
|
-
1,
|
|
3669
|
-
|
|
3670
|
-
5, 1,
|
|
3671
|
-
|
|
3672
|
-
8,
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
1,
|
|
3686
|
-
1, 31, 1, 31,
|
|
3687
|
-
1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
8,
|
|
3695
|
-
3, 39,
|
|
3696
|
-
40,
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
1, 46, 1, 46, 1, 46,
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
12, 55,
|
|
3710
|
-
1,
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
1,
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
0, 0, 0,
|
|
3722
|
-
|
|
3723
|
-
1, 0, 0, 0,
|
|
3724
|
-
0, 0,
|
|
3725
|
-
|
|
3726
|
-
1, 0, 0, 0,
|
|
3727
|
-
0, 0,
|
|
3728
|
-
|
|
3729
|
-
1, 0, 0, 0,
|
|
3730
|
-
0, 0,
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
0,
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
0,
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
0,
|
|
3754
|
-
0,
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
1, 0, 0, 0, 234,
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
259,
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
0, 0, 0,
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
315, 3,
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
1, 0, 0, 0,
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
1, 0, 0, 0,
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
1, 0, 0, 0,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
1, 0, 0, 0,
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
5,
|
|
3841
|
-
1, 0, 0, 0,
|
|
3842
|
-
1, 0, 0, 0,
|
|
3843
|
-
1, 0, 0, 0,
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
1, 0, 0, 0,
|
|
3847
|
-
1, 0, 0, 0,
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
0, 0,
|
|
3857
|
-
0, 0, 527,
|
|
3858
|
-
0, 0,
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
538, 1, 0, 0, 0,
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
0, 573,
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
0, 594,
|
|
3878
|
-
0, 597,
|
|
3879
|
-
0, 0,
|
|
3880
|
-
|
|
3881
|
-
0, 0, 0, 607,
|
|
3882
|
-
1, 0, 0, 0,
|
|
3883
|
-
1, 0, 0, 0, 614,
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
1, 0, 0, 0,
|
|
3887
|
-
1, 0, 0, 0, 628,
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
1, 0, 0, 0, 653,
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
3,
|
|
3899
|
-
5,
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
1, 0, 0, 0,
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3682
|
+
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 156, 8, 1, 1, 2, 1, 2,
|
|
3683
|
+
1, 2, 1, 2, 1, 2, 3, 2, 163, 8, 2, 1, 3, 1, 3, 3, 3, 167, 8, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4,
|
|
3684
|
+
1, 4, 3, 4, 175, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 4, 5, 181, 8, 5, 11, 5, 12, 5, 182, 1, 5, 1,
|
|
3685
|
+
5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 4, 7, 197, 8, 7, 11, 7, 12, 7,
|
|
3686
|
+
198, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10,
|
|
3687
|
+
214, 8, 10, 1, 11, 1, 11, 3, 11, 218, 8, 11, 1, 11, 5, 11, 221, 8, 11, 10, 11, 12, 11,
|
|
3688
|
+
224, 9, 11, 1, 11, 3, 11, 227, 8, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 3, 13, 235,
|
|
3689
|
+
8, 13, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 5, 16, 246, 8, 16,
|
|
3690
|
+
10, 16, 12, 16, 249, 9, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 5, 17, 257, 8, 17,
|
|
3691
|
+
10, 17, 12, 17, 260, 9, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 4, 17, 267, 8, 17, 11, 17,
|
|
3692
|
+
12, 17, 268, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 278, 8, 18, 10, 18,
|
|
3693
|
+
12, 18, 281, 9, 18, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 4, 20, 291,
|
|
3694
|
+
8, 20, 11, 20, 12, 20, 292, 1, 20, 1, 20, 1, 21, 1, 21, 3, 21, 299, 8, 21, 1, 22, 1, 22,
|
|
3695
|
+
1, 22, 1, 22, 3, 22, 305, 8, 22, 1, 23, 1, 23, 3, 23, 309, 8, 23, 1, 24, 1, 24, 1, 25, 1,
|
|
3696
|
+
25, 3, 25, 315, 8, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1,
|
|
3697
|
+
27, 1, 27, 1, 28, 1, 28, 1, 28, 5, 28, 331, 8, 28, 10, 28, 12, 28, 334, 9, 28, 1, 28, 1,
|
|
3698
|
+
28, 5, 28, 338, 8, 28, 10, 28, 12, 28, 341, 9, 28, 1, 28, 1, 28, 1, 28, 5, 28, 346, 8,
|
|
3699
|
+
28, 10, 28, 12, 28, 349, 9, 28, 3, 28, 351, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1,
|
|
3700
|
+
30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 369, 8,
|
|
3701
|
+
31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 379, 8, 31, 1, 31, 1,
|
|
3702
|
+
31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 394,
|
|
3703
|
+
8, 31, 10, 31, 12, 31, 397, 9, 31, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 3, 34, 404, 8, 34,
|
|
3704
|
+
1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 412, 8, 35, 1, 35, 1, 35, 1, 35, 1, 35,
|
|
3705
|
+
1, 35, 1, 35, 4, 35, 420, 8, 35, 11, 35, 12, 35, 421, 1, 35, 1, 35, 1, 36, 1, 36, 3, 36,
|
|
3706
|
+
428, 8, 36, 1, 37, 1, 37, 1, 37, 5, 37, 433, 8, 37, 10, 37, 12, 37, 436, 9, 37, 1, 37,
|
|
3707
|
+
1, 37, 1, 37, 1, 37, 5, 37, 442, 8, 37, 10, 37, 12, 37, 445, 9, 37, 1, 37, 1, 37, 1, 37,
|
|
3708
|
+
1, 37, 1, 37, 1, 37, 1, 37, 5, 37, 454, 8, 37, 10, 37, 12, 37, 457, 9, 37, 3, 37, 459,
|
|
3709
|
+
8, 37, 1, 38, 1, 38, 1, 38, 5, 38, 464, 8, 38, 10, 38, 12, 38, 467, 9, 38, 1, 39, 1, 39,
|
|
3710
|
+
3, 39, 471, 8, 39, 1, 39, 1, 39, 1, 39, 3, 39, 476, 8, 39, 1, 40, 3, 40, 479, 8, 40, 1,
|
|
3711
|
+
40, 1, 40, 4, 40, 483, 8, 40, 11, 40, 12, 40, 484, 1, 41, 3, 41, 488, 8, 41, 1, 41, 1,
|
|
3712
|
+
41, 3, 41, 492, 8, 41, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1,
|
|
3713
|
+
44, 1, 44, 1, 44, 1, 44, 1, 44, 4, 44, 508, 8, 44, 11, 44, 12, 44, 509, 1, 44, 1, 44, 1,
|
|
3714
|
+
45, 1, 45, 1, 45, 1, 45, 4, 45, 518, 8, 45, 11, 45, 12, 45, 519, 1, 45, 1, 45, 1, 46, 1,
|
|
3715
|
+
46, 1, 46, 1, 46, 1, 46, 3, 46, 529, 8, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1,
|
|
3716
|
+
47, 1, 47, 1, 47, 1, 47, 1, 47, 4, 47, 542, 8, 47, 11, 47, 12, 47, 543, 1, 47, 1, 47, 1,
|
|
3717
|
+
48, 1, 48, 1, 48, 1, 48, 4, 48, 552, 8, 48, 11, 48, 12, 48, 553, 1, 48, 1, 48, 1, 49, 1,
|
|
3718
|
+
49, 3, 49, 560, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 568, 8, 49, 1, 49,
|
|
3719
|
+
1, 49, 1, 49, 1, 49, 5, 49, 574, 8, 49, 10, 49, 12, 49, 577, 9, 49, 1, 49, 1, 49, 1, 49,
|
|
3720
|
+
1, 49, 1, 49, 3, 49, 584, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 52, 1, 52,
|
|
3721
|
+
1, 52, 1, 52, 5, 52, 596, 8, 52, 10, 52, 12, 52, 599, 9, 52, 3, 52, 601, 8, 52, 1, 53,
|
|
3722
|
+
1, 53, 1, 53, 3, 53, 606, 8, 53, 1, 53, 3, 53, 609, 8, 53, 1, 54, 1, 54, 5, 54, 613, 8,
|
|
3723
|
+
54, 10, 54, 12, 54, 616, 9, 54, 1, 55, 1, 55, 1, 55, 1, 55, 5, 55, 622, 8, 55, 10, 55,
|
|
3724
|
+
12, 55, 625, 9, 55, 5, 55, 627, 8, 55, 10, 55, 12, 55, 630, 9, 55, 1, 55, 1, 55, 1, 56,
|
|
3725
|
+
1, 56, 1, 56, 3, 56, 637, 8, 56, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59,
|
|
3726
|
+
1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 651, 8, 59, 10, 59, 12, 59, 654, 9, 59, 1, 59, 3, 59,
|
|
3727
|
+
657, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62,
|
|
3728
|
+
1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 5, 63, 678, 8, 63, 10, 63, 12, 63,
|
|
3729
|
+
681, 9, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 0, 1, 62, 64, 0, 2, 4, 6, 8, 10, 12,
|
|
3730
|
+
14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56,
|
|
3731
|
+
58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100,
|
|
3732
|
+
102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 0, 14, 2, 0, 9, 9,
|
|
3733
|
+
19, 21, 1, 0, 56, 57, 2, 0, 57, 57, 60, 60, 2, 0, 54, 54, 57, 57, 1, 0, 47, 51, 1, 0, 44,
|
|
3734
|
+
46, 1, 0, 42, 43, 1, 0, 40, 41, 1, 0, 34, 39, 2, 0, 31, 31, 43, 43, 2, 0, 55, 55, 57, 61,
|
|
3735
|
+
2, 0, 15, 15, 56, 56, 2, 0, 56, 57, 60, 60, 1, 0, 32, 33, 727, 0, 132, 1, 0, 0, 0, 2, 155,
|
|
3736
|
+
1, 0, 0, 0, 4, 162, 1, 0, 0, 0, 6, 166, 1, 0, 0, 0, 8, 174, 1, 0, 0, 0, 10, 176, 1, 0, 0, 0,
|
|
3737
|
+
12, 186, 1, 0, 0, 0, 14, 190, 1, 0, 0, 0, 16, 202, 1, 0, 0, 0, 18, 206, 1, 0, 0, 0, 20, 209,
|
|
3738
|
+
1, 0, 0, 0, 22, 217, 1, 0, 0, 0, 24, 228, 1, 0, 0, 0, 26, 234, 1, 0, 0, 0, 28, 236, 1, 0,
|
|
3739
|
+
0, 0, 30, 238, 1, 0, 0, 0, 32, 241, 1, 0, 0, 0, 34, 250, 1, 0, 0, 0, 36, 272, 1, 0, 0, 0,
|
|
3740
|
+
38, 282, 1, 0, 0, 0, 40, 284, 1, 0, 0, 0, 42, 298, 1, 0, 0, 0, 44, 300, 1, 0, 0, 0, 46, 308,
|
|
3741
|
+
1, 0, 0, 0, 48, 310, 1, 0, 0, 0, 50, 314, 1, 0, 0, 0, 52, 319, 1, 0, 0, 0, 54, 323, 1, 0,
|
|
3742
|
+
0, 0, 56, 350, 1, 0, 0, 0, 58, 352, 1, 0, 0, 0, 60, 356, 1, 0, 0, 0, 62, 378, 1, 0, 0, 0,
|
|
3743
|
+
64, 398, 1, 0, 0, 0, 66, 400, 1, 0, 0, 0, 68, 403, 1, 0, 0, 0, 70, 407, 1, 0, 0, 0, 72, 427,
|
|
3744
|
+
1, 0, 0, 0, 74, 458, 1, 0, 0, 0, 76, 460, 1, 0, 0, 0, 78, 475, 1, 0, 0, 0, 80, 478, 1, 0,
|
|
3745
|
+
0, 0, 82, 487, 1, 0, 0, 0, 84, 493, 1, 0, 0, 0, 86, 496, 1, 0, 0, 0, 88, 500, 1, 0, 0, 0,
|
|
3746
|
+
90, 513, 1, 0, 0, 0, 92, 523, 1, 0, 0, 0, 94, 533, 1, 0, 0, 0, 96, 547, 1, 0, 0, 0, 98, 583,
|
|
3747
|
+
1, 0, 0, 0, 100, 585, 1, 0, 0, 0, 102, 589, 1, 0, 0, 0, 104, 600, 1, 0, 0, 0, 106, 608,
|
|
3748
|
+
1, 0, 0, 0, 108, 610, 1, 0, 0, 0, 110, 617, 1, 0, 0, 0, 112, 633, 1, 0, 0, 0, 114, 638,
|
|
3749
|
+
1, 0, 0, 0, 116, 641, 1, 0, 0, 0, 118, 645, 1, 0, 0, 0, 120, 658, 1, 0, 0, 0, 122, 664,
|
|
3750
|
+
1, 0, 0, 0, 124, 668, 1, 0, 0, 0, 126, 673, 1, 0, 0, 0, 128, 131, 3, 114, 57, 0, 129, 131,
|
|
3751
|
+
5, 64, 0, 0, 130, 128, 1, 0, 0, 0, 130, 129, 1, 0, 0, 0, 131, 134, 1, 0, 0, 0, 132, 130,
|
|
3752
|
+
1, 0, 0, 0, 132, 133, 1, 0, 0, 0, 133, 137, 1, 0, 0, 0, 134, 132, 1, 0, 0, 0, 135, 138,
|
|
3753
|
+
3, 2, 1, 0, 136, 138, 5, 64, 0, 0, 137, 135, 1, 0, 0, 0, 137, 136, 1, 0, 0, 0, 138, 139,
|
|
3754
|
+
1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 141, 1, 0, 0, 0, 141, 142,
|
|
3755
|
+
5, 0, 0, 1, 142, 1, 1, 0, 0, 0, 143, 156, 3, 6, 3, 0, 144, 156, 3, 50, 25, 0, 145, 156,
|
|
3756
|
+
3, 52, 26, 0, 146, 156, 3, 58, 29, 0, 147, 156, 3, 14, 7, 0, 148, 156, 3, 60, 30, 0, 149,
|
|
3757
|
+
156, 3, 70, 35, 0, 150, 156, 3, 80, 40, 0, 151, 156, 3, 114, 57, 0, 152, 156, 3, 76,
|
|
3758
|
+
38, 0, 153, 156, 3, 116, 58, 0, 154, 156, 3, 4, 2, 0, 155, 143, 1, 0, 0, 0, 155, 144,
|
|
3759
|
+
1, 0, 0, 0, 155, 145, 1, 0, 0, 0, 155, 146, 1, 0, 0, 0, 155, 147, 1, 0, 0, 0, 155, 148,
|
|
3760
|
+
1, 0, 0, 0, 155, 149, 1, 0, 0, 0, 155, 150, 1, 0, 0, 0, 155, 151, 1, 0, 0, 0, 155, 152,
|
|
3761
|
+
1, 0, 0, 0, 155, 153, 1, 0, 0, 0, 155, 154, 1, 0, 0, 0, 156, 3, 1, 0, 0, 0, 157, 163, 3,
|
|
3762
|
+
118, 59, 0, 158, 163, 3, 124, 62, 0, 159, 163, 3, 126, 63, 0, 160, 163, 5, 8, 0, 0, 161,
|
|
3763
|
+
163, 5, 28, 0, 0, 162, 157, 1, 0, 0, 0, 162, 158, 1, 0, 0, 0, 162, 159, 1, 0, 0, 0, 162,
|
|
3764
|
+
160, 1, 0, 0, 0, 162, 161, 1, 0, 0, 0, 163, 5, 1, 0, 0, 0, 164, 167, 3, 8, 4, 0, 165, 167,
|
|
3765
|
+
3, 12, 6, 0, 166, 164, 1, 0, 0, 0, 166, 165, 1, 0, 0, 0, 167, 7, 1, 0, 0, 0, 168, 175, 3,
|
|
3766
|
+
24, 12, 0, 169, 175, 3, 32, 16, 0, 170, 175, 3, 30, 15, 0, 171, 175, 3, 40, 20, 0, 172,
|
|
3767
|
+
175, 3, 108, 54, 0, 173, 175, 3, 112, 56, 0, 174, 168, 1, 0, 0, 0, 174, 169, 1, 0, 0,
|
|
3768
|
+
0, 174, 170, 1, 0, 0, 0, 174, 171, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 174, 173, 1, 0, 0,
|
|
3769
|
+
0, 175, 9, 1, 0, 0, 0, 176, 177, 5, 64, 0, 0, 177, 180, 5, 66, 0, 0, 178, 181, 5, 64, 0,
|
|
3770
|
+
0, 179, 181, 3, 2, 1, 0, 180, 178, 1, 0, 0, 0, 180, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0,
|
|
3771
|
+
0, 182, 180, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 184, 1, 0, 0, 0, 184, 185, 5, 67, 0,
|
|
3772
|
+
0, 185, 11, 1, 0, 0, 0, 186, 187, 7, 0, 0, 0, 187, 188, 5, 1, 0, 0, 188, 189, 3, 10, 5,
|
|
3773
|
+
0, 189, 13, 1, 0, 0, 0, 190, 191, 3, 76, 38, 0, 191, 192, 5, 1, 0, 0, 192, 193, 5, 64,
|
|
3774
|
+
0, 0, 193, 196, 5, 66, 0, 0, 194, 197, 5, 64, 0, 0, 195, 197, 3, 16, 8, 0, 196, 194, 1,
|
|
3775
|
+
0, 0, 0, 196, 195, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 198, 199, 1,
|
|
3776
|
+
0, 0, 0, 199, 200, 1, 0, 0, 0, 200, 201, 5, 67, 0, 0, 201, 15, 1, 0, 0, 0, 202, 203, 7,
|
|
3777
|
+
1, 0, 0, 203, 204, 5, 1, 0, 0, 204, 205, 3, 68, 34, 0, 205, 17, 1, 0, 0, 0, 206, 207, 5,
|
|
3778
|
+
15, 0, 0, 207, 208, 3, 62, 31, 0, 208, 19, 1, 0, 0, 0, 209, 210, 5, 56, 0, 0, 210, 213,
|
|
3779
|
+
5, 1, 0, 0, 211, 214, 3, 68, 34, 0, 212, 214, 5, 56, 0, 0, 213, 211, 1, 0, 0, 0, 213, 212,
|
|
3780
|
+
1, 0, 0, 0, 214, 21, 1, 0, 0, 0, 215, 218, 3, 62, 31, 0, 216, 218, 3, 50, 25, 0, 217, 215,
|
|
3781
|
+
1, 0, 0, 0, 217, 216, 1, 0, 0, 0, 218, 222, 1, 0, 0, 0, 219, 221, 3, 20, 10, 0, 220, 219,
|
|
3782
|
+
1, 0, 0, 0, 221, 224, 1, 0, 0, 0, 222, 220, 1, 0, 0, 0, 222, 223, 1, 0, 0, 0, 223, 226,
|
|
3783
|
+
1, 0, 0, 0, 224, 222, 1, 0, 0, 0, 225, 227, 3, 18, 9, 0, 226, 225, 1, 0, 0, 0, 226, 227,
|
|
3784
|
+
1, 0, 0, 0, 227, 23, 1, 0, 0, 0, 228, 229, 5, 16, 0, 0, 229, 230, 3, 22, 11, 0, 230, 25,
|
|
3785
|
+
1, 0, 0, 0, 231, 235, 3, 22, 11, 0, 232, 235, 3, 18, 9, 0, 233, 235, 5, 19, 0, 0, 234,
|
|
3786
|
+
231, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 234, 233, 1, 0, 0, 0, 235, 27, 1, 0, 0, 0, 236, 237,
|
|
3787
|
+
7, 2, 0, 0, 237, 29, 1, 0, 0, 0, 238, 239, 5, 17, 0, 0, 239, 240, 3, 26, 13, 0, 240, 31,
|
|
3788
|
+
1, 0, 0, 0, 241, 242, 5, 18, 0, 0, 242, 247, 3, 26, 13, 0, 243, 244, 5, 2, 0, 0, 244, 246,
|
|
3789
|
+
3, 26, 13, 0, 245, 243, 1, 0, 0, 0, 246, 249, 1, 0, 0, 0, 247, 245, 1, 0, 0, 0, 247, 248,
|
|
3790
|
+
1, 0, 0, 0, 248, 33, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 250, 251, 5, 17, 0, 0, 251, 252,
|
|
3791
|
+
3, 26, 13, 0, 252, 253, 5, 18, 0, 0, 253, 258, 3, 26, 13, 0, 254, 255, 5, 2, 0, 0, 255,
|
|
3792
|
+
257, 3, 26, 13, 0, 256, 254, 1, 0, 0, 0, 257, 260, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 258,
|
|
3793
|
+
259, 1, 0, 0, 0, 259, 261, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 261, 262, 5, 1, 0, 0, 262,
|
|
3794
|
+
263, 5, 64, 0, 0, 263, 266, 5, 66, 0, 0, 264, 267, 5, 64, 0, 0, 265, 267, 3, 36, 18, 0,
|
|
3795
|
+
266, 264, 1, 0, 0, 0, 266, 265, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 266, 1, 0, 0, 0,
|
|
3796
|
+
268, 269, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 271, 5, 67, 0, 0, 271, 35, 1, 0, 0, 0,
|
|
3797
|
+
272, 273, 3, 28, 14, 0, 273, 274, 5, 1, 0, 0, 274, 279, 3, 38, 19, 0, 275, 276, 5, 2,
|
|
3798
|
+
0, 0, 276, 278, 3, 38, 19, 0, 277, 275, 1, 0, 0, 0, 278, 281, 1, 0, 0, 0, 279, 277, 1,
|
|
3799
|
+
0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 37, 1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 282, 283, 7, 3,
|
|
3800
|
+
0, 0, 283, 39, 1, 0, 0, 0, 284, 285, 3, 30, 15, 0, 285, 286, 5, 1, 0, 0, 286, 287, 5, 64,
|
|
3801
|
+
0, 0, 287, 290, 5, 66, 0, 0, 288, 291, 5, 64, 0, 0, 289, 291, 3, 42, 21, 0, 290, 288,
|
|
3802
|
+
1, 0, 0, 0, 290, 289, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 290, 1, 0, 0, 0, 292, 293,
|
|
3803
|
+
1, 0, 0, 0, 293, 294, 1, 0, 0, 0, 294, 295, 5, 67, 0, 0, 295, 41, 1, 0, 0, 0, 296, 299,
|
|
3804
|
+
3, 2, 1, 0, 297, 299, 3, 44, 22, 0, 298, 296, 1, 0, 0, 0, 298, 297, 1, 0, 0, 0, 299, 43,
|
|
3805
|
+
1, 0, 0, 0, 300, 301, 3, 28, 14, 0, 301, 304, 5, 1, 0, 0, 302, 305, 3, 46, 23, 0, 303,
|
|
3806
|
+
305, 3, 48, 24, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 45, 1, 0, 0, 0, 306,
|
|
3807
|
+
309, 3, 2, 1, 0, 307, 309, 5, 54, 0, 0, 308, 306, 1, 0, 0, 0, 308, 307, 1, 0, 0, 0, 309,
|
|
3808
|
+
47, 1, 0, 0, 0, 310, 311, 3, 10, 5, 0, 311, 49, 1, 0, 0, 0, 312, 315, 3, 76, 38, 0, 313,
|
|
3809
|
+
315, 3, 80, 40, 0, 314, 312, 1, 0, 0, 0, 314, 313, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316,
|
|
3810
|
+
317, 5, 3, 0, 0, 317, 318, 3, 62, 31, 0, 318, 51, 1, 0, 0, 0, 319, 320, 3, 76, 38, 0, 320,
|
|
3811
|
+
321, 7, 4, 0, 0, 321, 322, 3, 62, 31, 0, 322, 53, 1, 0, 0, 0, 323, 324, 5, 56, 0, 0, 324,
|
|
3812
|
+
325, 5, 3, 0, 0, 325, 326, 3, 62, 31, 0, 326, 55, 1, 0, 0, 0, 327, 332, 3, 62, 31, 0, 328,
|
|
3813
|
+
329, 5, 2, 0, 0, 329, 331, 3, 62, 31, 0, 330, 328, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332,
|
|
3814
|
+
330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 339, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335,
|
|
3815
|
+
336, 5, 2, 0, 0, 336, 338, 3, 54, 27, 0, 337, 335, 1, 0, 0, 0, 338, 341, 1, 0, 0, 0, 339,
|
|
3816
|
+
337, 1, 0, 0, 0, 339, 340, 1, 0, 0, 0, 340, 351, 1, 0, 0, 0, 341, 339, 1, 0, 0, 0, 342,
|
|
3817
|
+
347, 3, 54, 27, 0, 343, 344, 5, 2, 0, 0, 344, 346, 3, 54, 27, 0, 345, 343, 1, 0, 0, 0,
|
|
3818
|
+
346, 349, 1, 0, 0, 0, 347, 345, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 351, 1, 0, 0, 0,
|
|
3819
|
+
349, 347, 1, 0, 0, 0, 350, 327, 1, 0, 0, 0, 350, 342, 1, 0, 0, 0, 351, 57, 1, 0, 0, 0, 352,
|
|
3820
|
+
353, 3, 76, 38, 0, 353, 354, 5, 3, 0, 0, 354, 355, 3, 62, 31, 0, 355, 59, 1, 0, 0, 0, 356,
|
|
3821
|
+
357, 5, 4, 0, 0, 357, 358, 5, 56, 0, 0, 358, 359, 5, 3, 0, 0, 359, 360, 3, 62, 31, 0, 360,
|
|
3822
|
+
61, 1, 0, 0, 0, 361, 362, 6, 31, -1, 0, 362, 363, 5, 52, 0, 0, 363, 364, 3, 62, 31, 0,
|
|
3823
|
+
364, 365, 5, 53, 0, 0, 365, 379, 1, 0, 0, 0, 366, 369, 3, 68, 34, 0, 367, 369, 3, 76,
|
|
3824
|
+
38, 0, 368, 366, 1, 0, 0, 0, 368, 367, 1, 0, 0, 0, 369, 379, 1, 0, 0, 0, 370, 371, 3, 66,
|
|
3825
|
+
33, 0, 371, 372, 3, 62, 31, 10, 372, 379, 1, 0, 0, 0, 373, 379, 3, 88, 44, 0, 374, 379,
|
|
3826
|
+
3, 92, 46, 0, 375, 379, 3, 94, 47, 0, 376, 379, 3, 80, 40, 0, 377, 379, 3, 110, 55, 0,
|
|
3827
|
+
378, 361, 1, 0, 0, 0, 378, 368, 1, 0, 0, 0, 378, 370, 1, 0, 0, 0, 378, 373, 1, 0, 0, 0,
|
|
3828
|
+
378, 374, 1, 0, 0, 0, 378, 375, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 378, 377, 1, 0, 0, 0,
|
|
3829
|
+
379, 395, 1, 0, 0, 0, 380, 381, 10, 9, 0, 0, 381, 382, 7, 5, 0, 0, 382, 394, 3, 62, 31,
|
|
3830
|
+
10, 383, 384, 10, 8, 0, 0, 384, 385, 7, 6, 0, 0, 385, 394, 3, 62, 31, 9, 386, 387, 10,
|
|
3831
|
+
7, 0, 0, 387, 388, 3, 64, 32, 0, 388, 389, 3, 62, 31, 8, 389, 394, 1, 0, 0, 0, 390, 391,
|
|
3832
|
+
10, 6, 0, 0, 391, 392, 7, 7, 0, 0, 392, 394, 3, 62, 31, 7, 393, 380, 1, 0, 0, 0, 393, 383,
|
|
3833
|
+
1, 0, 0, 0, 393, 386, 1, 0, 0, 0, 393, 390, 1, 0, 0, 0, 394, 397, 1, 0, 0, 0, 395, 393,
|
|
3834
|
+
1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 63, 1, 0, 0, 0, 397, 395, 1, 0, 0, 0, 398, 399, 7,
|
|
3835
|
+
8, 0, 0, 399, 65, 1, 0, 0, 0, 400, 401, 7, 9, 0, 0, 401, 67, 1, 0, 0, 0, 402, 404, 5, 43,
|
|
3836
|
+
0, 0, 403, 402, 1, 0, 0, 0, 403, 404, 1, 0, 0, 0, 404, 405, 1, 0, 0, 0, 405, 406, 7, 10,
|
|
3837
|
+
0, 0, 406, 69, 1, 0, 0, 0, 407, 408, 5, 23, 0, 0, 408, 409, 5, 56, 0, 0, 409, 411, 5, 52,
|
|
3838
|
+
0, 0, 410, 412, 3, 74, 37, 0, 411, 410, 1, 0, 0, 0, 411, 412, 1, 0, 0, 0, 412, 413, 1,
|
|
3839
|
+
0, 0, 0, 413, 414, 5, 53, 0, 0, 414, 415, 5, 1, 0, 0, 415, 416, 5, 64, 0, 0, 416, 419,
|
|
3840
|
+
5, 66, 0, 0, 417, 420, 5, 64, 0, 0, 418, 420, 3, 72, 36, 0, 419, 417, 1, 0, 0, 0, 419,
|
|
3841
|
+
418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422,
|
|
3842
|
+
423, 1, 0, 0, 0, 423, 424, 5, 67, 0, 0, 424, 71, 1, 0, 0, 0, 425, 428, 3, 2, 1, 0, 426,
|
|
3843
|
+
428, 3, 84, 42, 0, 427, 425, 1, 0, 0, 0, 427, 426, 1, 0, 0, 0, 428, 73, 1, 0, 0, 0, 429,
|
|
3844
|
+
434, 5, 56, 0, 0, 430, 431, 5, 2, 0, 0, 431, 433, 5, 56, 0, 0, 432, 430, 1, 0, 0, 0, 433,
|
|
3845
|
+
436, 1, 0, 0, 0, 434, 432, 1, 0, 0, 0, 434, 435, 1, 0, 0, 0, 435, 443, 1, 0, 0, 0, 436,
|
|
3846
|
+
434, 1, 0, 0, 0, 437, 438, 5, 2, 0, 0, 438, 439, 5, 56, 0, 0, 439, 440, 5, 3, 0, 0, 440,
|
|
3847
|
+
442, 3, 68, 34, 0, 441, 437, 1, 0, 0, 0, 442, 445, 1, 0, 0, 0, 443, 441, 1, 0, 0, 0, 443,
|
|
3848
|
+
444, 1, 0, 0, 0, 444, 459, 1, 0, 0, 0, 445, 443, 1, 0, 0, 0, 446, 447, 5, 56, 0, 0, 447,
|
|
3849
|
+
448, 5, 3, 0, 0, 448, 455, 3, 68, 34, 0, 449, 450, 5, 2, 0, 0, 450, 451, 5, 56, 0, 0, 451,
|
|
3850
|
+
452, 5, 3, 0, 0, 452, 454, 3, 68, 34, 0, 453, 449, 1, 0, 0, 0, 454, 457, 1, 0, 0, 0, 455,
|
|
3851
|
+
453, 1, 0, 0, 0, 455, 456, 1, 0, 0, 0, 456, 459, 1, 0, 0, 0, 457, 455, 1, 0, 0, 0, 458,
|
|
3852
|
+
429, 1, 0, 0, 0, 458, 446, 1, 0, 0, 0, 459, 75, 1, 0, 0, 0, 460, 465, 5, 56, 0, 0, 461,
|
|
3853
|
+
462, 5, 5, 0, 0, 462, 464, 5, 56, 0, 0, 463, 461, 1, 0, 0, 0, 464, 467, 1, 0, 0, 0, 465,
|
|
3854
|
+
463, 1, 0, 0, 0, 465, 466, 1, 0, 0, 0, 466, 77, 1, 0, 0, 0, 467, 465, 1, 0, 0, 0, 468, 470,
|
|
3855
|
+
5, 52, 0, 0, 469, 471, 3, 56, 28, 0, 470, 469, 1, 0, 0, 0, 470, 471, 1, 0, 0, 0, 471, 472,
|
|
3856
|
+
1, 0, 0, 0, 472, 476, 5, 53, 0, 0, 473, 474, 5, 5, 0, 0, 474, 476, 5, 56, 0, 0, 475, 468,
|
|
3857
|
+
1, 0, 0, 0, 475, 473, 1, 0, 0, 0, 476, 79, 1, 0, 0, 0, 477, 479, 3, 82, 41, 0, 478, 477,
|
|
3858
|
+
1, 0, 0, 0, 478, 479, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 5, 56, 0, 0, 481, 483,
|
|
3859
|
+
3, 78, 39, 0, 482, 481, 1, 0, 0, 0, 483, 484, 1, 0, 0, 0, 484, 482, 1, 0, 0, 0, 484, 485,
|
|
3860
|
+
1, 0, 0, 0, 485, 81, 1, 0, 0, 0, 486, 488, 5, 42, 0, 0, 487, 486, 1, 0, 0, 0, 487, 488,
|
|
3861
|
+
1, 0, 0, 0, 488, 489, 1, 0, 0, 0, 489, 491, 5, 44, 0, 0, 490, 492, 3, 62, 31, 0, 491, 490,
|
|
3862
|
+
1, 0, 0, 0, 491, 492, 1, 0, 0, 0, 492, 83, 1, 0, 0, 0, 493, 494, 5, 22, 0, 0, 494, 495,
|
|
3863
|
+
3, 62, 31, 0, 495, 85, 1, 0, 0, 0, 496, 497, 3, 102, 51, 0, 497, 498, 5, 1, 0, 0, 498,
|
|
3864
|
+
499, 3, 10, 5, 0, 499, 87, 1, 0, 0, 0, 500, 501, 5, 10, 0, 0, 501, 502, 5, 11, 0, 0, 502,
|
|
3865
|
+
503, 5, 1, 0, 0, 503, 504, 5, 64, 0, 0, 504, 507, 5, 66, 0, 0, 505, 508, 5, 64, 0, 0, 506,
|
|
3866
|
+
508, 3, 100, 50, 0, 507, 505, 1, 0, 0, 0, 507, 506, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509,
|
|
3867
|
+
507, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 512, 5, 67, 0, 0, 512,
|
|
3868
|
+
89, 1, 0, 0, 0, 513, 514, 5, 64, 0, 0, 514, 517, 5, 66, 0, 0, 515, 518, 5, 64, 0, 0, 516,
|
|
3869
|
+
518, 3, 98, 49, 0, 517, 515, 1, 0, 0, 0, 517, 516, 1, 0, 0, 0, 518, 519, 1, 0, 0, 0, 519,
|
|
3870
|
+
517, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 521, 1, 0, 0, 0, 521, 522, 5, 67, 0, 0, 522,
|
|
3871
|
+
91, 1, 0, 0, 0, 523, 524, 5, 10, 0, 0, 524, 528, 5, 12, 0, 0, 525, 526, 5, 52, 0, 0, 526,
|
|
3872
|
+
527, 5, 56, 0, 0, 527, 529, 5, 53, 0, 0, 528, 525, 1, 0, 0, 0, 528, 529, 1, 0, 0, 0, 529,
|
|
3873
|
+
530, 1, 0, 0, 0, 530, 531, 5, 1, 0, 0, 531, 532, 3, 90, 45, 0, 532, 93, 1, 0, 0, 0, 533,
|
|
3874
|
+
534, 5, 10, 0, 0, 534, 535, 5, 13, 0, 0, 535, 536, 5, 1, 0, 0, 536, 537, 5, 64, 0, 0, 537,
|
|
3875
|
+
541, 5, 66, 0, 0, 538, 542, 5, 64, 0, 0, 539, 542, 3, 100, 50, 0, 540, 542, 3, 86, 43,
|
|
3876
|
+
0, 541, 538, 1, 0, 0, 0, 541, 539, 1, 0, 0, 0, 541, 540, 1, 0, 0, 0, 542, 543, 1, 0, 0,
|
|
3877
|
+
0, 543, 541, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 545, 1, 0, 0, 0, 545, 546, 5, 67, 0,
|
|
3878
|
+
0, 546, 95, 1, 0, 0, 0, 547, 548, 5, 64, 0, 0, 548, 551, 5, 66, 0, 0, 549, 552, 5, 64,
|
|
3879
|
+
0, 0, 550, 552, 3, 100, 50, 0, 551, 549, 1, 0, 0, 0, 551, 550, 1, 0, 0, 0, 552, 553, 1,
|
|
3880
|
+
0, 0, 0, 553, 551, 1, 0, 0, 0, 553, 554, 1, 0, 0, 0, 554, 555, 1, 0, 0, 0, 555, 556, 5,
|
|
3881
|
+
67, 0, 0, 556, 97, 1, 0, 0, 0, 557, 559, 7, 11, 0, 0, 558, 560, 5, 1, 0, 0, 559, 558, 1,
|
|
3882
|
+
0, 0, 0, 559, 560, 1, 0, 0, 0, 560, 567, 1, 0, 0, 0, 561, 568, 3, 56, 28, 0, 562, 563,
|
|
3883
|
+
5, 52, 0, 0, 563, 564, 3, 56, 28, 0, 564, 565, 5, 53, 0, 0, 565, 568, 1, 0, 0, 0, 566,
|
|
3884
|
+
568, 3, 96, 48, 0, 567, 561, 1, 0, 0, 0, 567, 562, 1, 0, 0, 0, 567, 566, 1, 0, 0, 0, 568,
|
|
3885
|
+
584, 1, 0, 0, 0, 569, 570, 5, 25, 0, 0, 570, 575, 5, 56, 0, 0, 571, 572, 5, 2, 0, 0, 572,
|
|
3886
|
+
574, 5, 56, 0, 0, 573, 571, 1, 0, 0, 0, 574, 577, 1, 0, 0, 0, 575, 573, 1, 0, 0, 0, 575,
|
|
3887
|
+
576, 1, 0, 0, 0, 576, 578, 1, 0, 0, 0, 577, 575, 1, 0, 0, 0, 578, 579, 5, 26, 0, 0, 579,
|
|
3888
|
+
580, 3, 62, 31, 0, 580, 581, 5, 1, 0, 0, 581, 582, 3, 90, 45, 0, 582, 584, 1, 0, 0, 0,
|
|
3889
|
+
583, 557, 1, 0, 0, 0, 583, 569, 1, 0, 0, 0, 584, 99, 1, 0, 0, 0, 585, 586, 3, 102, 51,
|
|
3890
|
+
0, 586, 587, 5, 1, 0, 0, 587, 588, 3, 104, 52, 0, 588, 101, 1, 0, 0, 0, 589, 590, 7, 12,
|
|
3891
|
+
0, 0, 590, 103, 1, 0, 0, 0, 591, 601, 3, 96, 48, 0, 592, 597, 3, 62, 31, 0, 593, 594,
|
|
3892
|
+
5, 2, 0, 0, 594, 596, 3, 62, 31, 0, 595, 593, 1, 0, 0, 0, 596, 599, 1, 0, 0, 0, 597, 595,
|
|
3893
|
+
1, 0, 0, 0, 597, 598, 1, 0, 0, 0, 598, 601, 1, 0, 0, 0, 599, 597, 1, 0, 0, 0, 600, 591,
|
|
3894
|
+
1, 0, 0, 0, 600, 592, 1, 0, 0, 0, 601, 105, 1, 0, 0, 0, 602, 605, 5, 56, 0, 0, 603, 606,
|
|
3895
|
+
5, 57, 0, 0, 604, 606, 3, 62, 31, 0, 605, 603, 1, 0, 0, 0, 605, 604, 1, 0, 0, 0, 606, 609,
|
|
3896
|
+
1, 0, 0, 0, 607, 609, 5, 56, 0, 0, 608, 602, 1, 0, 0, 0, 608, 607, 1, 0, 0, 0, 609, 107,
|
|
3897
|
+
1, 0, 0, 0, 610, 614, 5, 14, 0, 0, 611, 613, 3, 106, 53, 0, 612, 611, 1, 0, 0, 0, 613,
|
|
3898
|
+
616, 1, 0, 0, 0, 614, 612, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 109, 1, 0, 0, 0, 616,
|
|
3899
|
+
614, 1, 0, 0, 0, 617, 628, 5, 6, 0, 0, 618, 623, 3, 62, 31, 0, 619, 620, 5, 2, 0, 0, 620,
|
|
3900
|
+
622, 3, 62, 31, 0, 621, 619, 1, 0, 0, 0, 622, 625, 1, 0, 0, 0, 623, 621, 1, 0, 0, 0, 623,
|
|
3901
|
+
624, 1, 0, 0, 0, 624, 627, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 626, 618, 1, 0, 0, 0, 627,
|
|
3902
|
+
630, 1, 0, 0, 0, 628, 626, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 631, 1, 0, 0, 0, 630,
|
|
3903
|
+
628, 1, 0, 0, 0, 631, 632, 5, 7, 0, 0, 632, 111, 1, 0, 0, 0, 633, 636, 5, 19, 0, 0, 634,
|
|
3904
|
+
637, 5, 56, 0, 0, 635, 637, 3, 62, 31, 0, 636, 634, 1, 0, 0, 0, 636, 635, 1, 0, 0, 0, 637,
|
|
3905
|
+
113, 1, 0, 0, 0, 638, 639, 5, 24, 0, 0, 639, 640, 5, 56, 0, 0, 640, 115, 1, 0, 0, 0, 641,
|
|
3906
|
+
642, 7, 13, 0, 0, 642, 643, 5, 1, 0, 0, 643, 644, 3, 10, 5, 0, 644, 117, 1, 0, 0, 0, 645,
|
|
3907
|
+
646, 5, 29, 0, 0, 646, 647, 3, 62, 31, 0, 647, 648, 5, 1, 0, 0, 648, 652, 3, 10, 5, 0,
|
|
3908
|
+
649, 651, 3, 120, 60, 0, 650, 649, 1, 0, 0, 0, 651, 654, 1, 0, 0, 0, 652, 650, 1, 0, 0,
|
|
3909
|
+
0, 652, 653, 1, 0, 0, 0, 653, 656, 1, 0, 0, 0, 654, 652, 1, 0, 0, 0, 655, 657, 3, 122,
|
|
3910
|
+
61, 0, 656, 655, 1, 0, 0, 0, 656, 657, 1, 0, 0, 0, 657, 119, 1, 0, 0, 0, 658, 659, 5, 30,
|
|
3911
|
+
0, 0, 659, 660, 5, 29, 0, 0, 660, 661, 3, 62, 31, 0, 661, 662, 5, 1, 0, 0, 662, 663, 3,
|
|
3912
|
+
10, 5, 0, 663, 121, 1, 0, 0, 0, 664, 665, 5, 30, 0, 0, 665, 666, 5, 1, 0, 0, 666, 667,
|
|
3913
|
+
3, 10, 5, 0, 667, 123, 1, 0, 0, 0, 668, 669, 5, 27, 0, 0, 669, 670, 3, 62, 31, 0, 670,
|
|
3914
|
+
671, 5, 1, 0, 0, 671, 672, 3, 10, 5, 0, 672, 125, 1, 0, 0, 0, 673, 674, 5, 25, 0, 0, 674,
|
|
3915
|
+
679, 5, 56, 0, 0, 675, 676, 5, 2, 0, 0, 676, 678, 5, 56, 0, 0, 677, 675, 1, 0, 0, 0, 678,
|
|
3916
|
+
681, 1, 0, 0, 0, 679, 677, 1, 0, 0, 0, 679, 680, 1, 0, 0, 0, 680, 682, 1, 0, 0, 0, 681,
|
|
3917
|
+
679, 1, 0, 0, 0, 682, 683, 5, 26, 0, 0, 683, 684, 3, 62, 31, 0, 684, 685, 5, 1, 0, 0, 685,
|
|
3918
|
+
686, 3, 10, 5, 0, 686, 127, 1, 0, 0, 0, 76, 130, 132, 137, 139, 155, 162, 166, 174,
|
|
3919
|
+
180, 182, 196, 198, 213, 217, 222, 226, 234, 247, 258, 266, 268, 279, 290, 292,
|
|
3920
|
+
298, 304, 308, 314, 332, 339, 347, 350, 368, 378, 393, 395, 403, 411, 419, 421,
|
|
3921
|
+
427, 434, 443, 455, 458, 465, 470, 475, 478, 484, 487, 491, 507, 509, 517, 519,
|
|
3922
|
+
528, 541, 543, 551, 553, 559, 567, 575, 583, 597, 600, 605, 608, 614, 623, 628,
|
|
3923
|
+
636, 652, 656, 679
|
|
3907
3924
|
];
|
|
3908
3925
|
static __ATN;
|
|
3909
3926
|
static get _ATN() {
|
|
@@ -3961,14 +3978,8 @@ export class ExpressionContext extends antlr.ParserRuleContext {
|
|
|
3961
3978
|
constructor(parent, invokingState) {
|
|
3962
3979
|
super(parent, invokingState);
|
|
3963
3980
|
}
|
|
3964
|
-
|
|
3965
|
-
return this.getRuleContext(0,
|
|
3966
|
-
}
|
|
3967
|
-
to_component_expr() {
|
|
3968
|
-
return this.getRuleContext(0, To_component_exprContext);
|
|
3969
|
-
}
|
|
3970
|
-
at_component_expr() {
|
|
3971
|
-
return this.getRuleContext(0, At_component_exprContext);
|
|
3981
|
+
graph_expressions() {
|
|
3982
|
+
return this.getRuleContext(0, Graph_expressionsContext);
|
|
3972
3983
|
}
|
|
3973
3984
|
assignment_expr() {
|
|
3974
3985
|
return this.getRuleContext(0, Assignment_exprContext);
|
|
@@ -3985,38 +3996,39 @@ export class ExpressionContext extends antlr.ParserRuleContext {
|
|
|
3985
3996
|
double_dot_property_set_expr() {
|
|
3986
3997
|
return this.getRuleContext(0, Double_dot_property_set_exprContext);
|
|
3987
3998
|
}
|
|
3988
|
-
break_keyword() {
|
|
3989
|
-
return this.getRuleContext(0, Break_keywordContext);
|
|
3990
|
-
}
|
|
3991
|
-
continue_keyword() {
|
|
3992
|
-
return this.getRuleContext(0, Continue_keywordContext);
|
|
3993
|
-
}
|
|
3994
3999
|
function_def_expr() {
|
|
3995
4000
|
return this.getRuleContext(0, Function_def_exprContext);
|
|
3996
4001
|
}
|
|
3997
4002
|
function_call_expr() {
|
|
3998
4003
|
return this.getRuleContext(0, Function_call_exprContext);
|
|
3999
4004
|
}
|
|
4000
|
-
wire_expr() {
|
|
4001
|
-
return this.getRuleContext(0, Wire_exprContext);
|
|
4002
|
-
}
|
|
4003
4005
|
import_expr() {
|
|
4004
4006
|
return this.getRuleContext(0, Import_exprContext);
|
|
4005
4007
|
}
|
|
4008
|
+
atom_expr() {
|
|
4009
|
+
return this.getRuleContext(0, Atom_exprContext);
|
|
4010
|
+
}
|
|
4006
4011
|
frame_expr() {
|
|
4007
4012
|
return this.getRuleContext(0, Frame_exprContext);
|
|
4008
4013
|
}
|
|
4009
|
-
|
|
4010
|
-
return this.getRuleContext(0,
|
|
4014
|
+
flow_expressions() {
|
|
4015
|
+
return this.getRuleContext(0, Flow_expressionsContext);
|
|
4011
4016
|
}
|
|
4012
|
-
|
|
4013
|
-
return
|
|
4017
|
+
get ruleIndex() {
|
|
4018
|
+
return CircuitScriptParser.RULE_expression;
|
|
4014
4019
|
}
|
|
4015
|
-
|
|
4016
|
-
|
|
4020
|
+
accept(visitor) {
|
|
4021
|
+
if (visitor.visitExpression) {
|
|
4022
|
+
return visitor.visitExpression(this);
|
|
4023
|
+
}
|
|
4024
|
+
else {
|
|
4025
|
+
return visitor.visitChildren(this);
|
|
4026
|
+
}
|
|
4017
4027
|
}
|
|
4018
|
-
|
|
4019
|
-
|
|
4028
|
+
}
|
|
4029
|
+
export class Flow_expressionsContext extends antlr.ParserRuleContext {
|
|
4030
|
+
constructor(parent, invokingState) {
|
|
4031
|
+
super(parent, invokingState);
|
|
4020
4032
|
}
|
|
4021
4033
|
if_expr() {
|
|
4022
4034
|
return this.getRuleContext(0, If_exprContext);
|
|
@@ -4027,12 +4039,74 @@ export class ExpressionContext extends antlr.ParserRuleContext {
|
|
|
4027
4039
|
for_expr() {
|
|
4028
4040
|
return this.getRuleContext(0, For_exprContext);
|
|
4029
4041
|
}
|
|
4042
|
+
Break() {
|
|
4043
|
+
return this.getToken(CircuitScriptParser.Break, 0);
|
|
4044
|
+
}
|
|
4045
|
+
Continue() {
|
|
4046
|
+
return this.getToken(CircuitScriptParser.Continue, 0);
|
|
4047
|
+
}
|
|
4030
4048
|
get ruleIndex() {
|
|
4031
|
-
return CircuitScriptParser.
|
|
4049
|
+
return CircuitScriptParser.RULE_flow_expressions;
|
|
4032
4050
|
}
|
|
4033
4051
|
accept(visitor) {
|
|
4034
|
-
if (visitor.
|
|
4035
|
-
return visitor.
|
|
4052
|
+
if (visitor.visitFlow_expressions) {
|
|
4053
|
+
return visitor.visitFlow_expressions(this);
|
|
4054
|
+
}
|
|
4055
|
+
else {
|
|
4056
|
+
return visitor.visitChildren(this);
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
export class Graph_expressionsContext extends antlr.ParserRuleContext {
|
|
4061
|
+
constructor(parent, invokingState) {
|
|
4062
|
+
super(parent, invokingState);
|
|
4063
|
+
}
|
|
4064
|
+
graph_linear_expression() {
|
|
4065
|
+
return this.getRuleContext(0, Graph_linear_expressionContext);
|
|
4066
|
+
}
|
|
4067
|
+
path_block() {
|
|
4068
|
+
return this.getRuleContext(0, Path_blockContext);
|
|
4069
|
+
}
|
|
4070
|
+
get ruleIndex() {
|
|
4071
|
+
return CircuitScriptParser.RULE_graph_expressions;
|
|
4072
|
+
}
|
|
4073
|
+
accept(visitor) {
|
|
4074
|
+
if (visitor.visitGraph_expressions) {
|
|
4075
|
+
return visitor.visitGraph_expressions(this);
|
|
4076
|
+
}
|
|
4077
|
+
else {
|
|
4078
|
+
return visitor.visitChildren(this);
|
|
4079
|
+
}
|
|
4080
|
+
}
|
|
4081
|
+
}
|
|
4082
|
+
export class Graph_linear_expressionContext extends antlr.ParserRuleContext {
|
|
4083
|
+
constructor(parent, invokingState) {
|
|
4084
|
+
super(parent, invokingState);
|
|
4085
|
+
}
|
|
4086
|
+
add_component_expr() {
|
|
4087
|
+
return this.getRuleContext(0, Add_component_exprContext);
|
|
4088
|
+
}
|
|
4089
|
+
to_component_expr() {
|
|
4090
|
+
return this.getRuleContext(0, To_component_exprContext);
|
|
4091
|
+
}
|
|
4092
|
+
at_component_expr() {
|
|
4093
|
+
return this.getRuleContext(0, At_component_exprContext);
|
|
4094
|
+
}
|
|
4095
|
+
at_block() {
|
|
4096
|
+
return this.getRuleContext(0, At_blockContext);
|
|
4097
|
+
}
|
|
4098
|
+
wire_expr() {
|
|
4099
|
+
return this.getRuleContext(0, Wire_exprContext);
|
|
4100
|
+
}
|
|
4101
|
+
point_expr() {
|
|
4102
|
+
return this.getRuleContext(0, Point_exprContext);
|
|
4103
|
+
}
|
|
4104
|
+
get ruleIndex() {
|
|
4105
|
+
return CircuitScriptParser.RULE_graph_linear_expression;
|
|
4106
|
+
}
|
|
4107
|
+
accept(visitor) {
|
|
4108
|
+
if (visitor.visitGraph_linear_expression) {
|
|
4109
|
+
return visitor.visitGraph_linear_expression(this);
|
|
4036
4110
|
}
|
|
4037
4111
|
else {
|
|
4038
4112
|
return visitor.visitChildren(this);
|
|
@@ -4075,29 +4149,7 @@ export class Expressions_blockContext extends antlr.ParserRuleContext {
|
|
|
4075
4149
|
}
|
|
4076
4150
|
}
|
|
4077
4151
|
}
|
|
4078
|
-
export class
|
|
4079
|
-
constructor(parent, invokingState) {
|
|
4080
|
-
super(parent, invokingState);
|
|
4081
|
-
}
|
|
4082
|
-
path_block_inner(i) {
|
|
4083
|
-
if (i === undefined) {
|
|
4084
|
-
return this.getRuleContexts(Path_block_innerContext);
|
|
4085
|
-
}
|
|
4086
|
-
return this.getRuleContext(i, Path_block_innerContext);
|
|
4087
|
-
}
|
|
4088
|
-
get ruleIndex() {
|
|
4089
|
-
return CircuitScriptParser.RULE_path_blocks;
|
|
4090
|
-
}
|
|
4091
|
-
accept(visitor) {
|
|
4092
|
-
if (visitor.visitPath_blocks) {
|
|
4093
|
-
return visitor.visitPath_blocks(this);
|
|
4094
|
-
}
|
|
4095
|
-
else {
|
|
4096
|
-
return visitor.visitChildren(this);
|
|
4097
|
-
}
|
|
4098
|
-
}
|
|
4099
|
-
}
|
|
4100
|
-
export class Path_block_innerContext extends antlr.ParserRuleContext {
|
|
4152
|
+
export class Path_blockContext extends antlr.ParserRuleContext {
|
|
4101
4153
|
constructor(parent, invokingState) {
|
|
4102
4154
|
super(parent, invokingState);
|
|
4103
4155
|
}
|
|
@@ -4117,11 +4169,11 @@ export class Path_block_innerContext extends antlr.ParserRuleContext {
|
|
|
4117
4169
|
return this.getToken(CircuitScriptParser.Point, 0);
|
|
4118
4170
|
}
|
|
4119
4171
|
get ruleIndex() {
|
|
4120
|
-
return CircuitScriptParser.
|
|
4172
|
+
return CircuitScriptParser.RULE_path_block;
|
|
4121
4173
|
}
|
|
4122
4174
|
accept(visitor) {
|
|
4123
|
-
if (visitor.
|
|
4124
|
-
return visitor.
|
|
4175
|
+
if (visitor.visitPath_block) {
|
|
4176
|
+
return visitor.visitPath_block(this);
|
|
4125
4177
|
}
|
|
4126
4178
|
else {
|
|
4127
4179
|
return visitor.visitChildren(this);
|
|
@@ -4610,53 +4662,18 @@ export class At_block_pin_expression_complexContext extends antlr.ParserRuleCont
|
|
|
4610
4662
|
}
|
|
4611
4663
|
}
|
|
4612
4664
|
}
|
|
4613
|
-
export class Break_keywordContext extends antlr.ParserRuleContext {
|
|
4614
|
-
constructor(parent, invokingState) {
|
|
4615
|
-
super(parent, invokingState);
|
|
4616
|
-
}
|
|
4617
|
-
Break() {
|
|
4618
|
-
return this.getToken(CircuitScriptParser.Break, 0);
|
|
4619
|
-
}
|
|
4620
|
-
get ruleIndex() {
|
|
4621
|
-
return CircuitScriptParser.RULE_break_keyword;
|
|
4622
|
-
}
|
|
4623
|
-
accept(visitor) {
|
|
4624
|
-
if (visitor.visitBreak_keyword) {
|
|
4625
|
-
return visitor.visitBreak_keyword(this);
|
|
4626
|
-
}
|
|
4627
|
-
else {
|
|
4628
|
-
return visitor.visitChildren(this);
|
|
4629
|
-
}
|
|
4630
|
-
}
|
|
4631
|
-
}
|
|
4632
|
-
export class Continue_keywordContext extends antlr.ParserRuleContext {
|
|
4633
|
-
constructor(parent, invokingState) {
|
|
4634
|
-
super(parent, invokingState);
|
|
4635
|
-
}
|
|
4636
|
-
Continue() {
|
|
4637
|
-
return this.getToken(CircuitScriptParser.Continue, 0);
|
|
4638
|
-
}
|
|
4639
|
-
get ruleIndex() {
|
|
4640
|
-
return CircuitScriptParser.RULE_continue_keyword;
|
|
4641
|
-
}
|
|
4642
|
-
accept(visitor) {
|
|
4643
|
-
if (visitor.visitContinue_keyword) {
|
|
4644
|
-
return visitor.visitContinue_keyword(this);
|
|
4645
|
-
}
|
|
4646
|
-
else {
|
|
4647
|
-
return visitor.visitChildren(this);
|
|
4648
|
-
}
|
|
4649
|
-
}
|
|
4650
|
-
}
|
|
4651
4665
|
export class Assignment_exprContext extends antlr.ParserRuleContext {
|
|
4652
4666
|
constructor(parent, invokingState) {
|
|
4653
4667
|
super(parent, invokingState);
|
|
4654
4668
|
}
|
|
4669
|
+
data_expr() {
|
|
4670
|
+
return this.getRuleContext(0, Data_exprContext);
|
|
4671
|
+
}
|
|
4655
4672
|
atom_expr() {
|
|
4656
4673
|
return this.getRuleContext(0, Atom_exprContext);
|
|
4657
4674
|
}
|
|
4658
|
-
|
|
4659
|
-
return this.getRuleContext(0,
|
|
4675
|
+
function_call_expr() {
|
|
4676
|
+
return this.getRuleContext(0, Function_call_exprContext);
|
|
4660
4677
|
}
|
|
4661
4678
|
get ruleIndex() {
|
|
4662
4679
|
return CircuitScriptParser.RULE_assignment_expr;
|