circuitscript 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/cjs/BaseVisitor.js +16 -12
- package/dist/cjs/SemanticTokenVisitor.js +3 -3
- package/dist/cjs/antlr/CircuitScriptLexer.js +189 -166
- package/dist/cjs/antlr/CircuitScriptParser.js +1295 -719
- package/dist/cjs/draw_symbols.js +42 -14
- package/dist/cjs/execute.js +91 -30
- package/dist/cjs/export.js +91 -5
- package/dist/cjs/geometry.js +45 -26
- package/dist/cjs/globals.js +1 -2
- package/dist/cjs/helpers.js +6 -2
- package/dist/cjs/layout.js +37 -17
- package/dist/cjs/main.js +21 -9
- package/dist/cjs/objects/ClassComponent.js +8 -0
- package/dist/cjs/objects/types.js +8 -1
- package/dist/cjs/render.js +1 -1
- package/dist/cjs/visitor.js +131 -23
- package/dist/esm/BaseVisitor.mjs +17 -13
- package/dist/esm/SemanticTokenVisitor.mjs +3 -3
- package/dist/esm/antlr/CircuitScriptLexer.mjs +189 -166
- package/dist/esm/antlr/CircuitScriptParser.mjs +1287 -716
- package/dist/esm/antlr/CircuitScriptVisitor.mjs +6 -1
- package/dist/esm/draw_symbols.mjs +44 -16
- package/dist/esm/execute.mjs +90 -26
- package/dist/esm/export.mjs +89 -6
- package/dist/esm/geometry.mjs +44 -25
- package/dist/esm/globals.mjs +1 -2
- package/dist/esm/helpers.mjs +7 -3
- package/dist/esm/layout.mjs +35 -16
- package/dist/esm/main.mjs +21 -9
- package/dist/esm/objects/ClassComponent.mjs +8 -0
- package/dist/esm/objects/types.mjs +7 -0
- package/dist/esm/render.mjs +2 -2
- package/dist/esm/visitor.mjs +133 -25
- package/dist/types/BaseVisitor.d.ts +2 -5
- package/dist/types/SemanticTokenVisitor.d.ts +2 -2
- package/dist/types/antlr/CircuitScriptLexer.d.ts +29 -22
- package/dist/types/antlr/CircuitScriptParser.d.ts +121 -44
- package/dist/types/antlr/CircuitScriptVisitor.d.ts +12 -2
- package/dist/types/draw_symbols.d.ts +11 -6
- package/dist/types/execute.d.ts +6 -4
- package/dist/types/export.d.ts +27 -1
- package/dist/types/geometry.d.ts +12 -9
- package/dist/types/globals.d.ts +2 -3
- package/dist/types/layout.d.ts +5 -0
- package/dist/types/objects/ClassComponent.d.ts +5 -0
- package/dist/types/objects/Wire.d.ts +2 -1
- package/dist/types/objects/types.d.ts +6 -0
- package/dist/types/visitor.d.ts +7 -3
- package/libs/lib.cst +28 -10
- package/package.json +1 -1
|
@@ -23,8 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.Frame_exprContext = exports.Import_exprContext = exports.Point_exprContext = exports.Wire_exprContext = exports.Wire_expr_direction_onlyContext = exports.Wire_expr_direction_valueContext = exports.Wire_atom_exprContext = exports.Blank_exprContext = exports.Nested_propertiesContext = exports.Single_line_propertyContext = exports.Property_value_exprContext = exports.Property_key_exprContext = exports.Property_exprContext = exports.
|
|
26
|
+
exports.Function_return_exprContext = exports.Net_namespace_exprContext = exports.Function_call_exprContext = exports.Trailer_exprContext = exports.Atom_exprContext = exports.Function_args_exprContext = exports.Function_exprContext = exports.Function_def_exprContext = exports.Value_exprContext = exports.Unary_operatorContext = exports.Binary_operatorContext = exports.RoundedBracketsExprContext = exports.BinaryOperatorExprContext = exports.ValueAtomExprContext = exports.UnaryOperatorExprContext = exports.DataExprContext = exports.LogicalOperatorExprContext = exports.MultiplyExprContext = exports.AdditionExprContext = exports.FunctionCallExprContext = exports.Data_exprContext = exports.Double_dot_property_set_exprContext = exports.Property_set_exprContext = exports.ParametersContext = exports.Keyword_assignment_exprContext = exports.Assignment_exprContext = exports.Break_keywordContext = exports.At_block_pin_expression_complexContext = exports.At_block_pin_expression_simpleContext = exports.At_block_pin_exprContext = exports.At_block_expressionsContext = exports.At_blockContext = exports.At_to_multiple_line_expr_to_pinContext = exports.At_to_multiple_line_exprContext = exports.At_to_multiple_exprContext = exports.To_component_exprContext = exports.At_component_exprContext = exports.Pin_select_expr2Context = exports.Component_select_exprContext = exports.Add_component_exprContext = exports.Data_expr_with_assignmentContext = exports.Component_modifier_exprContext = exports.Pin_select_exprContext = exports.Assignment_expr2Context = exports.Property_set_expr2Context = exports.Path_block_innerContext = exports.Path_blocksContext = exports.ExpressionContext = exports.ScriptContext = exports.CircuitScriptParser = void 0;
|
|
27
|
+
exports.Else_exprContext = exports.If_inner_exprContext = exports.If_exprContext = exports.Frame_exprContext = exports.Import_exprContext = exports.Point_exprContext = exports.Wire_exprContext = exports.Wire_expr_direction_onlyContext = exports.Wire_expr_direction_valueContext = exports.Wire_atom_exprContext = exports.Blank_exprContext = exports.Nested_propertiesContext = exports.Single_line_propertyContext = exports.Property_value_exprContext = exports.Property_key_exprContext = exports.Property_exprContext = exports.Graphic_exprContext = exports.Nested_properties_innerContext = exports.Create_graphic_exprContext = exports.Create_component_exprContext = void 0;
|
|
28
28
|
const antlr = __importStar(require("antlr4ng"));
|
|
29
29
|
class CircuitScriptParser extends antlr.Parser {
|
|
30
30
|
get grammarFileName() { return "CircuitScript.g4"; }
|
|
@@ -46,12 +46,12 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
46
46
|
try {
|
|
47
47
|
this.enterOuterAlt(localContext, 1);
|
|
48
48
|
{
|
|
49
|
-
this.state =
|
|
49
|
+
this.state = 114;
|
|
50
50
|
this.errorHandler.sync(this);
|
|
51
51
|
_la = this.tokenStream.LA(1);
|
|
52
52
|
do {
|
|
53
53
|
{
|
|
54
|
-
this.state =
|
|
54
|
+
this.state = 114;
|
|
55
55
|
this.errorHandler.sync(this);
|
|
56
56
|
switch (this.tokenStream.LA(1)) {
|
|
57
57
|
case CircuitScriptParser.T__3:
|
|
@@ -66,18 +66,19 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
66
66
|
case CircuitScriptParser.Parallel:
|
|
67
67
|
case CircuitScriptParser.Define:
|
|
68
68
|
case CircuitScriptParser.Import:
|
|
69
|
+
case CircuitScriptParser.If:
|
|
69
70
|
case CircuitScriptParser.Frame:
|
|
70
71
|
case CircuitScriptParser.Addition:
|
|
71
72
|
case CircuitScriptParser.Divide:
|
|
72
73
|
case CircuitScriptParser.ID:
|
|
73
74
|
{
|
|
74
|
-
this.state =
|
|
75
|
+
this.state = 112;
|
|
75
76
|
this.expression();
|
|
76
77
|
}
|
|
77
78
|
break;
|
|
78
79
|
case CircuitScriptParser.NEWLINE:
|
|
79
80
|
{
|
|
80
|
-
this.state =
|
|
81
|
+
this.state = 113;
|
|
81
82
|
this.match(CircuitScriptParser.NEWLINE);
|
|
82
83
|
}
|
|
83
84
|
break;
|
|
@@ -85,11 +86,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
85
86
|
throw new antlr.NoViableAltException(this);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
|
-
this.state =
|
|
89
|
+
this.state = 116;
|
|
89
90
|
this.errorHandler.sync(this);
|
|
90
91
|
_la = this.tokenStream.LA(1);
|
|
91
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
92
|
-
this.state =
|
|
92
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
93
|
+
this.state = 118;
|
|
93
94
|
this.match(CircuitScriptParser.EOF);
|
|
94
95
|
}
|
|
95
96
|
}
|
|
@@ -111,128 +112,135 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
111
112
|
let localContext = new ExpressionContext(this.context, this.state);
|
|
112
113
|
this.enterRule(localContext, 2, CircuitScriptParser.RULE_expression);
|
|
113
114
|
try {
|
|
114
|
-
this.state =
|
|
115
|
+
this.state = 138;
|
|
115
116
|
this.errorHandler.sync(this);
|
|
116
117
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 2, this.context)) {
|
|
117
118
|
case 1:
|
|
118
119
|
this.enterOuterAlt(localContext, 1);
|
|
119
120
|
{
|
|
120
|
-
this.state =
|
|
121
|
+
this.state = 120;
|
|
121
122
|
this.add_component_expr();
|
|
122
123
|
}
|
|
123
124
|
break;
|
|
124
125
|
case 2:
|
|
125
126
|
this.enterOuterAlt(localContext, 2);
|
|
126
127
|
{
|
|
127
|
-
this.state =
|
|
128
|
+
this.state = 121;
|
|
128
129
|
this.to_component_expr();
|
|
129
130
|
}
|
|
130
131
|
break;
|
|
131
132
|
case 3:
|
|
132
133
|
this.enterOuterAlt(localContext, 3);
|
|
133
134
|
{
|
|
134
|
-
this.state =
|
|
135
|
+
this.state = 122;
|
|
135
136
|
this.at_component_expr();
|
|
136
137
|
}
|
|
137
138
|
break;
|
|
138
139
|
case 4:
|
|
139
140
|
this.enterOuterAlt(localContext, 4);
|
|
140
141
|
{
|
|
141
|
-
this.state =
|
|
142
|
+
this.state = 123;
|
|
142
143
|
this.assignment_expr();
|
|
143
144
|
}
|
|
144
145
|
break;
|
|
145
146
|
case 5:
|
|
146
147
|
this.enterOuterAlt(localContext, 5);
|
|
147
148
|
{
|
|
148
|
-
this.state =
|
|
149
|
+
this.state = 124;
|
|
149
150
|
this.property_set_expr();
|
|
150
151
|
}
|
|
151
152
|
break;
|
|
152
153
|
case 6:
|
|
153
154
|
this.enterOuterAlt(localContext, 6);
|
|
154
155
|
{
|
|
155
|
-
this.state =
|
|
156
|
+
this.state = 125;
|
|
156
157
|
this.property_set_expr2();
|
|
157
158
|
}
|
|
158
159
|
break;
|
|
159
160
|
case 7:
|
|
160
161
|
this.enterOuterAlt(localContext, 7);
|
|
161
162
|
{
|
|
162
|
-
this.state =
|
|
163
|
+
this.state = 126;
|
|
163
164
|
this.double_dot_property_set_expr();
|
|
164
165
|
}
|
|
165
166
|
break;
|
|
166
167
|
case 8:
|
|
167
168
|
this.enterOuterAlt(localContext, 8);
|
|
168
169
|
{
|
|
169
|
-
this.state =
|
|
170
|
+
this.state = 127;
|
|
170
171
|
this.break_keyword();
|
|
171
172
|
}
|
|
172
173
|
break;
|
|
173
174
|
case 9:
|
|
174
175
|
this.enterOuterAlt(localContext, 9);
|
|
175
176
|
{
|
|
176
|
-
this.state =
|
|
177
|
+
this.state = 128;
|
|
177
178
|
this.function_def_expr();
|
|
178
179
|
}
|
|
179
180
|
break;
|
|
180
181
|
case 10:
|
|
181
182
|
this.enterOuterAlt(localContext, 10);
|
|
182
183
|
{
|
|
183
|
-
this.state =
|
|
184
|
+
this.state = 129;
|
|
184
185
|
this.function_call_expr();
|
|
185
186
|
}
|
|
186
187
|
break;
|
|
187
188
|
case 11:
|
|
188
189
|
this.enterOuterAlt(localContext, 11);
|
|
189
190
|
{
|
|
190
|
-
this.state =
|
|
191
|
+
this.state = 130;
|
|
191
192
|
this.wire_expr();
|
|
192
193
|
}
|
|
193
194
|
break;
|
|
194
195
|
case 12:
|
|
195
196
|
this.enterOuterAlt(localContext, 12);
|
|
196
197
|
{
|
|
197
|
-
this.state =
|
|
198
|
+
this.state = 131;
|
|
198
199
|
this.import_expr();
|
|
199
200
|
}
|
|
200
201
|
break;
|
|
201
202
|
case 13:
|
|
202
203
|
this.enterOuterAlt(localContext, 13);
|
|
203
204
|
{
|
|
204
|
-
this.state =
|
|
205
|
+
this.state = 132;
|
|
205
206
|
this.frame_expr();
|
|
206
207
|
}
|
|
207
208
|
break;
|
|
208
209
|
case 14:
|
|
209
210
|
this.enterOuterAlt(localContext, 14);
|
|
210
211
|
{
|
|
211
|
-
this.state =
|
|
212
|
+
this.state = 133;
|
|
212
213
|
this.atom_expr();
|
|
213
214
|
}
|
|
214
215
|
break;
|
|
215
216
|
case 15:
|
|
216
217
|
this.enterOuterAlt(localContext, 15);
|
|
217
218
|
{
|
|
218
|
-
this.state =
|
|
219
|
+
this.state = 134;
|
|
219
220
|
this.at_block();
|
|
220
221
|
}
|
|
221
222
|
break;
|
|
222
223
|
case 16:
|
|
223
224
|
this.enterOuterAlt(localContext, 16);
|
|
224
225
|
{
|
|
225
|
-
this.state =
|
|
226
|
+
this.state = 135;
|
|
226
227
|
this.path_blocks();
|
|
227
228
|
}
|
|
228
229
|
break;
|
|
229
230
|
case 17:
|
|
230
231
|
this.enterOuterAlt(localContext, 17);
|
|
231
232
|
{
|
|
232
|
-
this.state =
|
|
233
|
+
this.state = 136;
|
|
233
234
|
this.point_expr();
|
|
234
235
|
}
|
|
235
236
|
break;
|
|
237
|
+
case 18:
|
|
238
|
+
this.enterOuterAlt(localContext, 18);
|
|
239
|
+
{
|
|
240
|
+
this.state = 137;
|
|
241
|
+
this.if_expr();
|
|
242
|
+
}
|
|
243
|
+
break;
|
|
236
244
|
}
|
|
237
245
|
}
|
|
238
246
|
catch (re) {
|
|
@@ -256,7 +264,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
256
264
|
let alternative;
|
|
257
265
|
this.enterOuterAlt(localContext, 1);
|
|
258
266
|
{
|
|
259
|
-
this.state =
|
|
267
|
+
this.state = 141;
|
|
260
268
|
this.errorHandler.sync(this);
|
|
261
269
|
alternative = 1;
|
|
262
270
|
do {
|
|
@@ -264,7 +272,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
264
272
|
case 1:
|
|
265
273
|
{
|
|
266
274
|
{
|
|
267
|
-
this.state =
|
|
275
|
+
this.state = 140;
|
|
268
276
|
this.path_block_inner();
|
|
269
277
|
}
|
|
270
278
|
}
|
|
@@ -272,7 +280,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
272
280
|
default:
|
|
273
281
|
throw new antlr.NoViableAltException(this);
|
|
274
282
|
}
|
|
275
|
-
this.state =
|
|
283
|
+
this.state = 143;
|
|
276
284
|
this.errorHandler.sync(this);
|
|
277
285
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 3, this.context);
|
|
278
286
|
} while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER);
|
|
@@ -299,7 +307,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
299
307
|
try {
|
|
300
308
|
this.enterOuterAlt(localContext, 1);
|
|
301
309
|
{
|
|
302
|
-
this.state =
|
|
310
|
+
this.state = 145;
|
|
303
311
|
_la = this.tokenStream.LA(1);
|
|
304
312
|
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & 1835520) !== 0))) {
|
|
305
313
|
this.errorHandler.recoverInline(this);
|
|
@@ -308,23 +316,23 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
308
316
|
this.errorHandler.reportMatch(this);
|
|
309
317
|
this.consume();
|
|
310
318
|
}
|
|
311
|
-
this.state =
|
|
319
|
+
this.state = 146;
|
|
312
320
|
this.match(CircuitScriptParser.T__0);
|
|
313
|
-
this.state =
|
|
321
|
+
this.state = 147;
|
|
314
322
|
this.match(CircuitScriptParser.NEWLINE);
|
|
315
|
-
this.state =
|
|
323
|
+
this.state = 148;
|
|
316
324
|
this.match(CircuitScriptParser.INDENT);
|
|
317
|
-
this.state =
|
|
325
|
+
this.state = 151;
|
|
318
326
|
this.errorHandler.sync(this);
|
|
319
327
|
_la = this.tokenStream.LA(1);
|
|
320
328
|
do {
|
|
321
329
|
{
|
|
322
|
-
this.state =
|
|
330
|
+
this.state = 151;
|
|
323
331
|
this.errorHandler.sync(this);
|
|
324
332
|
switch (this.tokenStream.LA(1)) {
|
|
325
333
|
case CircuitScriptParser.NEWLINE:
|
|
326
334
|
{
|
|
327
|
-
this.state =
|
|
335
|
+
this.state = 149;
|
|
328
336
|
this.match(CircuitScriptParser.NEWLINE);
|
|
329
337
|
}
|
|
330
338
|
break;
|
|
@@ -340,12 +348,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
340
348
|
case CircuitScriptParser.Parallel:
|
|
341
349
|
case CircuitScriptParser.Define:
|
|
342
350
|
case CircuitScriptParser.Import:
|
|
351
|
+
case CircuitScriptParser.If:
|
|
343
352
|
case CircuitScriptParser.Frame:
|
|
344
353
|
case CircuitScriptParser.Addition:
|
|
345
354
|
case CircuitScriptParser.Divide:
|
|
346
355
|
case CircuitScriptParser.ID:
|
|
347
356
|
{
|
|
348
|
-
this.state =
|
|
357
|
+
this.state = 150;
|
|
349
358
|
this.expression();
|
|
350
359
|
}
|
|
351
360
|
break;
|
|
@@ -353,11 +362,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
353
362
|
throw new antlr.NoViableAltException(this);
|
|
354
363
|
}
|
|
355
364
|
}
|
|
356
|
-
this.state =
|
|
365
|
+
this.state = 153;
|
|
357
366
|
this.errorHandler.sync(this);
|
|
358
367
|
_la = this.tokenStream.LA(1);
|
|
359
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
360
|
-
this.state =
|
|
368
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
369
|
+
this.state = 155;
|
|
361
370
|
this.match(CircuitScriptParser.DEDENT);
|
|
362
371
|
}
|
|
363
372
|
}
|
|
@@ -382,32 +391,32 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
382
391
|
try {
|
|
383
392
|
this.enterOuterAlt(localContext, 1);
|
|
384
393
|
{
|
|
385
|
-
this.state =
|
|
394
|
+
this.state = 157;
|
|
386
395
|
this.atom_expr();
|
|
387
|
-
this.state =
|
|
396
|
+
this.state = 158;
|
|
388
397
|
this.match(CircuitScriptParser.T__0);
|
|
389
|
-
this.state =
|
|
398
|
+
this.state = 159;
|
|
390
399
|
this.match(CircuitScriptParser.NEWLINE);
|
|
391
|
-
this.state =
|
|
400
|
+
this.state = 160;
|
|
392
401
|
this.match(CircuitScriptParser.INDENT);
|
|
393
|
-
this.state =
|
|
402
|
+
this.state = 163;
|
|
394
403
|
this.errorHandler.sync(this);
|
|
395
404
|
_la = this.tokenStream.LA(1);
|
|
396
405
|
do {
|
|
397
406
|
{
|
|
398
|
-
this.state =
|
|
407
|
+
this.state = 163;
|
|
399
408
|
this.errorHandler.sync(this);
|
|
400
409
|
switch (this.tokenStream.LA(1)) {
|
|
401
410
|
case CircuitScriptParser.NEWLINE:
|
|
402
411
|
{
|
|
403
|
-
this.state =
|
|
412
|
+
this.state = 161;
|
|
404
413
|
this.match(CircuitScriptParser.NEWLINE);
|
|
405
414
|
}
|
|
406
415
|
break;
|
|
407
416
|
case CircuitScriptParser.ID:
|
|
408
417
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
409
418
|
{
|
|
410
|
-
this.state =
|
|
419
|
+
this.state = 162;
|
|
411
420
|
this.assignment_expr2();
|
|
412
421
|
}
|
|
413
422
|
break;
|
|
@@ -415,11 +424,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
415
424
|
throw new antlr.NoViableAltException(this);
|
|
416
425
|
}
|
|
417
426
|
}
|
|
418
|
-
this.state =
|
|
427
|
+
this.state = 165;
|
|
419
428
|
this.errorHandler.sync(this);
|
|
420
429
|
_la = this.tokenStream.LA(1);
|
|
421
|
-
} while (((((_la -
|
|
422
|
-
this.state =
|
|
430
|
+
} while (((((_la - 44)) & ~0x1F) === 0 && ((1 << (_la - 44)) & 259) !== 0));
|
|
431
|
+
this.state = 167;
|
|
423
432
|
this.match(CircuitScriptParser.DEDENT);
|
|
424
433
|
}
|
|
425
434
|
}
|
|
@@ -444,18 +453,18 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
444
453
|
try {
|
|
445
454
|
this.enterOuterAlt(localContext, 1);
|
|
446
455
|
{
|
|
447
|
-
this.state =
|
|
456
|
+
this.state = 169;
|
|
448
457
|
_la = this.tokenStream.LA(1);
|
|
449
|
-
if (!(_la ===
|
|
458
|
+
if (!(_la === 44 || _la === 45)) {
|
|
450
459
|
this.errorHandler.recoverInline(this);
|
|
451
460
|
}
|
|
452
461
|
else {
|
|
453
462
|
this.errorHandler.reportMatch(this);
|
|
454
463
|
this.consume();
|
|
455
464
|
}
|
|
456
|
-
this.state =
|
|
465
|
+
this.state = 170;
|
|
457
466
|
this.match(CircuitScriptParser.T__0);
|
|
458
|
-
this.state =
|
|
467
|
+
this.state = 171;
|
|
459
468
|
this.value_expr();
|
|
460
469
|
}
|
|
461
470
|
}
|
|
@@ -480,11 +489,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
480
489
|
try {
|
|
481
490
|
this.enterOuterAlt(localContext, 1);
|
|
482
491
|
{
|
|
483
|
-
this.state =
|
|
492
|
+
this.state = 173;
|
|
484
493
|
this.match(CircuitScriptParser.Pin);
|
|
485
|
-
this.state =
|
|
494
|
+
this.state = 174;
|
|
486
495
|
_la = this.tokenStream.LA(1);
|
|
487
|
-
if (!(_la ===
|
|
496
|
+
if (!(_la === 45 || _la === 48)) {
|
|
488
497
|
this.errorHandler.recoverInline(this);
|
|
489
498
|
}
|
|
490
499
|
else {
|
|
@@ -513,11 +522,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
513
522
|
try {
|
|
514
523
|
this.enterOuterAlt(localContext, 1);
|
|
515
524
|
{
|
|
516
|
-
this.state =
|
|
525
|
+
this.state = 176;
|
|
517
526
|
this.match(CircuitScriptParser.ID);
|
|
518
|
-
this.state =
|
|
527
|
+
this.state = 177;
|
|
519
528
|
this.match(CircuitScriptParser.T__0);
|
|
520
|
-
this.state =
|
|
529
|
+
this.state = 180;
|
|
521
530
|
this.errorHandler.sync(this);
|
|
522
531
|
switch (this.tokenStream.LA(1)) {
|
|
523
532
|
case CircuitScriptParser.T__5:
|
|
@@ -529,13 +538,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
529
538
|
case CircuitScriptParser.STRING_VALUE:
|
|
530
539
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
531
540
|
{
|
|
532
|
-
this.state =
|
|
541
|
+
this.state = 178;
|
|
533
542
|
this.value_expr();
|
|
534
543
|
}
|
|
535
544
|
break;
|
|
536
545
|
case CircuitScriptParser.ID:
|
|
537
546
|
{
|
|
538
|
-
this.state =
|
|
547
|
+
this.state = 179;
|
|
539
548
|
this.match(CircuitScriptParser.ID);
|
|
540
549
|
}
|
|
541
550
|
break;
|
|
@@ -566,44 +575,44 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
566
575
|
let alternative;
|
|
567
576
|
this.enterOuterAlt(localContext, 1);
|
|
568
577
|
{
|
|
569
|
-
this.state =
|
|
578
|
+
this.state = 184;
|
|
570
579
|
this.errorHandler.sync(this);
|
|
571
580
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 9, this.context)) {
|
|
572
581
|
case 1:
|
|
573
582
|
{
|
|
574
|
-
this.state =
|
|
583
|
+
this.state = 182;
|
|
575
584
|
this.data_expr(0);
|
|
576
585
|
}
|
|
577
586
|
break;
|
|
578
587
|
case 2:
|
|
579
588
|
{
|
|
580
|
-
this.state =
|
|
589
|
+
this.state = 183;
|
|
581
590
|
this.assignment_expr();
|
|
582
591
|
}
|
|
583
592
|
break;
|
|
584
593
|
}
|
|
585
|
-
this.state =
|
|
594
|
+
this.state = 189;
|
|
586
595
|
this.errorHandler.sync(this);
|
|
587
596
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 10, this.context);
|
|
588
597
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
589
598
|
if (alternative === 1) {
|
|
590
599
|
{
|
|
591
600
|
{
|
|
592
|
-
this.state =
|
|
601
|
+
this.state = 186;
|
|
593
602
|
this.component_modifier_expr();
|
|
594
603
|
}
|
|
595
604
|
}
|
|
596
605
|
}
|
|
597
|
-
this.state =
|
|
606
|
+
this.state = 191;
|
|
598
607
|
this.errorHandler.sync(this);
|
|
599
608
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 10, this.context);
|
|
600
609
|
}
|
|
601
|
-
this.state =
|
|
610
|
+
this.state = 193;
|
|
602
611
|
this.errorHandler.sync(this);
|
|
603
612
|
_la = this.tokenStream.LA(1);
|
|
604
613
|
if (_la === 14) {
|
|
605
614
|
{
|
|
606
|
-
this.state =
|
|
615
|
+
this.state = 192;
|
|
607
616
|
this.pin_select_expr();
|
|
608
617
|
}
|
|
609
618
|
}
|
|
@@ -629,9 +638,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
629
638
|
try {
|
|
630
639
|
this.enterOuterAlt(localContext, 1);
|
|
631
640
|
{
|
|
632
|
-
this.state =
|
|
641
|
+
this.state = 195;
|
|
633
642
|
this.match(CircuitScriptParser.Add);
|
|
634
|
-
this.state =
|
|
643
|
+
this.state = 196;
|
|
635
644
|
this.data_expr_with_assignment();
|
|
636
645
|
}
|
|
637
646
|
}
|
|
@@ -653,7 +662,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
653
662
|
let localContext = new Component_select_exprContext(this.context, this.state);
|
|
654
663
|
this.enterRule(localContext, 20, CircuitScriptParser.RULE_component_select_expr);
|
|
655
664
|
try {
|
|
656
|
-
this.state =
|
|
665
|
+
this.state = 200;
|
|
657
666
|
this.errorHandler.sync(this);
|
|
658
667
|
switch (this.tokenStream.LA(1)) {
|
|
659
668
|
case CircuitScriptParser.T__5:
|
|
@@ -672,14 +681,14 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
672
681
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
673
682
|
this.enterOuterAlt(localContext, 1);
|
|
674
683
|
{
|
|
675
|
-
this.state =
|
|
684
|
+
this.state = 198;
|
|
676
685
|
this.data_expr_with_assignment();
|
|
677
686
|
}
|
|
678
687
|
break;
|
|
679
688
|
case CircuitScriptParser.Pin:
|
|
680
689
|
this.enterOuterAlt(localContext, 2);
|
|
681
690
|
{
|
|
682
|
-
this.state =
|
|
691
|
+
this.state = 199;
|
|
683
692
|
this.pin_select_expr();
|
|
684
693
|
}
|
|
685
694
|
break;
|
|
@@ -708,9 +717,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
708
717
|
try {
|
|
709
718
|
this.enterOuterAlt(localContext, 1);
|
|
710
719
|
{
|
|
711
|
-
this.state =
|
|
720
|
+
this.state = 202;
|
|
712
721
|
_la = this.tokenStream.LA(1);
|
|
713
|
-
if (!(_la ===
|
|
722
|
+
if (!(_la === 45 || _la === 48)) {
|
|
714
723
|
this.errorHandler.recoverInline(this);
|
|
715
724
|
}
|
|
716
725
|
else {
|
|
@@ -739,9 +748,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
739
748
|
try {
|
|
740
749
|
this.enterOuterAlt(localContext, 1);
|
|
741
750
|
{
|
|
742
|
-
this.state =
|
|
751
|
+
this.state = 204;
|
|
743
752
|
this.match(CircuitScriptParser.At);
|
|
744
|
-
this.state =
|
|
753
|
+
this.state = 207;
|
|
745
754
|
this.errorHandler.sync(this);
|
|
746
755
|
switch (this.tokenStream.LA(1)) {
|
|
747
756
|
case CircuitScriptParser.T__5:
|
|
@@ -760,13 +769,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
760
769
|
case CircuitScriptParser.STRING_VALUE:
|
|
761
770
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
762
771
|
{
|
|
763
|
-
this.state =
|
|
772
|
+
this.state = 205;
|
|
764
773
|
this.component_select_expr();
|
|
765
774
|
}
|
|
766
775
|
break;
|
|
767
776
|
case CircuitScriptParser.Point:
|
|
768
777
|
{
|
|
769
|
-
this.state =
|
|
778
|
+
this.state = 206;
|
|
770
779
|
this.match(CircuitScriptParser.Point);
|
|
771
780
|
}
|
|
772
781
|
break;
|
|
@@ -796,9 +805,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
796
805
|
try {
|
|
797
806
|
this.enterOuterAlt(localContext, 1);
|
|
798
807
|
{
|
|
799
|
-
this.state =
|
|
808
|
+
this.state = 209;
|
|
800
809
|
this.match(CircuitScriptParser.To);
|
|
801
|
-
this.state =
|
|
810
|
+
this.state = 219;
|
|
802
811
|
this.errorHandler.sync(this);
|
|
803
812
|
switch (this.tokenStream.LA(1)) {
|
|
804
813
|
case CircuitScriptParser.T__5:
|
|
@@ -818,21 +827,21 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
818
827
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
819
828
|
{
|
|
820
829
|
{
|
|
821
|
-
this.state =
|
|
830
|
+
this.state = 210;
|
|
822
831
|
this.component_select_expr();
|
|
823
|
-
this.state =
|
|
832
|
+
this.state = 215;
|
|
824
833
|
this.errorHandler.sync(this);
|
|
825
834
|
_la = this.tokenStream.LA(1);
|
|
826
835
|
while (_la === 2) {
|
|
827
836
|
{
|
|
828
837
|
{
|
|
829
|
-
this.state =
|
|
838
|
+
this.state = 211;
|
|
830
839
|
this.match(CircuitScriptParser.T__1);
|
|
831
|
-
this.state =
|
|
840
|
+
this.state = 212;
|
|
832
841
|
this.component_select_expr();
|
|
833
842
|
}
|
|
834
843
|
}
|
|
835
|
-
this.state =
|
|
844
|
+
this.state = 217;
|
|
836
845
|
this.errorHandler.sync(this);
|
|
837
846
|
_la = this.tokenStream.LA(1);
|
|
838
847
|
}
|
|
@@ -841,7 +850,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
841
850
|
break;
|
|
842
851
|
case CircuitScriptParser.Point:
|
|
843
852
|
{
|
|
844
|
-
this.state =
|
|
853
|
+
this.state = 218;
|
|
845
854
|
this.match(CircuitScriptParser.Point);
|
|
846
855
|
}
|
|
847
856
|
break;
|
|
@@ -871,54 +880,54 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
871
880
|
try {
|
|
872
881
|
this.enterOuterAlt(localContext, 1);
|
|
873
882
|
{
|
|
874
|
-
this.state =
|
|
883
|
+
this.state = 221;
|
|
875
884
|
this.match(CircuitScriptParser.At);
|
|
876
|
-
this.state =
|
|
885
|
+
this.state = 222;
|
|
877
886
|
this.component_select_expr();
|
|
878
|
-
this.state =
|
|
887
|
+
this.state = 223;
|
|
879
888
|
this.match(CircuitScriptParser.To);
|
|
880
|
-
this.state =
|
|
889
|
+
this.state = 224;
|
|
881
890
|
this.component_select_expr();
|
|
882
|
-
this.state =
|
|
891
|
+
this.state = 229;
|
|
883
892
|
this.errorHandler.sync(this);
|
|
884
893
|
_la = this.tokenStream.LA(1);
|
|
885
894
|
while (_la === 2) {
|
|
886
895
|
{
|
|
887
896
|
{
|
|
888
|
-
this.state =
|
|
897
|
+
this.state = 225;
|
|
889
898
|
this.match(CircuitScriptParser.T__1);
|
|
890
|
-
this.state =
|
|
899
|
+
this.state = 226;
|
|
891
900
|
this.component_select_expr();
|
|
892
901
|
}
|
|
893
902
|
}
|
|
894
|
-
this.state =
|
|
903
|
+
this.state = 231;
|
|
895
904
|
this.errorHandler.sync(this);
|
|
896
905
|
_la = this.tokenStream.LA(1);
|
|
897
906
|
}
|
|
898
|
-
this.state =
|
|
907
|
+
this.state = 232;
|
|
899
908
|
this.match(CircuitScriptParser.T__0);
|
|
900
|
-
this.state =
|
|
909
|
+
this.state = 233;
|
|
901
910
|
this.match(CircuitScriptParser.NEWLINE);
|
|
902
|
-
this.state =
|
|
911
|
+
this.state = 234;
|
|
903
912
|
this.match(CircuitScriptParser.INDENT);
|
|
904
|
-
this.state =
|
|
913
|
+
this.state = 237;
|
|
905
914
|
this.errorHandler.sync(this);
|
|
906
915
|
_la = this.tokenStream.LA(1);
|
|
907
916
|
do {
|
|
908
917
|
{
|
|
909
|
-
this.state =
|
|
918
|
+
this.state = 237;
|
|
910
919
|
this.errorHandler.sync(this);
|
|
911
920
|
switch (this.tokenStream.LA(1)) {
|
|
912
921
|
case CircuitScriptParser.NEWLINE:
|
|
913
922
|
{
|
|
914
|
-
this.state =
|
|
923
|
+
this.state = 235;
|
|
915
924
|
this.match(CircuitScriptParser.NEWLINE);
|
|
916
925
|
}
|
|
917
926
|
break;
|
|
918
927
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
919
928
|
case CircuitScriptParser.STRING_VALUE:
|
|
920
929
|
{
|
|
921
|
-
this.state =
|
|
930
|
+
this.state = 236;
|
|
922
931
|
this.at_to_multiple_line_expr();
|
|
923
932
|
}
|
|
924
933
|
break;
|
|
@@ -926,11 +935,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
926
935
|
throw new antlr.NoViableAltException(this);
|
|
927
936
|
}
|
|
928
937
|
}
|
|
929
|
-
this.state =
|
|
938
|
+
this.state = 239;
|
|
930
939
|
this.errorHandler.sync(this);
|
|
931
940
|
_la = this.tokenStream.LA(1);
|
|
932
|
-
} while (((((_la -
|
|
933
|
-
this.state =
|
|
941
|
+
} while (((((_la - 45)) & ~0x1F) === 0 && ((1 << (_la - 45)) & 137) !== 0));
|
|
942
|
+
this.state = 241;
|
|
934
943
|
this.match(CircuitScriptParser.DEDENT);
|
|
935
944
|
}
|
|
936
945
|
}
|
|
@@ -955,25 +964,25 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
955
964
|
try {
|
|
956
965
|
this.enterOuterAlt(localContext, 1);
|
|
957
966
|
{
|
|
958
|
-
this.state =
|
|
967
|
+
this.state = 243;
|
|
959
968
|
this.pin_select_expr2();
|
|
960
|
-
this.state =
|
|
969
|
+
this.state = 244;
|
|
961
970
|
this.match(CircuitScriptParser.T__0);
|
|
962
|
-
this.state =
|
|
971
|
+
this.state = 245;
|
|
963
972
|
this.at_to_multiple_line_expr_to_pin();
|
|
964
|
-
this.state =
|
|
973
|
+
this.state = 250;
|
|
965
974
|
this.errorHandler.sync(this);
|
|
966
975
|
_la = this.tokenStream.LA(1);
|
|
967
976
|
while (_la === 2) {
|
|
968
977
|
{
|
|
969
978
|
{
|
|
970
|
-
this.state =
|
|
979
|
+
this.state = 246;
|
|
971
980
|
this.match(CircuitScriptParser.T__1);
|
|
972
|
-
this.state =
|
|
981
|
+
this.state = 247;
|
|
973
982
|
this.at_to_multiple_line_expr_to_pin();
|
|
974
983
|
}
|
|
975
984
|
}
|
|
976
|
-
this.state =
|
|
985
|
+
this.state = 252;
|
|
977
986
|
this.errorHandler.sync(this);
|
|
978
987
|
_la = this.tokenStream.LA(1);
|
|
979
988
|
}
|
|
@@ -1000,9 +1009,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1000
1009
|
try {
|
|
1001
1010
|
this.enterOuterAlt(localContext, 1);
|
|
1002
1011
|
{
|
|
1003
|
-
this.state =
|
|
1012
|
+
this.state = 253;
|
|
1004
1013
|
_la = this.tokenStream.LA(1);
|
|
1005
|
-
if (!(_la ===
|
|
1014
|
+
if (!(_la === 42 || _la === 45)) {
|
|
1006
1015
|
this.errorHandler.recoverInline(this);
|
|
1007
1016
|
}
|
|
1008
1017
|
else {
|
|
@@ -1032,25 +1041,25 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1032
1041
|
try {
|
|
1033
1042
|
this.enterOuterAlt(localContext, 1);
|
|
1034
1043
|
{
|
|
1035
|
-
this.state =
|
|
1044
|
+
this.state = 255;
|
|
1036
1045
|
this.at_component_expr();
|
|
1037
|
-
this.state =
|
|
1046
|
+
this.state = 256;
|
|
1038
1047
|
this.match(CircuitScriptParser.T__0);
|
|
1039
|
-
this.state =
|
|
1048
|
+
this.state = 257;
|
|
1040
1049
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1041
|
-
this.state =
|
|
1050
|
+
this.state = 258;
|
|
1042
1051
|
this.match(CircuitScriptParser.INDENT);
|
|
1043
|
-
this.state =
|
|
1052
|
+
this.state = 261;
|
|
1044
1053
|
this.errorHandler.sync(this);
|
|
1045
1054
|
_la = this.tokenStream.LA(1);
|
|
1046
1055
|
do {
|
|
1047
1056
|
{
|
|
1048
|
-
this.state =
|
|
1057
|
+
this.state = 261;
|
|
1049
1058
|
this.errorHandler.sync(this);
|
|
1050
1059
|
switch (this.tokenStream.LA(1)) {
|
|
1051
1060
|
case CircuitScriptParser.NEWLINE:
|
|
1052
1061
|
{
|
|
1053
|
-
this.state =
|
|
1062
|
+
this.state = 259;
|
|
1054
1063
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1055
1064
|
}
|
|
1056
1065
|
break;
|
|
@@ -1066,6 +1075,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1066
1075
|
case CircuitScriptParser.Parallel:
|
|
1067
1076
|
case CircuitScriptParser.Define:
|
|
1068
1077
|
case CircuitScriptParser.Import:
|
|
1078
|
+
case CircuitScriptParser.If:
|
|
1069
1079
|
case CircuitScriptParser.Frame:
|
|
1070
1080
|
case CircuitScriptParser.Addition:
|
|
1071
1081
|
case CircuitScriptParser.Divide:
|
|
@@ -1073,7 +1083,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1073
1083
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
1074
1084
|
case CircuitScriptParser.STRING_VALUE:
|
|
1075
1085
|
{
|
|
1076
|
-
this.state =
|
|
1086
|
+
this.state = 260;
|
|
1077
1087
|
this.at_block_expressions();
|
|
1078
1088
|
}
|
|
1079
1089
|
break;
|
|
@@ -1081,11 +1091,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1081
1091
|
throw new antlr.NoViableAltException(this);
|
|
1082
1092
|
}
|
|
1083
1093
|
}
|
|
1084
|
-
this.state =
|
|
1094
|
+
this.state = 263;
|
|
1085
1095
|
this.errorHandler.sync(this);
|
|
1086
1096
|
_la = this.tokenStream.LA(1);
|
|
1087
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
1088
|
-
this.state =
|
|
1097
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 70405) !== 0));
|
|
1098
|
+
this.state = 265;
|
|
1089
1099
|
this.match(CircuitScriptParser.DEDENT);
|
|
1090
1100
|
}
|
|
1091
1101
|
}
|
|
@@ -1107,7 +1117,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1107
1117
|
let localContext = new At_block_expressionsContext(this.context, this.state);
|
|
1108
1118
|
this.enterRule(localContext, 36, CircuitScriptParser.RULE_at_block_expressions);
|
|
1109
1119
|
try {
|
|
1110
|
-
this.state =
|
|
1120
|
+
this.state = 269;
|
|
1111
1121
|
this.errorHandler.sync(this);
|
|
1112
1122
|
switch (this.tokenStream.LA(1)) {
|
|
1113
1123
|
case CircuitScriptParser.T__3:
|
|
@@ -1122,13 +1132,14 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1122
1132
|
case CircuitScriptParser.Parallel:
|
|
1123
1133
|
case CircuitScriptParser.Define:
|
|
1124
1134
|
case CircuitScriptParser.Import:
|
|
1135
|
+
case CircuitScriptParser.If:
|
|
1125
1136
|
case CircuitScriptParser.Frame:
|
|
1126
1137
|
case CircuitScriptParser.Addition:
|
|
1127
1138
|
case CircuitScriptParser.Divide:
|
|
1128
1139
|
case CircuitScriptParser.ID:
|
|
1129
1140
|
this.enterOuterAlt(localContext, 1);
|
|
1130
1141
|
{
|
|
1131
|
-
this.state =
|
|
1142
|
+
this.state = 267;
|
|
1132
1143
|
this.expression();
|
|
1133
1144
|
}
|
|
1134
1145
|
break;
|
|
@@ -1136,7 +1147,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1136
1147
|
case CircuitScriptParser.STRING_VALUE:
|
|
1137
1148
|
this.enterOuterAlt(localContext, 2);
|
|
1138
1149
|
{
|
|
1139
|
-
this.state =
|
|
1150
|
+
this.state = 268;
|
|
1140
1151
|
this.at_block_pin_expr();
|
|
1141
1152
|
}
|
|
1142
1153
|
break;
|
|
@@ -1164,11 +1175,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1164
1175
|
try {
|
|
1165
1176
|
this.enterOuterAlt(localContext, 1);
|
|
1166
1177
|
{
|
|
1167
|
-
this.state =
|
|
1178
|
+
this.state = 271;
|
|
1168
1179
|
this.pin_select_expr2();
|
|
1169
|
-
this.state =
|
|
1180
|
+
this.state = 272;
|
|
1170
1181
|
this.match(CircuitScriptParser.T__0);
|
|
1171
|
-
this.state =
|
|
1182
|
+
this.state = 275;
|
|
1172
1183
|
this.errorHandler.sync(this);
|
|
1173
1184
|
switch (this.tokenStream.LA(1)) {
|
|
1174
1185
|
case CircuitScriptParser.T__3:
|
|
@@ -1183,19 +1194,20 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1183
1194
|
case CircuitScriptParser.Parallel:
|
|
1184
1195
|
case CircuitScriptParser.Define:
|
|
1185
1196
|
case CircuitScriptParser.Import:
|
|
1197
|
+
case CircuitScriptParser.If:
|
|
1186
1198
|
case CircuitScriptParser.Frame:
|
|
1187
1199
|
case CircuitScriptParser.Addition:
|
|
1188
1200
|
case CircuitScriptParser.Divide:
|
|
1189
1201
|
case CircuitScriptParser.NOT_CONNECTED:
|
|
1190
1202
|
case CircuitScriptParser.ID:
|
|
1191
1203
|
{
|
|
1192
|
-
this.state =
|
|
1204
|
+
this.state = 273;
|
|
1193
1205
|
this.at_block_pin_expression_simple();
|
|
1194
1206
|
}
|
|
1195
1207
|
break;
|
|
1196
1208
|
case CircuitScriptParser.NEWLINE:
|
|
1197
1209
|
{
|
|
1198
|
-
this.state =
|
|
1210
|
+
this.state = 274;
|
|
1199
1211
|
this.at_block_pin_expression_complex();
|
|
1200
1212
|
}
|
|
1201
1213
|
break;
|
|
@@ -1224,7 +1236,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1224
1236
|
try {
|
|
1225
1237
|
this.enterOuterAlt(localContext, 1);
|
|
1226
1238
|
{
|
|
1227
|
-
this.state =
|
|
1239
|
+
this.state = 279;
|
|
1228
1240
|
this.errorHandler.sync(this);
|
|
1229
1241
|
switch (this.tokenStream.LA(1)) {
|
|
1230
1242
|
case CircuitScriptParser.T__3:
|
|
@@ -1239,18 +1251,19 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1239
1251
|
case CircuitScriptParser.Parallel:
|
|
1240
1252
|
case CircuitScriptParser.Define:
|
|
1241
1253
|
case CircuitScriptParser.Import:
|
|
1254
|
+
case CircuitScriptParser.If:
|
|
1242
1255
|
case CircuitScriptParser.Frame:
|
|
1243
1256
|
case CircuitScriptParser.Addition:
|
|
1244
1257
|
case CircuitScriptParser.Divide:
|
|
1245
1258
|
case CircuitScriptParser.ID:
|
|
1246
1259
|
{
|
|
1247
|
-
this.state =
|
|
1260
|
+
this.state = 277;
|
|
1248
1261
|
this.expression();
|
|
1249
1262
|
}
|
|
1250
1263
|
break;
|
|
1251
1264
|
case CircuitScriptParser.NOT_CONNECTED:
|
|
1252
1265
|
{
|
|
1253
|
-
this.state =
|
|
1266
|
+
this.state = 278;
|
|
1254
1267
|
this.match(CircuitScriptParser.NOT_CONNECTED);
|
|
1255
1268
|
}
|
|
1256
1269
|
break;
|
|
@@ -1280,21 +1293,21 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1280
1293
|
try {
|
|
1281
1294
|
this.enterOuterAlt(localContext, 1);
|
|
1282
1295
|
{
|
|
1283
|
-
this.state =
|
|
1296
|
+
this.state = 281;
|
|
1284
1297
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1285
|
-
this.state =
|
|
1298
|
+
this.state = 282;
|
|
1286
1299
|
this.match(CircuitScriptParser.INDENT);
|
|
1287
|
-
this.state =
|
|
1300
|
+
this.state = 285;
|
|
1288
1301
|
this.errorHandler.sync(this);
|
|
1289
1302
|
_la = this.tokenStream.LA(1);
|
|
1290
1303
|
do {
|
|
1291
1304
|
{
|
|
1292
|
-
this.state =
|
|
1305
|
+
this.state = 285;
|
|
1293
1306
|
this.errorHandler.sync(this);
|
|
1294
1307
|
switch (this.tokenStream.LA(1)) {
|
|
1295
1308
|
case CircuitScriptParser.NEWLINE:
|
|
1296
1309
|
{
|
|
1297
|
-
this.state =
|
|
1310
|
+
this.state = 283;
|
|
1298
1311
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1299
1312
|
}
|
|
1300
1313
|
break;
|
|
@@ -1310,12 +1323,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1310
1323
|
case CircuitScriptParser.Parallel:
|
|
1311
1324
|
case CircuitScriptParser.Define:
|
|
1312
1325
|
case CircuitScriptParser.Import:
|
|
1326
|
+
case CircuitScriptParser.If:
|
|
1313
1327
|
case CircuitScriptParser.Frame:
|
|
1314
1328
|
case CircuitScriptParser.Addition:
|
|
1315
1329
|
case CircuitScriptParser.Divide:
|
|
1316
1330
|
case CircuitScriptParser.ID:
|
|
1317
1331
|
{
|
|
1318
|
-
this.state =
|
|
1332
|
+
this.state = 284;
|
|
1319
1333
|
this.expression();
|
|
1320
1334
|
}
|
|
1321
1335
|
break;
|
|
@@ -1323,11 +1337,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1323
1337
|
throw new antlr.NoViableAltException(this);
|
|
1324
1338
|
}
|
|
1325
1339
|
}
|
|
1326
|
-
this.state =
|
|
1340
|
+
this.state = 287;
|
|
1327
1341
|
this.errorHandler.sync(this);
|
|
1328
1342
|
_la = this.tokenStream.LA(1);
|
|
1329
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
1330
|
-
this.state =
|
|
1343
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
1344
|
+
this.state = 289;
|
|
1331
1345
|
this.match(CircuitScriptParser.DEDENT);
|
|
1332
1346
|
}
|
|
1333
1347
|
}
|
|
@@ -1351,7 +1365,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1351
1365
|
try {
|
|
1352
1366
|
this.enterOuterAlt(localContext, 1);
|
|
1353
1367
|
{
|
|
1354
|
-
this.state =
|
|
1368
|
+
this.state = 291;
|
|
1355
1369
|
this.match(CircuitScriptParser.Break);
|
|
1356
1370
|
}
|
|
1357
1371
|
}
|
|
@@ -1375,11 +1389,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1375
1389
|
try {
|
|
1376
1390
|
this.enterOuterAlt(localContext, 1);
|
|
1377
1391
|
{
|
|
1378
|
-
this.state =
|
|
1392
|
+
this.state = 293;
|
|
1379
1393
|
this.atom_expr();
|
|
1380
|
-
this.state =
|
|
1394
|
+
this.state = 294;
|
|
1381
1395
|
this.match(CircuitScriptParser.T__2);
|
|
1382
|
-
this.state =
|
|
1396
|
+
this.state = 295;
|
|
1383
1397
|
this.data_expr(0);
|
|
1384
1398
|
}
|
|
1385
1399
|
}
|
|
@@ -1403,11 +1417,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1403
1417
|
try {
|
|
1404
1418
|
this.enterOuterAlt(localContext, 1);
|
|
1405
1419
|
{
|
|
1406
|
-
this.state =
|
|
1420
|
+
this.state = 297;
|
|
1407
1421
|
this.match(CircuitScriptParser.ID);
|
|
1408
|
-
this.state =
|
|
1422
|
+
this.state = 298;
|
|
1409
1423
|
this.match(CircuitScriptParser.T__2);
|
|
1410
|
-
this.state =
|
|
1424
|
+
this.state = 299;
|
|
1411
1425
|
this.data_expr(0);
|
|
1412
1426
|
}
|
|
1413
1427
|
}
|
|
@@ -1431,46 +1445,46 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1431
1445
|
let _la;
|
|
1432
1446
|
try {
|
|
1433
1447
|
let alternative;
|
|
1434
|
-
this.state =
|
|
1448
|
+
this.state = 324;
|
|
1435
1449
|
this.errorHandler.sync(this);
|
|
1436
1450
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 30, this.context)) {
|
|
1437
1451
|
case 1:
|
|
1438
1452
|
this.enterOuterAlt(localContext, 1);
|
|
1439
1453
|
{
|
|
1440
1454
|
{
|
|
1441
|
-
this.state =
|
|
1455
|
+
this.state = 301;
|
|
1442
1456
|
this.data_expr(0);
|
|
1443
|
-
this.state =
|
|
1457
|
+
this.state = 306;
|
|
1444
1458
|
this.errorHandler.sync(this);
|
|
1445
1459
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 27, this.context);
|
|
1446
1460
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
1447
1461
|
if (alternative === 1) {
|
|
1448
1462
|
{
|
|
1449
1463
|
{
|
|
1450
|
-
this.state =
|
|
1464
|
+
this.state = 302;
|
|
1451
1465
|
this.match(CircuitScriptParser.T__1);
|
|
1452
|
-
this.state =
|
|
1466
|
+
this.state = 303;
|
|
1453
1467
|
this.data_expr(0);
|
|
1454
1468
|
}
|
|
1455
1469
|
}
|
|
1456
1470
|
}
|
|
1457
|
-
this.state =
|
|
1471
|
+
this.state = 308;
|
|
1458
1472
|
this.errorHandler.sync(this);
|
|
1459
1473
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 27, this.context);
|
|
1460
1474
|
}
|
|
1461
|
-
this.state =
|
|
1475
|
+
this.state = 313;
|
|
1462
1476
|
this.errorHandler.sync(this);
|
|
1463
1477
|
_la = this.tokenStream.LA(1);
|
|
1464
1478
|
while (_la === 2) {
|
|
1465
1479
|
{
|
|
1466
1480
|
{
|
|
1467
|
-
this.state =
|
|
1481
|
+
this.state = 309;
|
|
1468
1482
|
this.match(CircuitScriptParser.T__1);
|
|
1469
|
-
this.state =
|
|
1483
|
+
this.state = 310;
|
|
1470
1484
|
this.keyword_assignment_expr();
|
|
1471
1485
|
}
|
|
1472
1486
|
}
|
|
1473
|
-
this.state =
|
|
1487
|
+
this.state = 315;
|
|
1474
1488
|
this.errorHandler.sync(this);
|
|
1475
1489
|
_la = this.tokenStream.LA(1);
|
|
1476
1490
|
}
|
|
@@ -1481,21 +1495,21 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1481
1495
|
this.enterOuterAlt(localContext, 2);
|
|
1482
1496
|
{
|
|
1483
1497
|
{
|
|
1484
|
-
this.state =
|
|
1498
|
+
this.state = 316;
|
|
1485
1499
|
this.keyword_assignment_expr();
|
|
1486
|
-
this.state =
|
|
1500
|
+
this.state = 321;
|
|
1487
1501
|
this.errorHandler.sync(this);
|
|
1488
1502
|
_la = this.tokenStream.LA(1);
|
|
1489
1503
|
while (_la === 2) {
|
|
1490
1504
|
{
|
|
1491
1505
|
{
|
|
1492
|
-
this.state =
|
|
1506
|
+
this.state = 317;
|
|
1493
1507
|
this.match(CircuitScriptParser.T__1);
|
|
1494
|
-
this.state =
|
|
1508
|
+
this.state = 318;
|
|
1495
1509
|
this.keyword_assignment_expr();
|
|
1496
1510
|
}
|
|
1497
1511
|
}
|
|
1498
|
-
this.state =
|
|
1512
|
+
this.state = 323;
|
|
1499
1513
|
this.errorHandler.sync(this);
|
|
1500
1514
|
_la = this.tokenStream.LA(1);
|
|
1501
1515
|
}
|
|
@@ -1524,11 +1538,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1524
1538
|
try {
|
|
1525
1539
|
this.enterOuterAlt(localContext, 1);
|
|
1526
1540
|
{
|
|
1527
|
-
this.state =
|
|
1541
|
+
this.state = 326;
|
|
1528
1542
|
this.atom_expr();
|
|
1529
|
-
this.state =
|
|
1543
|
+
this.state = 327;
|
|
1530
1544
|
this.match(CircuitScriptParser.T__2);
|
|
1531
|
-
this.state =
|
|
1545
|
+
this.state = 328;
|
|
1532
1546
|
this.data_expr(0);
|
|
1533
1547
|
}
|
|
1534
1548
|
}
|
|
@@ -1552,13 +1566,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1552
1566
|
try {
|
|
1553
1567
|
this.enterOuterAlt(localContext, 1);
|
|
1554
1568
|
{
|
|
1555
|
-
this.state =
|
|
1569
|
+
this.state = 330;
|
|
1556
1570
|
this.match(CircuitScriptParser.T__3);
|
|
1557
|
-
this.state =
|
|
1571
|
+
this.state = 331;
|
|
1558
1572
|
this.match(CircuitScriptParser.ID);
|
|
1559
|
-
this.state =
|
|
1573
|
+
this.state = 332;
|
|
1560
1574
|
this.match(CircuitScriptParser.T__2);
|
|
1561
|
-
this.state =
|
|
1575
|
+
this.state = 333;
|
|
1562
1576
|
this.data_expr(0);
|
|
1563
1577
|
}
|
|
1564
1578
|
}
|
|
@@ -1591,7 +1605,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1591
1605
|
let alternative;
|
|
1592
1606
|
this.enterOuterAlt(localContext, 1);
|
|
1593
1607
|
{
|
|
1594
|
-
this.state =
|
|
1608
|
+
this.state = 350;
|
|
1595
1609
|
this.errorHandler.sync(this);
|
|
1596
1610
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 32, this.context)) {
|
|
1597
1611
|
case 1:
|
|
@@ -1599,11 +1613,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1599
1613
|
localContext = new RoundedBracketsExprContext(localContext);
|
|
1600
1614
|
this.context = localContext;
|
|
1601
1615
|
previousContext = localContext;
|
|
1602
|
-
this.state =
|
|
1616
|
+
this.state = 336;
|
|
1603
1617
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
1604
|
-
this.state =
|
|
1618
|
+
this.state = 337;
|
|
1605
1619
|
this.data_expr(0);
|
|
1606
|
-
this.state =
|
|
1620
|
+
this.state = 338;
|
|
1607
1621
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
1608
1622
|
}
|
|
1609
1623
|
break;
|
|
@@ -1612,7 +1626,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1612
1626
|
localContext = new ValueAtomExprContext(localContext);
|
|
1613
1627
|
this.context = localContext;
|
|
1614
1628
|
previousContext = localContext;
|
|
1615
|
-
this.state =
|
|
1629
|
+
this.state = 342;
|
|
1616
1630
|
this.errorHandler.sync(this);
|
|
1617
1631
|
switch (this.tokenStream.LA(1)) {
|
|
1618
1632
|
case CircuitScriptParser.T__5:
|
|
@@ -1624,13 +1638,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1624
1638
|
case CircuitScriptParser.STRING_VALUE:
|
|
1625
1639
|
case CircuitScriptParser.PERCENTAGE_VALUE:
|
|
1626
1640
|
{
|
|
1627
|
-
this.state =
|
|
1641
|
+
this.state = 340;
|
|
1628
1642
|
this.value_expr();
|
|
1629
1643
|
}
|
|
1630
1644
|
break;
|
|
1631
1645
|
case CircuitScriptParser.ID:
|
|
1632
1646
|
{
|
|
1633
|
-
this.state =
|
|
1647
|
+
this.state = 341;
|
|
1634
1648
|
this.atom_expr();
|
|
1635
1649
|
}
|
|
1636
1650
|
break;
|
|
@@ -1644,10 +1658,10 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1644
1658
|
localContext = new UnaryOperatorExprContext(localContext);
|
|
1645
1659
|
this.context = localContext;
|
|
1646
1660
|
previousContext = localContext;
|
|
1647
|
-
this.state =
|
|
1661
|
+
this.state = 344;
|
|
1648
1662
|
this.unary_operator();
|
|
1649
|
-
this.state =
|
|
1650
|
-
this.data_expr(
|
|
1663
|
+
this.state = 345;
|
|
1664
|
+
this.data_expr(8);
|
|
1651
1665
|
}
|
|
1652
1666
|
break;
|
|
1653
1667
|
case 4:
|
|
@@ -1655,7 +1669,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1655
1669
|
localContext = new DataExprContext(localContext);
|
|
1656
1670
|
this.context = localContext;
|
|
1657
1671
|
previousContext = localContext;
|
|
1658
|
-
this.state =
|
|
1672
|
+
this.state = 347;
|
|
1659
1673
|
this.create_component_expr();
|
|
1660
1674
|
}
|
|
1661
1675
|
break;
|
|
@@ -1664,7 +1678,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1664
1678
|
localContext = new DataExprContext(localContext);
|
|
1665
1679
|
this.context = localContext;
|
|
1666
1680
|
previousContext = localContext;
|
|
1667
|
-
this.state =
|
|
1681
|
+
this.state = 348;
|
|
1668
1682
|
this.create_graphic_expr();
|
|
1669
1683
|
}
|
|
1670
1684
|
break;
|
|
@@ -1673,13 +1687,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1673
1687
|
localContext = new FunctionCallExprContext(localContext);
|
|
1674
1688
|
this.context = localContext;
|
|
1675
1689
|
previousContext = localContext;
|
|
1676
|
-
this.state =
|
|
1690
|
+
this.state = 349;
|
|
1677
1691
|
this.function_call_expr();
|
|
1678
1692
|
}
|
|
1679
1693
|
break;
|
|
1680
1694
|
}
|
|
1681
1695
|
this.context.stop = this.tokenStream.LT(-1);
|
|
1682
|
-
this.state =
|
|
1696
|
+
this.state = 367;
|
|
1683
1697
|
this.errorHandler.sync(this);
|
|
1684
1698
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 34, this.context);
|
|
1685
1699
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
@@ -1689,69 +1703,90 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1689
1703
|
}
|
|
1690
1704
|
previousContext = localContext;
|
|
1691
1705
|
{
|
|
1692
|
-
this.state =
|
|
1706
|
+
this.state = 365;
|
|
1693
1707
|
this.errorHandler.sync(this);
|
|
1694
1708
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 33, this.context)) {
|
|
1695
1709
|
case 1:
|
|
1696
1710
|
{
|
|
1697
1711
|
localContext = new MultiplyExprContext(new Data_exprContext(parentContext, parentState));
|
|
1698
1712
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1699
|
-
this.state =
|
|
1700
|
-
if (!(this.precpred(this.context,
|
|
1701
|
-
throw this.createFailedPredicateException("this.precpred(this.context,
|
|
1713
|
+
this.state = 352;
|
|
1714
|
+
if (!(this.precpred(this.context, 7))) {
|
|
1715
|
+
throw this.createFailedPredicateException("this.precpred(this.context, 7)");
|
|
1702
1716
|
}
|
|
1703
|
-
this.state =
|
|
1717
|
+
this.state = 353;
|
|
1704
1718
|
_la = this.tokenStream.LA(1);
|
|
1705
|
-
if (!(_la ===
|
|
1719
|
+
if (!(_la === 38 || _la === 39)) {
|
|
1706
1720
|
this.errorHandler.recoverInline(this);
|
|
1707
1721
|
}
|
|
1708
1722
|
else {
|
|
1709
1723
|
this.errorHandler.reportMatch(this);
|
|
1710
1724
|
this.consume();
|
|
1711
1725
|
}
|
|
1712
|
-
this.state =
|
|
1713
|
-
this.data_expr(
|
|
1726
|
+
this.state = 354;
|
|
1727
|
+
this.data_expr(8);
|
|
1714
1728
|
}
|
|
1715
1729
|
break;
|
|
1716
1730
|
case 2:
|
|
1717
1731
|
{
|
|
1718
1732
|
localContext = new AdditionExprContext(new Data_exprContext(parentContext, parentState));
|
|
1719
1733
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1720
|
-
this.state =
|
|
1721
|
-
if (!(this.precpred(this.context,
|
|
1722
|
-
throw this.createFailedPredicateException("this.precpred(this.context,
|
|
1734
|
+
this.state = 355;
|
|
1735
|
+
if (!(this.precpred(this.context, 6))) {
|
|
1736
|
+
throw this.createFailedPredicateException("this.precpred(this.context, 6)");
|
|
1723
1737
|
}
|
|
1724
|
-
this.state =
|
|
1738
|
+
this.state = 356;
|
|
1725
1739
|
_la = this.tokenStream.LA(1);
|
|
1726
|
-
if (!(_la ===
|
|
1740
|
+
if (!(_la === 36 || _la === 37)) {
|
|
1727
1741
|
this.errorHandler.recoverInline(this);
|
|
1728
1742
|
}
|
|
1729
1743
|
else {
|
|
1730
1744
|
this.errorHandler.reportMatch(this);
|
|
1731
1745
|
this.consume();
|
|
1732
1746
|
}
|
|
1733
|
-
this.state =
|
|
1734
|
-
this.data_expr(
|
|
1747
|
+
this.state = 357;
|
|
1748
|
+
this.data_expr(7);
|
|
1735
1749
|
}
|
|
1736
1750
|
break;
|
|
1737
1751
|
case 3:
|
|
1738
1752
|
{
|
|
1739
1753
|
localContext = new BinaryOperatorExprContext(new Data_exprContext(parentContext, parentState));
|
|
1740
1754
|
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1741
|
-
this.state =
|
|
1755
|
+
this.state = 358;
|
|
1756
|
+
if (!(this.precpred(this.context, 5))) {
|
|
1757
|
+
throw this.createFailedPredicateException("this.precpred(this.context, 5)");
|
|
1758
|
+
}
|
|
1759
|
+
this.state = 359;
|
|
1760
|
+
this.binary_operator();
|
|
1761
|
+
this.state = 360;
|
|
1762
|
+
this.data_expr(6);
|
|
1763
|
+
}
|
|
1764
|
+
break;
|
|
1765
|
+
case 4:
|
|
1766
|
+
{
|
|
1767
|
+
localContext = new LogicalOperatorExprContext(new Data_exprContext(parentContext, parentState));
|
|
1768
|
+
this.pushNewRecursionContext(localContext, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1769
|
+
this.state = 362;
|
|
1742
1770
|
if (!(this.precpred(this.context, 4))) {
|
|
1743
1771
|
throw this.createFailedPredicateException("this.precpred(this.context, 4)");
|
|
1744
1772
|
}
|
|
1745
|
-
this.state =
|
|
1746
|
-
this.
|
|
1747
|
-
|
|
1773
|
+
this.state = 363;
|
|
1774
|
+
_la = this.tokenStream.LA(1);
|
|
1775
|
+
if (!(_la === 34 || _la === 35)) {
|
|
1776
|
+
this.errorHandler.recoverInline(this);
|
|
1777
|
+
}
|
|
1778
|
+
else {
|
|
1779
|
+
this.errorHandler.reportMatch(this);
|
|
1780
|
+
this.consume();
|
|
1781
|
+
}
|
|
1782
|
+
this.state = 364;
|
|
1748
1783
|
this.data_expr(5);
|
|
1749
1784
|
}
|
|
1750
1785
|
break;
|
|
1751
1786
|
}
|
|
1752
1787
|
}
|
|
1753
1788
|
}
|
|
1754
|
-
this.state =
|
|
1789
|
+
this.state = 369;
|
|
1755
1790
|
this.errorHandler.sync(this);
|
|
1756
1791
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 34, this.context);
|
|
1757
1792
|
}
|
|
@@ -1778,9 +1813,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1778
1813
|
try {
|
|
1779
1814
|
this.enterOuterAlt(localContext, 1);
|
|
1780
1815
|
{
|
|
1781
|
-
this.state =
|
|
1816
|
+
this.state = 370;
|
|
1782
1817
|
_la = this.tokenStream.LA(1);
|
|
1783
|
-
if (!(_la ===
|
|
1818
|
+
if (!(((((_la - 28)) & ~0x1F) === 0 && ((1 << (_la - 28)) & 63) !== 0))) {
|
|
1784
1819
|
this.errorHandler.recoverInline(this);
|
|
1785
1820
|
}
|
|
1786
1821
|
else {
|
|
@@ -1810,9 +1845,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1810
1845
|
try {
|
|
1811
1846
|
this.enterOuterAlt(localContext, 1);
|
|
1812
1847
|
{
|
|
1813
|
-
this.state =
|
|
1848
|
+
this.state = 372;
|
|
1814
1849
|
_la = this.tokenStream.LA(1);
|
|
1815
|
-
if (!(_la ===
|
|
1850
|
+
if (!(_la === 26 || _la === 37)) {
|
|
1816
1851
|
this.errorHandler.recoverInline(this);
|
|
1817
1852
|
}
|
|
1818
1853
|
else {
|
|
@@ -1840,7 +1875,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1840
1875
|
this.enterRule(localContext, 62, CircuitScriptParser.RULE_value_expr);
|
|
1841
1876
|
let _la;
|
|
1842
1877
|
try {
|
|
1843
|
-
this.state =
|
|
1878
|
+
this.state = 379;
|
|
1844
1879
|
this.errorHandler.sync(this);
|
|
1845
1880
|
switch (this.tokenStream.LA(1)) {
|
|
1846
1881
|
case CircuitScriptParser.Minus:
|
|
@@ -1853,18 +1888,18 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1853
1888
|
this.enterOuterAlt(localContext, 1);
|
|
1854
1889
|
{
|
|
1855
1890
|
{
|
|
1856
|
-
this.state =
|
|
1891
|
+
this.state = 375;
|
|
1857
1892
|
this.errorHandler.sync(this);
|
|
1858
1893
|
_la = this.tokenStream.LA(1);
|
|
1859
|
-
if (_la ===
|
|
1894
|
+
if (_la === 37) {
|
|
1860
1895
|
{
|
|
1861
|
-
this.state =
|
|
1896
|
+
this.state = 374;
|
|
1862
1897
|
this.match(CircuitScriptParser.Minus);
|
|
1863
1898
|
}
|
|
1864
1899
|
}
|
|
1865
|
-
this.state =
|
|
1900
|
+
this.state = 377;
|
|
1866
1901
|
_la = this.tokenStream.LA(1);
|
|
1867
|
-
if (!(((((_la -
|
|
1902
|
+
if (!(((((_la - 43)) & ~0x1F) === 0 && ((1 << (_la - 43)) & 125) !== 0))) {
|
|
1868
1903
|
this.errorHandler.recoverInline(this);
|
|
1869
1904
|
}
|
|
1870
1905
|
else {
|
|
@@ -1877,7 +1912,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1877
1912
|
case CircuitScriptParser.T__5:
|
|
1878
1913
|
this.enterOuterAlt(localContext, 2);
|
|
1879
1914
|
{
|
|
1880
|
-
this.state =
|
|
1915
|
+
this.state = 378;
|
|
1881
1916
|
this.blank_expr();
|
|
1882
1917
|
}
|
|
1883
1918
|
break;
|
|
@@ -1906,40 +1941,40 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1906
1941
|
try {
|
|
1907
1942
|
this.enterOuterAlt(localContext, 1);
|
|
1908
1943
|
{
|
|
1909
|
-
this.state =
|
|
1944
|
+
this.state = 381;
|
|
1910
1945
|
this.match(CircuitScriptParser.Define);
|
|
1911
|
-
this.state =
|
|
1946
|
+
this.state = 382;
|
|
1912
1947
|
this.match(CircuitScriptParser.ID);
|
|
1913
|
-
this.state =
|
|
1948
|
+
this.state = 383;
|
|
1914
1949
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
1915
|
-
this.state =
|
|
1950
|
+
this.state = 385;
|
|
1916
1951
|
this.errorHandler.sync(this);
|
|
1917
1952
|
_la = this.tokenStream.LA(1);
|
|
1918
|
-
if (_la ===
|
|
1953
|
+
if (_la === 44) {
|
|
1919
1954
|
{
|
|
1920
|
-
this.state =
|
|
1955
|
+
this.state = 384;
|
|
1921
1956
|
this.function_args_expr();
|
|
1922
1957
|
}
|
|
1923
1958
|
}
|
|
1924
|
-
this.state =
|
|
1959
|
+
this.state = 387;
|
|
1925
1960
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
1926
|
-
this.state =
|
|
1961
|
+
this.state = 388;
|
|
1927
1962
|
this.match(CircuitScriptParser.T__0);
|
|
1928
|
-
this.state =
|
|
1963
|
+
this.state = 389;
|
|
1929
1964
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1930
|
-
this.state =
|
|
1965
|
+
this.state = 390;
|
|
1931
1966
|
this.match(CircuitScriptParser.INDENT);
|
|
1932
|
-
this.state =
|
|
1967
|
+
this.state = 393;
|
|
1933
1968
|
this.errorHandler.sync(this);
|
|
1934
1969
|
_la = this.tokenStream.LA(1);
|
|
1935
1970
|
do {
|
|
1936
1971
|
{
|
|
1937
|
-
this.state =
|
|
1972
|
+
this.state = 393;
|
|
1938
1973
|
this.errorHandler.sync(this);
|
|
1939
1974
|
switch (this.tokenStream.LA(1)) {
|
|
1940
1975
|
case CircuitScriptParser.NEWLINE:
|
|
1941
1976
|
{
|
|
1942
|
-
this.state =
|
|
1977
|
+
this.state = 391;
|
|
1943
1978
|
this.match(CircuitScriptParser.NEWLINE);
|
|
1944
1979
|
}
|
|
1945
1980
|
break;
|
|
@@ -1956,12 +1991,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1956
1991
|
case CircuitScriptParser.Return:
|
|
1957
1992
|
case CircuitScriptParser.Define:
|
|
1958
1993
|
case CircuitScriptParser.Import:
|
|
1994
|
+
case CircuitScriptParser.If:
|
|
1959
1995
|
case CircuitScriptParser.Frame:
|
|
1960
1996
|
case CircuitScriptParser.Addition:
|
|
1961
1997
|
case CircuitScriptParser.Divide:
|
|
1962
1998
|
case CircuitScriptParser.ID:
|
|
1963
1999
|
{
|
|
1964
|
-
this.state =
|
|
2000
|
+
this.state = 392;
|
|
1965
2001
|
this.function_expr();
|
|
1966
2002
|
}
|
|
1967
2003
|
break;
|
|
@@ -1969,11 +2005,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1969
2005
|
throw new antlr.NoViableAltException(this);
|
|
1970
2006
|
}
|
|
1971
2007
|
}
|
|
1972
|
-
this.state =
|
|
2008
|
+
this.state = 395;
|
|
1973
2009
|
this.errorHandler.sync(this);
|
|
1974
2010
|
_la = this.tokenStream.LA(1);
|
|
1975
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
1976
|
-
this.state =
|
|
2011
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 167748368) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
2012
|
+
this.state = 397;
|
|
1977
2013
|
this.match(CircuitScriptParser.DEDENT);
|
|
1978
2014
|
}
|
|
1979
2015
|
}
|
|
@@ -1995,7 +2031,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
1995
2031
|
let localContext = new Function_exprContext(this.context, this.state);
|
|
1996
2032
|
this.enterRule(localContext, 66, CircuitScriptParser.RULE_function_expr);
|
|
1997
2033
|
try {
|
|
1998
|
-
this.state =
|
|
2034
|
+
this.state = 401;
|
|
1999
2035
|
this.errorHandler.sync(this);
|
|
2000
2036
|
switch (this.tokenStream.LA(1)) {
|
|
2001
2037
|
case CircuitScriptParser.T__3:
|
|
@@ -2010,20 +2046,21 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2010
2046
|
case CircuitScriptParser.Parallel:
|
|
2011
2047
|
case CircuitScriptParser.Define:
|
|
2012
2048
|
case CircuitScriptParser.Import:
|
|
2049
|
+
case CircuitScriptParser.If:
|
|
2013
2050
|
case CircuitScriptParser.Frame:
|
|
2014
2051
|
case CircuitScriptParser.Addition:
|
|
2015
2052
|
case CircuitScriptParser.Divide:
|
|
2016
2053
|
case CircuitScriptParser.ID:
|
|
2017
2054
|
this.enterOuterAlt(localContext, 1);
|
|
2018
2055
|
{
|
|
2019
|
-
this.state =
|
|
2056
|
+
this.state = 399;
|
|
2020
2057
|
this.expression();
|
|
2021
2058
|
}
|
|
2022
2059
|
break;
|
|
2023
2060
|
case CircuitScriptParser.Return:
|
|
2024
2061
|
this.enterOuterAlt(localContext, 2);
|
|
2025
2062
|
{
|
|
2026
|
-
this.state =
|
|
2063
|
+
this.state = 400;
|
|
2027
2064
|
this.function_return_expr();
|
|
2028
2065
|
}
|
|
2029
2066
|
break;
|
|
@@ -2051,49 +2088,49 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2051
2088
|
let _la;
|
|
2052
2089
|
try {
|
|
2053
2090
|
let alternative;
|
|
2054
|
-
this.state =
|
|
2091
|
+
this.state = 432;
|
|
2055
2092
|
this.errorHandler.sync(this);
|
|
2056
2093
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 44, this.context)) {
|
|
2057
2094
|
case 1:
|
|
2058
2095
|
this.enterOuterAlt(localContext, 1);
|
|
2059
2096
|
{
|
|
2060
|
-
this.state =
|
|
2097
|
+
this.state = 403;
|
|
2061
2098
|
this.match(CircuitScriptParser.ID);
|
|
2062
|
-
this.state =
|
|
2099
|
+
this.state = 408;
|
|
2063
2100
|
this.errorHandler.sync(this);
|
|
2064
2101
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 41, this.context);
|
|
2065
2102
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
2066
2103
|
if (alternative === 1) {
|
|
2067
2104
|
{
|
|
2068
2105
|
{
|
|
2069
|
-
this.state =
|
|
2106
|
+
this.state = 404;
|
|
2070
2107
|
this.match(CircuitScriptParser.T__1);
|
|
2071
|
-
this.state =
|
|
2108
|
+
this.state = 405;
|
|
2072
2109
|
this.match(CircuitScriptParser.ID);
|
|
2073
2110
|
}
|
|
2074
2111
|
}
|
|
2075
2112
|
}
|
|
2076
|
-
this.state =
|
|
2113
|
+
this.state = 410;
|
|
2077
2114
|
this.errorHandler.sync(this);
|
|
2078
2115
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 41, this.context);
|
|
2079
2116
|
}
|
|
2080
|
-
this.state =
|
|
2117
|
+
this.state = 417;
|
|
2081
2118
|
this.errorHandler.sync(this);
|
|
2082
2119
|
_la = this.tokenStream.LA(1);
|
|
2083
2120
|
while (_la === 2) {
|
|
2084
2121
|
{
|
|
2085
2122
|
{
|
|
2086
|
-
this.state =
|
|
2123
|
+
this.state = 411;
|
|
2087
2124
|
this.match(CircuitScriptParser.T__1);
|
|
2088
|
-
this.state =
|
|
2125
|
+
this.state = 412;
|
|
2089
2126
|
this.match(CircuitScriptParser.ID);
|
|
2090
|
-
this.state =
|
|
2127
|
+
this.state = 413;
|
|
2091
2128
|
this.match(CircuitScriptParser.T__2);
|
|
2092
|
-
this.state =
|
|
2129
|
+
this.state = 414;
|
|
2093
2130
|
this.value_expr();
|
|
2094
2131
|
}
|
|
2095
2132
|
}
|
|
2096
|
-
this.state =
|
|
2133
|
+
this.state = 419;
|
|
2097
2134
|
this.errorHandler.sync(this);
|
|
2098
2135
|
_la = this.tokenStream.LA(1);
|
|
2099
2136
|
}
|
|
@@ -2102,29 +2139,29 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2102
2139
|
case 2:
|
|
2103
2140
|
this.enterOuterAlt(localContext, 2);
|
|
2104
2141
|
{
|
|
2105
|
-
this.state =
|
|
2142
|
+
this.state = 420;
|
|
2106
2143
|
this.match(CircuitScriptParser.ID);
|
|
2107
|
-
this.state =
|
|
2144
|
+
this.state = 421;
|
|
2108
2145
|
this.match(CircuitScriptParser.T__2);
|
|
2109
|
-
this.state =
|
|
2146
|
+
this.state = 422;
|
|
2110
2147
|
this.value_expr();
|
|
2111
|
-
this.state =
|
|
2148
|
+
this.state = 429;
|
|
2112
2149
|
this.errorHandler.sync(this);
|
|
2113
2150
|
_la = this.tokenStream.LA(1);
|
|
2114
2151
|
while (_la === 2) {
|
|
2115
2152
|
{
|
|
2116
2153
|
{
|
|
2117
|
-
this.state =
|
|
2154
|
+
this.state = 423;
|
|
2118
2155
|
this.match(CircuitScriptParser.T__1);
|
|
2119
|
-
this.state =
|
|
2156
|
+
this.state = 424;
|
|
2120
2157
|
this.match(CircuitScriptParser.ID);
|
|
2121
|
-
this.state =
|
|
2158
|
+
this.state = 425;
|
|
2122
2159
|
this.match(CircuitScriptParser.T__2);
|
|
2123
|
-
this.state =
|
|
2160
|
+
this.state = 426;
|
|
2124
2161
|
this.value_expr();
|
|
2125
2162
|
}
|
|
2126
2163
|
}
|
|
2127
|
-
this.state =
|
|
2164
|
+
this.state = 431;
|
|
2128
2165
|
this.errorHandler.sync(this);
|
|
2129
2166
|
_la = this.tokenStream.LA(1);
|
|
2130
2167
|
}
|
|
@@ -2153,23 +2190,23 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2153
2190
|
let alternative;
|
|
2154
2191
|
this.enterOuterAlt(localContext, 1);
|
|
2155
2192
|
{
|
|
2156
|
-
this.state =
|
|
2193
|
+
this.state = 434;
|
|
2157
2194
|
this.match(CircuitScriptParser.ID);
|
|
2158
|
-
this.state =
|
|
2195
|
+
this.state = 439;
|
|
2159
2196
|
this.errorHandler.sync(this);
|
|
2160
2197
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context);
|
|
2161
2198
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
2162
2199
|
if (alternative === 1) {
|
|
2163
2200
|
{
|
|
2164
2201
|
{
|
|
2165
|
-
this.state =
|
|
2202
|
+
this.state = 435;
|
|
2166
2203
|
this.match(CircuitScriptParser.T__4);
|
|
2167
|
-
this.state =
|
|
2204
|
+
this.state = 436;
|
|
2168
2205
|
this.match(CircuitScriptParser.ID);
|
|
2169
2206
|
}
|
|
2170
2207
|
}
|
|
2171
2208
|
}
|
|
2172
|
-
this.state =
|
|
2209
|
+
this.state = 441;
|
|
2173
2210
|
this.errorHandler.sync(this);
|
|
2174
2211
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 45, this.context);
|
|
2175
2212
|
}
|
|
@@ -2194,33 +2231,33 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2194
2231
|
this.enterRule(localContext, 72, CircuitScriptParser.RULE_trailer_expr);
|
|
2195
2232
|
let _la;
|
|
2196
2233
|
try {
|
|
2197
|
-
this.state =
|
|
2234
|
+
this.state = 449;
|
|
2198
2235
|
this.errorHandler.sync(this);
|
|
2199
2236
|
switch (this.tokenStream.LA(1)) {
|
|
2200
2237
|
case CircuitScriptParser.OPEN_PAREN:
|
|
2201
2238
|
this.enterOuterAlt(localContext, 1);
|
|
2202
2239
|
{
|
|
2203
|
-
this.state =
|
|
2240
|
+
this.state = 442;
|
|
2204
2241
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2205
|
-
this.state =
|
|
2242
|
+
this.state = 444;
|
|
2206
2243
|
this.errorHandler.sync(this);
|
|
2207
2244
|
_la = this.tokenStream.LA(1);
|
|
2208
|
-
if ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
2245
|
+
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 67109952) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 16279) !== 0)) {
|
|
2209
2246
|
{
|
|
2210
|
-
this.state =
|
|
2247
|
+
this.state = 443;
|
|
2211
2248
|
this.parameters();
|
|
2212
2249
|
}
|
|
2213
2250
|
}
|
|
2214
|
-
this.state =
|
|
2251
|
+
this.state = 446;
|
|
2215
2252
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2216
2253
|
}
|
|
2217
2254
|
break;
|
|
2218
2255
|
case CircuitScriptParser.T__4:
|
|
2219
2256
|
this.enterOuterAlt(localContext, 2);
|
|
2220
2257
|
{
|
|
2221
|
-
this.state =
|
|
2258
|
+
this.state = 447;
|
|
2222
2259
|
this.match(CircuitScriptParser.T__4);
|
|
2223
|
-
this.state =
|
|
2260
|
+
this.state = 448;
|
|
2224
2261
|
this.match(CircuitScriptParser.ID);
|
|
2225
2262
|
}
|
|
2226
2263
|
break;
|
|
@@ -2250,18 +2287,18 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2250
2287
|
let alternative;
|
|
2251
2288
|
this.enterOuterAlt(localContext, 1);
|
|
2252
2289
|
{
|
|
2253
|
-
this.state =
|
|
2290
|
+
this.state = 452;
|
|
2254
2291
|
this.errorHandler.sync(this);
|
|
2255
2292
|
_la = this.tokenStream.LA(1);
|
|
2256
|
-
if (_la ===
|
|
2293
|
+
if (_la === 36 || _la === 38) {
|
|
2257
2294
|
{
|
|
2258
|
-
this.state =
|
|
2295
|
+
this.state = 451;
|
|
2259
2296
|
this.net_namespace_expr();
|
|
2260
2297
|
}
|
|
2261
2298
|
}
|
|
2262
|
-
this.state =
|
|
2299
|
+
this.state = 454;
|
|
2263
2300
|
this.match(CircuitScriptParser.ID);
|
|
2264
|
-
this.state =
|
|
2301
|
+
this.state = 456;
|
|
2265
2302
|
this.errorHandler.sync(this);
|
|
2266
2303
|
alternative = 1;
|
|
2267
2304
|
do {
|
|
@@ -2269,7 +2306,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2269
2306
|
case 1:
|
|
2270
2307
|
{
|
|
2271
2308
|
{
|
|
2272
|
-
this.state =
|
|
2309
|
+
this.state = 455;
|
|
2273
2310
|
this.trailer_expr();
|
|
2274
2311
|
}
|
|
2275
2312
|
}
|
|
@@ -2277,7 +2314,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2277
2314
|
default:
|
|
2278
2315
|
throw new antlr.NoViableAltException(this);
|
|
2279
2316
|
}
|
|
2280
|
-
this.state =
|
|
2317
|
+
this.state = 458;
|
|
2281
2318
|
this.errorHandler.sync(this);
|
|
2282
2319
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 49, this.context);
|
|
2283
2320
|
} while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER);
|
|
@@ -2304,23 +2341,23 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2304
2341
|
try {
|
|
2305
2342
|
this.enterOuterAlt(localContext, 1);
|
|
2306
2343
|
{
|
|
2307
|
-
this.state =
|
|
2344
|
+
this.state = 461;
|
|
2308
2345
|
this.errorHandler.sync(this);
|
|
2309
2346
|
_la = this.tokenStream.LA(1);
|
|
2310
|
-
if (_la ===
|
|
2347
|
+
if (_la === 36) {
|
|
2311
2348
|
{
|
|
2312
|
-
this.state =
|
|
2349
|
+
this.state = 460;
|
|
2313
2350
|
this.match(CircuitScriptParser.Addition);
|
|
2314
2351
|
}
|
|
2315
2352
|
}
|
|
2316
|
-
this.state =
|
|
2353
|
+
this.state = 463;
|
|
2317
2354
|
this.match(CircuitScriptParser.Divide);
|
|
2318
|
-
this.state =
|
|
2355
|
+
this.state = 465;
|
|
2319
2356
|
this.errorHandler.sync(this);
|
|
2320
2357
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 51, this.context)) {
|
|
2321
2358
|
case 1:
|
|
2322
2359
|
{
|
|
2323
|
-
this.state =
|
|
2360
|
+
this.state = 464;
|
|
2324
2361
|
this.data_expr(0);
|
|
2325
2362
|
}
|
|
2326
2363
|
break;
|
|
@@ -2347,9 +2384,9 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2347
2384
|
try {
|
|
2348
2385
|
this.enterOuterAlt(localContext, 1);
|
|
2349
2386
|
{
|
|
2350
|
-
this.state =
|
|
2387
|
+
this.state = 467;
|
|
2351
2388
|
this.match(CircuitScriptParser.Return);
|
|
2352
|
-
this.state =
|
|
2389
|
+
this.state = 468;
|
|
2353
2390
|
this.data_expr(0);
|
|
2354
2391
|
}
|
|
2355
2392
|
}
|
|
@@ -2374,27 +2411,27 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2374
2411
|
try {
|
|
2375
2412
|
this.enterOuterAlt(localContext, 1);
|
|
2376
2413
|
{
|
|
2377
|
-
this.state =
|
|
2414
|
+
this.state = 470;
|
|
2378
2415
|
this.match(CircuitScriptParser.Create);
|
|
2379
|
-
this.state =
|
|
2416
|
+
this.state = 471;
|
|
2380
2417
|
this.match(CircuitScriptParser.Component);
|
|
2381
|
-
this.state =
|
|
2418
|
+
this.state = 472;
|
|
2382
2419
|
this.match(CircuitScriptParser.T__0);
|
|
2383
|
-
this.state =
|
|
2420
|
+
this.state = 473;
|
|
2384
2421
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2385
|
-
this.state =
|
|
2422
|
+
this.state = 474;
|
|
2386
2423
|
this.match(CircuitScriptParser.INDENT);
|
|
2387
|
-
this.state =
|
|
2424
|
+
this.state = 477;
|
|
2388
2425
|
this.errorHandler.sync(this);
|
|
2389
2426
|
_la = this.tokenStream.LA(1);
|
|
2390
2427
|
do {
|
|
2391
2428
|
{
|
|
2392
|
-
this.state =
|
|
2429
|
+
this.state = 477;
|
|
2393
2430
|
this.errorHandler.sync(this);
|
|
2394
2431
|
switch (this.tokenStream.LA(1)) {
|
|
2395
2432
|
case CircuitScriptParser.NEWLINE:
|
|
2396
2433
|
{
|
|
2397
|
-
this.state =
|
|
2434
|
+
this.state = 475;
|
|
2398
2435
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2399
2436
|
}
|
|
2400
2437
|
break;
|
|
@@ -2402,7 +2439,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2402
2439
|
case CircuitScriptParser.INTEGER_VALUE:
|
|
2403
2440
|
case CircuitScriptParser.STRING_VALUE:
|
|
2404
2441
|
{
|
|
2405
|
-
this.state =
|
|
2442
|
+
this.state = 476;
|
|
2406
2443
|
this.property_expr();
|
|
2407
2444
|
}
|
|
2408
2445
|
break;
|
|
@@ -2410,11 +2447,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2410
2447
|
throw new antlr.NoViableAltException(this);
|
|
2411
2448
|
}
|
|
2412
2449
|
}
|
|
2413
|
-
this.state =
|
|
2450
|
+
this.state = 479;
|
|
2414
2451
|
this.errorHandler.sync(this);
|
|
2415
2452
|
_la = this.tokenStream.LA(1);
|
|
2416
|
-
} while (((((_la -
|
|
2417
|
-
this.state =
|
|
2453
|
+
} while (((((_la - 44)) & ~0x1F) === 0 && ((1 << (_la - 44)) & 275) !== 0));
|
|
2454
|
+
this.state = 481;
|
|
2418
2455
|
this.match(CircuitScriptParser.DEDENT);
|
|
2419
2456
|
}
|
|
2420
2457
|
}
|
|
@@ -2439,46 +2476,46 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2439
2476
|
try {
|
|
2440
2477
|
this.enterOuterAlt(localContext, 1);
|
|
2441
2478
|
{
|
|
2442
|
-
this.state =
|
|
2479
|
+
this.state = 483;
|
|
2443
2480
|
this.match(CircuitScriptParser.Create);
|
|
2444
|
-
this.state =
|
|
2481
|
+
this.state = 484;
|
|
2445
2482
|
this.match(CircuitScriptParser.Graphic);
|
|
2446
|
-
this.state =
|
|
2483
|
+
this.state = 485;
|
|
2447
2484
|
this.match(CircuitScriptParser.T__0);
|
|
2448
|
-
this.state =
|
|
2485
|
+
this.state = 486;
|
|
2449
2486
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2450
|
-
this.state =
|
|
2487
|
+
this.state = 487;
|
|
2451
2488
|
this.match(CircuitScriptParser.INDENT);
|
|
2452
|
-
this.state =
|
|
2489
|
+
this.state = 490;
|
|
2453
2490
|
this.errorHandler.sync(this);
|
|
2454
2491
|
_la = this.tokenStream.LA(1);
|
|
2455
2492
|
do {
|
|
2456
2493
|
{
|
|
2457
|
-
this.state =
|
|
2494
|
+
this.state = 490;
|
|
2458
2495
|
this.errorHandler.sync(this);
|
|
2459
2496
|
switch (this.tokenStream.LA(1)) {
|
|
2460
2497
|
case CircuitScriptParser.NEWLINE:
|
|
2461
2498
|
{
|
|
2462
|
-
this.state =
|
|
2499
|
+
this.state = 488;
|
|
2463
2500
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2464
2501
|
}
|
|
2465
2502
|
break;
|
|
2466
2503
|
case CircuitScriptParser.Pin:
|
|
2467
2504
|
case CircuitScriptParser.ID:
|
|
2468
2505
|
{
|
|
2469
|
-
this.state =
|
|
2470
|
-
this.
|
|
2506
|
+
this.state = 489;
|
|
2507
|
+
this.graphic_expr();
|
|
2471
2508
|
}
|
|
2472
2509
|
break;
|
|
2473
2510
|
default:
|
|
2474
2511
|
throw new antlr.NoViableAltException(this);
|
|
2475
2512
|
}
|
|
2476
2513
|
}
|
|
2477
|
-
this.state =
|
|
2514
|
+
this.state = 492;
|
|
2478
2515
|
this.errorHandler.sync(this);
|
|
2479
2516
|
_la = this.tokenStream.LA(1);
|
|
2480
|
-
} while (
|
|
2481
|
-
this.state =
|
|
2517
|
+
} while (_la === 14 || _la === 44 || _la === 52);
|
|
2518
|
+
this.state = 494;
|
|
2482
2519
|
this.match(CircuitScriptParser.DEDENT);
|
|
2483
2520
|
}
|
|
2484
2521
|
}
|
|
@@ -2496,51 +2533,118 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2496
2533
|
}
|
|
2497
2534
|
return localContext;
|
|
2498
2535
|
}
|
|
2499
|
-
|
|
2500
|
-
let localContext = new
|
|
2501
|
-
this.enterRule(localContext, 84, CircuitScriptParser.
|
|
2536
|
+
nested_properties_inner() {
|
|
2537
|
+
let localContext = new Nested_properties_innerContext(this.context, this.state);
|
|
2538
|
+
this.enterRule(localContext, 84, CircuitScriptParser.RULE_nested_properties_inner);
|
|
2502
2539
|
let _la;
|
|
2503
2540
|
try {
|
|
2504
2541
|
this.enterOuterAlt(localContext, 1);
|
|
2505
2542
|
{
|
|
2506
|
-
|
|
2543
|
+
{
|
|
2544
|
+
this.state = 496;
|
|
2545
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
2546
|
+
this.state = 497;
|
|
2547
|
+
this.match(CircuitScriptParser.INDENT);
|
|
2548
|
+
this.state = 500;
|
|
2549
|
+
this.errorHandler.sync(this);
|
|
2550
|
+
_la = this.tokenStream.LA(1);
|
|
2551
|
+
do {
|
|
2552
|
+
{
|
|
2553
|
+
this.state = 500;
|
|
2554
|
+
this.errorHandler.sync(this);
|
|
2555
|
+
switch (this.tokenStream.LA(1)) {
|
|
2556
|
+
case CircuitScriptParser.NEWLINE:
|
|
2557
|
+
{
|
|
2558
|
+
this.state = 498;
|
|
2559
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
2560
|
+
}
|
|
2561
|
+
break;
|
|
2562
|
+
case CircuitScriptParser.ID:
|
|
2563
|
+
case CircuitScriptParser.INTEGER_VALUE:
|
|
2564
|
+
case CircuitScriptParser.STRING_VALUE:
|
|
2565
|
+
{
|
|
2566
|
+
this.state = 499;
|
|
2567
|
+
this.property_expr();
|
|
2568
|
+
}
|
|
2569
|
+
break;
|
|
2570
|
+
default:
|
|
2571
|
+
throw new antlr.NoViableAltException(this);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
this.state = 502;
|
|
2575
|
+
this.errorHandler.sync(this);
|
|
2576
|
+
_la = this.tokenStream.LA(1);
|
|
2577
|
+
} while (((((_la - 44)) & ~0x1F) === 0 && ((1 << (_la - 44)) & 275) !== 0));
|
|
2578
|
+
this.state = 504;
|
|
2579
|
+
this.match(CircuitScriptParser.DEDENT);
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
catch (re) {
|
|
2584
|
+
if (re instanceof antlr.RecognitionException) {
|
|
2585
|
+
this.errorHandler.reportError(this, re);
|
|
2586
|
+
this.errorHandler.recover(this, re);
|
|
2587
|
+
}
|
|
2588
|
+
else {
|
|
2589
|
+
throw re;
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
finally {
|
|
2593
|
+
this.exitRule();
|
|
2594
|
+
}
|
|
2595
|
+
return localContext;
|
|
2596
|
+
}
|
|
2597
|
+
graphic_expr() {
|
|
2598
|
+
let localContext = new Graphic_exprContext(this.context, this.state);
|
|
2599
|
+
this.enterRule(localContext, 86, CircuitScriptParser.RULE_graphic_expr);
|
|
2600
|
+
let _la;
|
|
2601
|
+
try {
|
|
2602
|
+
this.enterOuterAlt(localContext, 1);
|
|
2603
|
+
{
|
|
2604
|
+
this.state = 506;
|
|
2507
2605
|
localContext._command = this.tokenStream.LT(1);
|
|
2508
2606
|
_la = this.tokenStream.LA(1);
|
|
2509
|
-
if (!(_la === 14 || _la ===
|
|
2607
|
+
if (!(_la === 14 || _la === 44)) {
|
|
2510
2608
|
localContext._command = this.errorHandler.recoverInline(this);
|
|
2511
2609
|
}
|
|
2512
2610
|
else {
|
|
2513
2611
|
this.errorHandler.reportMatch(this);
|
|
2514
2612
|
this.consume();
|
|
2515
2613
|
}
|
|
2516
|
-
this.state =
|
|
2614
|
+
this.state = 508;
|
|
2517
2615
|
this.errorHandler.sync(this);
|
|
2518
2616
|
_la = this.tokenStream.LA(1);
|
|
2519
2617
|
if (_la === 1) {
|
|
2520
2618
|
{
|
|
2521
|
-
this.state =
|
|
2619
|
+
this.state = 507;
|
|
2522
2620
|
this.match(CircuitScriptParser.T__0);
|
|
2523
2621
|
}
|
|
2524
2622
|
}
|
|
2525
|
-
this.state =
|
|
2623
|
+
this.state = 516;
|
|
2526
2624
|
this.errorHandler.sync(this);
|
|
2527
|
-
switch (this.interpreter.adaptivePredict(this.tokenStream,
|
|
2625
|
+
switch (this.interpreter.adaptivePredict(this.tokenStream, 59, this.context)) {
|
|
2528
2626
|
case 1:
|
|
2529
2627
|
{
|
|
2530
|
-
this.state =
|
|
2628
|
+
this.state = 510;
|
|
2531
2629
|
this.parameters();
|
|
2532
2630
|
}
|
|
2533
2631
|
break;
|
|
2534
2632
|
case 2:
|
|
2535
2633
|
{
|
|
2536
|
-
this.state =
|
|
2634
|
+
this.state = 511;
|
|
2537
2635
|
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2538
|
-
this.state =
|
|
2636
|
+
this.state = 512;
|
|
2539
2637
|
this.parameters();
|
|
2540
|
-
this.state =
|
|
2638
|
+
this.state = 513;
|
|
2541
2639
|
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2542
2640
|
}
|
|
2543
2641
|
break;
|
|
2642
|
+
case 3:
|
|
2643
|
+
{
|
|
2644
|
+
this.state = 515;
|
|
2645
|
+
this.nested_properties_inner();
|
|
2646
|
+
}
|
|
2647
|
+
break;
|
|
2544
2648
|
}
|
|
2545
2649
|
}
|
|
2546
2650
|
}
|
|
@@ -2560,15 +2664,15 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2560
2664
|
}
|
|
2561
2665
|
property_expr() {
|
|
2562
2666
|
let localContext = new Property_exprContext(this.context, this.state);
|
|
2563
|
-
this.enterRule(localContext,
|
|
2667
|
+
this.enterRule(localContext, 88, CircuitScriptParser.RULE_property_expr);
|
|
2564
2668
|
try {
|
|
2565
2669
|
this.enterOuterAlt(localContext, 1);
|
|
2566
2670
|
{
|
|
2567
|
-
this.state =
|
|
2671
|
+
this.state = 518;
|
|
2568
2672
|
this.property_key_expr();
|
|
2569
|
-
this.state =
|
|
2673
|
+
this.state = 519;
|
|
2570
2674
|
this.match(CircuitScriptParser.T__0);
|
|
2571
|
-
this.state =
|
|
2675
|
+
this.state = 520;
|
|
2572
2676
|
this.property_value_expr();
|
|
2573
2677
|
}
|
|
2574
2678
|
}
|
|
@@ -2588,14 +2692,14 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2588
2692
|
}
|
|
2589
2693
|
property_key_expr() {
|
|
2590
2694
|
let localContext = new Property_key_exprContext(this.context, this.state);
|
|
2591
|
-
this.enterRule(localContext,
|
|
2695
|
+
this.enterRule(localContext, 90, CircuitScriptParser.RULE_property_key_expr);
|
|
2592
2696
|
let _la;
|
|
2593
2697
|
try {
|
|
2594
2698
|
this.enterOuterAlt(localContext, 1);
|
|
2595
2699
|
{
|
|
2596
|
-
this.state =
|
|
2700
|
+
this.state = 522;
|
|
2597
2701
|
_la = this.tokenStream.LA(1);
|
|
2598
|
-
if (!(((((_la -
|
|
2702
|
+
if (!(((((_la - 44)) & ~0x1F) === 0 && ((1 << (_la - 44)) & 19) !== 0))) {
|
|
2599
2703
|
this.errorHandler.recoverInline(this);
|
|
2600
2704
|
}
|
|
2601
2705
|
else {
|
|
@@ -2620,52 +2724,18 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2620
2724
|
}
|
|
2621
2725
|
property_value_expr() {
|
|
2622
2726
|
let localContext = new Property_value_exprContext(this.context, this.state);
|
|
2623
|
-
this.enterRule(localContext,
|
|
2727
|
+
this.enterRule(localContext, 92, CircuitScriptParser.RULE_property_value_expr);
|
|
2624
2728
|
let _la;
|
|
2625
2729
|
try {
|
|
2626
|
-
this.state =
|
|
2730
|
+
this.state = 533;
|
|
2627
2731
|
this.errorHandler.sync(this);
|
|
2628
2732
|
switch (this.tokenStream.LA(1)) {
|
|
2629
2733
|
case CircuitScriptParser.NEWLINE:
|
|
2630
2734
|
localContext = new Nested_propertiesContext(localContext);
|
|
2631
2735
|
this.enterOuterAlt(localContext, 1);
|
|
2632
2736
|
{
|
|
2633
|
-
this.state =
|
|
2634
|
-
this.
|
|
2635
|
-
this.state = 502;
|
|
2636
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2637
|
-
this.state = 505;
|
|
2638
|
-
this.errorHandler.sync(this);
|
|
2639
|
-
_la = this.tokenStream.LA(1);
|
|
2640
|
-
do {
|
|
2641
|
-
{
|
|
2642
|
-
this.state = 505;
|
|
2643
|
-
this.errorHandler.sync(this);
|
|
2644
|
-
switch (this.tokenStream.LA(1)) {
|
|
2645
|
-
case CircuitScriptParser.NEWLINE:
|
|
2646
|
-
{
|
|
2647
|
-
this.state = 503;
|
|
2648
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2649
|
-
}
|
|
2650
|
-
break;
|
|
2651
|
-
case CircuitScriptParser.ID:
|
|
2652
|
-
case CircuitScriptParser.INTEGER_VALUE:
|
|
2653
|
-
case CircuitScriptParser.STRING_VALUE:
|
|
2654
|
-
{
|
|
2655
|
-
this.state = 504;
|
|
2656
|
-
this.property_expr();
|
|
2657
|
-
}
|
|
2658
|
-
break;
|
|
2659
|
-
default:
|
|
2660
|
-
throw new antlr.NoViableAltException(this);
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
this.state = 507;
|
|
2664
|
-
this.errorHandler.sync(this);
|
|
2665
|
-
_la = this.tokenStream.LA(1);
|
|
2666
|
-
} while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 275) !== 0));
|
|
2667
|
-
this.state = 509;
|
|
2668
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2737
|
+
this.state = 524;
|
|
2738
|
+
this.nested_properties_inner();
|
|
2669
2739
|
}
|
|
2670
2740
|
break;
|
|
2671
2741
|
case CircuitScriptParser.T__5:
|
|
@@ -2685,21 +2755,21 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2685
2755
|
localContext = new Single_line_propertyContext(localContext);
|
|
2686
2756
|
this.enterOuterAlt(localContext, 2);
|
|
2687
2757
|
{
|
|
2688
|
-
this.state =
|
|
2758
|
+
this.state = 525;
|
|
2689
2759
|
this.data_expr(0);
|
|
2690
|
-
this.state =
|
|
2760
|
+
this.state = 530;
|
|
2691
2761
|
this.errorHandler.sync(this);
|
|
2692
2762
|
_la = this.tokenStream.LA(1);
|
|
2693
2763
|
while (_la === 2) {
|
|
2694
2764
|
{
|
|
2695
2765
|
{
|
|
2696
|
-
this.state =
|
|
2766
|
+
this.state = 526;
|
|
2697
2767
|
this.match(CircuitScriptParser.T__1);
|
|
2698
|
-
this.state =
|
|
2768
|
+
this.state = 527;
|
|
2699
2769
|
this.data_expr(0);
|
|
2700
2770
|
}
|
|
2701
2771
|
}
|
|
2702
|
-
this.state =
|
|
2772
|
+
this.state = 532;
|
|
2703
2773
|
this.errorHandler.sync(this);
|
|
2704
2774
|
_la = this.tokenStream.LA(1);
|
|
2705
2775
|
}
|
|
@@ -2725,15 +2795,15 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2725
2795
|
}
|
|
2726
2796
|
blank_expr() {
|
|
2727
2797
|
let localContext = new Blank_exprContext(this.context, this.state);
|
|
2728
|
-
this.enterRule(localContext,
|
|
2798
|
+
this.enterRule(localContext, 94, CircuitScriptParser.RULE_blank_expr);
|
|
2729
2799
|
try {
|
|
2730
2800
|
this.enterOuterAlt(localContext, 1);
|
|
2731
2801
|
{
|
|
2732
|
-
this.state =
|
|
2802
|
+
this.state = 535;
|
|
2733
2803
|
this.match(CircuitScriptParser.T__5);
|
|
2734
|
-
this.state =
|
|
2804
|
+
this.state = 536;
|
|
2735
2805
|
this.match(CircuitScriptParser.INTEGER_VALUE);
|
|
2736
|
-
this.state =
|
|
2806
|
+
this.state = 537;
|
|
2737
2807
|
this.match(CircuitScriptParser.T__6);
|
|
2738
2808
|
}
|
|
2739
2809
|
}
|
|
@@ -2753,29 +2823,29 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2753
2823
|
}
|
|
2754
2824
|
wire_atom_expr() {
|
|
2755
2825
|
let localContext = new Wire_atom_exprContext(this.context, this.state);
|
|
2756
|
-
this.enterRule(localContext,
|
|
2826
|
+
this.enterRule(localContext, 96, CircuitScriptParser.RULE_wire_atom_expr);
|
|
2757
2827
|
try {
|
|
2758
|
-
this.state =
|
|
2828
|
+
this.state = 545;
|
|
2759
2829
|
this.errorHandler.sync(this);
|
|
2760
2830
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 63, this.context)) {
|
|
2761
2831
|
case 1:
|
|
2762
2832
|
localContext = new Wire_expr_direction_valueContext(localContext);
|
|
2763
2833
|
this.enterOuterAlt(localContext, 1);
|
|
2764
2834
|
{
|
|
2765
|
-
this.state =
|
|
2835
|
+
this.state = 539;
|
|
2766
2836
|
this.match(CircuitScriptParser.ID);
|
|
2767
|
-
this.state =
|
|
2837
|
+
this.state = 542;
|
|
2768
2838
|
this.errorHandler.sync(this);
|
|
2769
2839
|
switch (this.interpreter.adaptivePredict(this.tokenStream, 62, this.context)) {
|
|
2770
2840
|
case 1:
|
|
2771
2841
|
{
|
|
2772
|
-
this.state =
|
|
2842
|
+
this.state = 540;
|
|
2773
2843
|
this.match(CircuitScriptParser.INTEGER_VALUE);
|
|
2774
2844
|
}
|
|
2775
2845
|
break;
|
|
2776
2846
|
case 2:
|
|
2777
2847
|
{
|
|
2778
|
-
this.state =
|
|
2848
|
+
this.state = 541;
|
|
2779
2849
|
this.data_expr(0);
|
|
2780
2850
|
}
|
|
2781
2851
|
break;
|
|
@@ -2786,7 +2856,7 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2786
2856
|
localContext = new Wire_expr_direction_onlyContext(localContext);
|
|
2787
2857
|
this.enterOuterAlt(localContext, 2);
|
|
2788
2858
|
{
|
|
2789
|
-
this.state =
|
|
2859
|
+
this.state = 544;
|
|
2790
2860
|
this.match(CircuitScriptParser.ID);
|
|
2791
2861
|
}
|
|
2792
2862
|
break;
|
|
@@ -2808,26 +2878,26 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2808
2878
|
}
|
|
2809
2879
|
wire_expr() {
|
|
2810
2880
|
let localContext = new Wire_exprContext(this.context, this.state);
|
|
2811
|
-
this.enterRule(localContext,
|
|
2881
|
+
this.enterRule(localContext, 98, CircuitScriptParser.RULE_wire_expr);
|
|
2812
2882
|
try {
|
|
2813
2883
|
let alternative;
|
|
2814
2884
|
this.enterOuterAlt(localContext, 1);
|
|
2815
2885
|
{
|
|
2816
|
-
this.state =
|
|
2886
|
+
this.state = 547;
|
|
2817
2887
|
this.match(CircuitScriptParser.Wire);
|
|
2818
|
-
this.state =
|
|
2888
|
+
this.state = 551;
|
|
2819
2889
|
this.errorHandler.sync(this);
|
|
2820
2890
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 64, this.context);
|
|
2821
2891
|
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
2822
2892
|
if (alternative === 1) {
|
|
2823
2893
|
{
|
|
2824
2894
|
{
|
|
2825
|
-
this.state =
|
|
2895
|
+
this.state = 548;
|
|
2826
2896
|
this.wire_atom_expr();
|
|
2827
2897
|
}
|
|
2828
2898
|
}
|
|
2829
2899
|
}
|
|
2830
|
-
this.state =
|
|
2900
|
+
this.state = 553;
|
|
2831
2901
|
this.errorHandler.sync(this);
|
|
2832
2902
|
alternative = this.interpreter.adaptivePredict(this.tokenStream, 64, this.context);
|
|
2833
2903
|
}
|
|
@@ -2849,13 +2919,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2849
2919
|
}
|
|
2850
2920
|
point_expr() {
|
|
2851
2921
|
let localContext = new Point_exprContext(this.context, this.state);
|
|
2852
|
-
this.enterRule(localContext,
|
|
2922
|
+
this.enterRule(localContext, 100, CircuitScriptParser.RULE_point_expr);
|
|
2853
2923
|
try {
|
|
2854
2924
|
this.enterOuterAlt(localContext, 1);
|
|
2855
2925
|
{
|
|
2856
|
-
this.state =
|
|
2926
|
+
this.state = 554;
|
|
2857
2927
|
this.match(CircuitScriptParser.Point);
|
|
2858
|
-
this.state =
|
|
2928
|
+
this.state = 555;
|
|
2859
2929
|
this.match(CircuitScriptParser.ID);
|
|
2860
2930
|
}
|
|
2861
2931
|
}
|
|
@@ -2875,13 +2945,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2875
2945
|
}
|
|
2876
2946
|
import_expr() {
|
|
2877
2947
|
let localContext = new Import_exprContext(this.context, this.state);
|
|
2878
|
-
this.enterRule(localContext,
|
|
2948
|
+
this.enterRule(localContext, 102, CircuitScriptParser.RULE_import_expr);
|
|
2879
2949
|
try {
|
|
2880
2950
|
this.enterOuterAlt(localContext, 1);
|
|
2881
2951
|
{
|
|
2882
|
-
this.state =
|
|
2952
|
+
this.state = 557;
|
|
2883
2953
|
this.match(CircuitScriptParser.Import);
|
|
2884
|
-
this.state =
|
|
2954
|
+
this.state = 558;
|
|
2885
2955
|
this.match(CircuitScriptParser.ID);
|
|
2886
2956
|
}
|
|
2887
2957
|
}
|
|
@@ -2901,30 +2971,30 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2901
2971
|
}
|
|
2902
2972
|
frame_expr() {
|
|
2903
2973
|
let localContext = new Frame_exprContext(this.context, this.state);
|
|
2904
|
-
this.enterRule(localContext,
|
|
2974
|
+
this.enterRule(localContext, 104, CircuitScriptParser.RULE_frame_expr);
|
|
2905
2975
|
let _la;
|
|
2906
2976
|
try {
|
|
2907
2977
|
this.enterOuterAlt(localContext, 1);
|
|
2908
2978
|
{
|
|
2909
|
-
this.state =
|
|
2979
|
+
this.state = 560;
|
|
2910
2980
|
this.match(CircuitScriptParser.Frame);
|
|
2911
|
-
this.state =
|
|
2981
|
+
this.state = 561;
|
|
2912
2982
|
this.match(CircuitScriptParser.T__0);
|
|
2913
|
-
this.state =
|
|
2983
|
+
this.state = 562;
|
|
2914
2984
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2915
|
-
this.state =
|
|
2985
|
+
this.state = 563;
|
|
2916
2986
|
this.match(CircuitScriptParser.INDENT);
|
|
2917
|
-
this.state =
|
|
2987
|
+
this.state = 566;
|
|
2918
2988
|
this.errorHandler.sync(this);
|
|
2919
2989
|
_la = this.tokenStream.LA(1);
|
|
2920
2990
|
do {
|
|
2921
2991
|
{
|
|
2922
|
-
this.state =
|
|
2992
|
+
this.state = 566;
|
|
2923
2993
|
this.errorHandler.sync(this);
|
|
2924
2994
|
switch (this.tokenStream.LA(1)) {
|
|
2925
2995
|
case CircuitScriptParser.NEWLINE:
|
|
2926
2996
|
{
|
|
2927
|
-
this.state =
|
|
2997
|
+
this.state = 564;
|
|
2928
2998
|
this.match(CircuitScriptParser.NEWLINE);
|
|
2929
2999
|
}
|
|
2930
3000
|
break;
|
|
@@ -2940,12 +3010,13 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2940
3010
|
case CircuitScriptParser.Parallel:
|
|
2941
3011
|
case CircuitScriptParser.Define:
|
|
2942
3012
|
case CircuitScriptParser.Import:
|
|
3013
|
+
case CircuitScriptParser.If:
|
|
2943
3014
|
case CircuitScriptParser.Frame:
|
|
2944
3015
|
case CircuitScriptParser.Addition:
|
|
2945
3016
|
case CircuitScriptParser.Divide:
|
|
2946
3017
|
case CircuitScriptParser.ID:
|
|
2947
3018
|
{
|
|
2948
|
-
this.state =
|
|
3019
|
+
this.state = 565;
|
|
2949
3020
|
this.expression();
|
|
2950
3021
|
}
|
|
2951
3022
|
break;
|
|
@@ -2953,11 +3024,11 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2953
3024
|
throw new antlr.NoViableAltException(this);
|
|
2954
3025
|
}
|
|
2955
3026
|
}
|
|
2956
|
-
this.state =
|
|
3027
|
+
this.state = 568;
|
|
2957
3028
|
this.errorHandler.sync(this);
|
|
2958
3029
|
_la = this.tokenStream.LA(1);
|
|
2959
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) &
|
|
2960
|
-
this.state =
|
|
3030
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
3031
|
+
this.state = 570;
|
|
2961
3032
|
this.match(CircuitScriptParser.DEDENT);
|
|
2962
3033
|
}
|
|
2963
3034
|
}
|
|
@@ -2975,40 +3046,305 @@ class CircuitScriptParser extends antlr.Parser {
|
|
|
2975
3046
|
}
|
|
2976
3047
|
return localContext;
|
|
2977
3048
|
}
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
CircuitScriptParser.
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
CircuitScriptParser.T__3
|
|
3011
|
-
CircuitScriptParser.
|
|
3049
|
+
if_expr() {
|
|
3050
|
+
let localContext = new If_exprContext(this.context, this.state);
|
|
3051
|
+
this.enterRule(localContext, 106, CircuitScriptParser.RULE_if_expr);
|
|
3052
|
+
let _la;
|
|
3053
|
+
try {
|
|
3054
|
+
let alternative;
|
|
3055
|
+
this.enterOuterAlt(localContext, 1);
|
|
3056
|
+
{
|
|
3057
|
+
this.state = 572;
|
|
3058
|
+
this.match(CircuitScriptParser.If);
|
|
3059
|
+
this.state = 573;
|
|
3060
|
+
this.data_expr(0);
|
|
3061
|
+
this.state = 574;
|
|
3062
|
+
this.match(CircuitScriptParser.T__0);
|
|
3063
|
+
this.state = 575;
|
|
3064
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3065
|
+
this.state = 576;
|
|
3066
|
+
this.match(CircuitScriptParser.INDENT);
|
|
3067
|
+
this.state = 579;
|
|
3068
|
+
this.errorHandler.sync(this);
|
|
3069
|
+
_la = this.tokenStream.LA(1);
|
|
3070
|
+
do {
|
|
3071
|
+
{
|
|
3072
|
+
this.state = 579;
|
|
3073
|
+
this.errorHandler.sync(this);
|
|
3074
|
+
switch (this.tokenStream.LA(1)) {
|
|
3075
|
+
case CircuitScriptParser.NEWLINE:
|
|
3076
|
+
{
|
|
3077
|
+
this.state = 577;
|
|
3078
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3079
|
+
}
|
|
3080
|
+
break;
|
|
3081
|
+
case CircuitScriptParser.T__3:
|
|
3082
|
+
case CircuitScriptParser.Break:
|
|
3083
|
+
case CircuitScriptParser.Branch:
|
|
3084
|
+
case CircuitScriptParser.Wire:
|
|
3085
|
+
case CircuitScriptParser.Add:
|
|
3086
|
+
case CircuitScriptParser.At:
|
|
3087
|
+
case CircuitScriptParser.To:
|
|
3088
|
+
case CircuitScriptParser.Point:
|
|
3089
|
+
case CircuitScriptParser.Join:
|
|
3090
|
+
case CircuitScriptParser.Parallel:
|
|
3091
|
+
case CircuitScriptParser.Define:
|
|
3092
|
+
case CircuitScriptParser.Import:
|
|
3093
|
+
case CircuitScriptParser.If:
|
|
3094
|
+
case CircuitScriptParser.Frame:
|
|
3095
|
+
case CircuitScriptParser.Addition:
|
|
3096
|
+
case CircuitScriptParser.Divide:
|
|
3097
|
+
case CircuitScriptParser.ID:
|
|
3098
|
+
{
|
|
3099
|
+
this.state = 578;
|
|
3100
|
+
this.expression();
|
|
3101
|
+
}
|
|
3102
|
+
break;
|
|
3103
|
+
default:
|
|
3104
|
+
throw new antlr.NoViableAltException(this);
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
this.state = 581;
|
|
3108
|
+
this.errorHandler.sync(this);
|
|
3109
|
+
_la = this.tokenStream.LA(1);
|
|
3110
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
3111
|
+
this.state = 583;
|
|
3112
|
+
this.match(CircuitScriptParser.DEDENT);
|
|
3113
|
+
this.state = 587;
|
|
3114
|
+
this.errorHandler.sync(this);
|
|
3115
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 69, this.context);
|
|
3116
|
+
while (alternative !== 2 && alternative !== antlr.ATN.INVALID_ALT_NUMBER) {
|
|
3117
|
+
if (alternative === 1) {
|
|
3118
|
+
{
|
|
3119
|
+
{
|
|
3120
|
+
this.state = 584;
|
|
3121
|
+
this.if_inner_expr();
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
}
|
|
3125
|
+
this.state = 589;
|
|
3126
|
+
this.errorHandler.sync(this);
|
|
3127
|
+
alternative = this.interpreter.adaptivePredict(this.tokenStream, 69, this.context);
|
|
3128
|
+
}
|
|
3129
|
+
this.state = 591;
|
|
3130
|
+
this.errorHandler.sync(this);
|
|
3131
|
+
_la = this.tokenStream.LA(1);
|
|
3132
|
+
if (_la === 25) {
|
|
3133
|
+
{
|
|
3134
|
+
this.state = 590;
|
|
3135
|
+
this.else_expr();
|
|
3136
|
+
}
|
|
3137
|
+
}
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
catch (re) {
|
|
3141
|
+
if (re instanceof antlr.RecognitionException) {
|
|
3142
|
+
this.errorHandler.reportError(this, re);
|
|
3143
|
+
this.errorHandler.recover(this, re);
|
|
3144
|
+
}
|
|
3145
|
+
else {
|
|
3146
|
+
throw re;
|
|
3147
|
+
}
|
|
3148
|
+
}
|
|
3149
|
+
finally {
|
|
3150
|
+
this.exitRule();
|
|
3151
|
+
}
|
|
3152
|
+
return localContext;
|
|
3153
|
+
}
|
|
3154
|
+
if_inner_expr() {
|
|
3155
|
+
let localContext = new If_inner_exprContext(this.context, this.state);
|
|
3156
|
+
this.enterRule(localContext, 108, CircuitScriptParser.RULE_if_inner_expr);
|
|
3157
|
+
let _la;
|
|
3158
|
+
try {
|
|
3159
|
+
this.enterOuterAlt(localContext, 1);
|
|
3160
|
+
{
|
|
3161
|
+
this.state = 593;
|
|
3162
|
+
this.match(CircuitScriptParser.Else);
|
|
3163
|
+
this.state = 594;
|
|
3164
|
+
this.match(CircuitScriptParser.If);
|
|
3165
|
+
this.state = 595;
|
|
3166
|
+
this.data_expr(0);
|
|
3167
|
+
this.state = 596;
|
|
3168
|
+
this.match(CircuitScriptParser.T__0);
|
|
3169
|
+
this.state = 597;
|
|
3170
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3171
|
+
this.state = 598;
|
|
3172
|
+
this.match(CircuitScriptParser.INDENT);
|
|
3173
|
+
this.state = 601;
|
|
3174
|
+
this.errorHandler.sync(this);
|
|
3175
|
+
_la = this.tokenStream.LA(1);
|
|
3176
|
+
do {
|
|
3177
|
+
{
|
|
3178
|
+
this.state = 601;
|
|
3179
|
+
this.errorHandler.sync(this);
|
|
3180
|
+
switch (this.tokenStream.LA(1)) {
|
|
3181
|
+
case CircuitScriptParser.NEWLINE:
|
|
3182
|
+
{
|
|
3183
|
+
this.state = 599;
|
|
3184
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3185
|
+
}
|
|
3186
|
+
break;
|
|
3187
|
+
case CircuitScriptParser.T__3:
|
|
3188
|
+
case CircuitScriptParser.Break:
|
|
3189
|
+
case CircuitScriptParser.Branch:
|
|
3190
|
+
case CircuitScriptParser.Wire:
|
|
3191
|
+
case CircuitScriptParser.Add:
|
|
3192
|
+
case CircuitScriptParser.At:
|
|
3193
|
+
case CircuitScriptParser.To:
|
|
3194
|
+
case CircuitScriptParser.Point:
|
|
3195
|
+
case CircuitScriptParser.Join:
|
|
3196
|
+
case CircuitScriptParser.Parallel:
|
|
3197
|
+
case CircuitScriptParser.Define:
|
|
3198
|
+
case CircuitScriptParser.Import:
|
|
3199
|
+
case CircuitScriptParser.If:
|
|
3200
|
+
case CircuitScriptParser.Frame:
|
|
3201
|
+
case CircuitScriptParser.Addition:
|
|
3202
|
+
case CircuitScriptParser.Divide:
|
|
3203
|
+
case CircuitScriptParser.ID:
|
|
3204
|
+
{
|
|
3205
|
+
this.state = 600;
|
|
3206
|
+
this.expression();
|
|
3207
|
+
}
|
|
3208
|
+
break;
|
|
3209
|
+
default:
|
|
3210
|
+
throw new antlr.NoViableAltException(this);
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
this.state = 603;
|
|
3214
|
+
this.errorHandler.sync(this);
|
|
3215
|
+
_la = this.tokenStream.LA(1);
|
|
3216
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
3217
|
+
this.state = 605;
|
|
3218
|
+
this.match(CircuitScriptParser.DEDENT);
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
catch (re) {
|
|
3222
|
+
if (re instanceof antlr.RecognitionException) {
|
|
3223
|
+
this.errorHandler.reportError(this, re);
|
|
3224
|
+
this.errorHandler.recover(this, re);
|
|
3225
|
+
}
|
|
3226
|
+
else {
|
|
3227
|
+
throw re;
|
|
3228
|
+
}
|
|
3229
|
+
}
|
|
3230
|
+
finally {
|
|
3231
|
+
this.exitRule();
|
|
3232
|
+
}
|
|
3233
|
+
return localContext;
|
|
3234
|
+
}
|
|
3235
|
+
else_expr() {
|
|
3236
|
+
let localContext = new Else_exprContext(this.context, this.state);
|
|
3237
|
+
this.enterRule(localContext, 110, CircuitScriptParser.RULE_else_expr);
|
|
3238
|
+
let _la;
|
|
3239
|
+
try {
|
|
3240
|
+
this.enterOuterAlt(localContext, 1);
|
|
3241
|
+
{
|
|
3242
|
+
this.state = 607;
|
|
3243
|
+
this.match(CircuitScriptParser.Else);
|
|
3244
|
+
this.state = 608;
|
|
3245
|
+
this.match(CircuitScriptParser.T__0);
|
|
3246
|
+
this.state = 609;
|
|
3247
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3248
|
+
this.state = 610;
|
|
3249
|
+
this.match(CircuitScriptParser.INDENT);
|
|
3250
|
+
this.state = 613;
|
|
3251
|
+
this.errorHandler.sync(this);
|
|
3252
|
+
_la = this.tokenStream.LA(1);
|
|
3253
|
+
do {
|
|
3254
|
+
{
|
|
3255
|
+
this.state = 613;
|
|
3256
|
+
this.errorHandler.sync(this);
|
|
3257
|
+
switch (this.tokenStream.LA(1)) {
|
|
3258
|
+
case CircuitScriptParser.NEWLINE:
|
|
3259
|
+
{
|
|
3260
|
+
this.state = 611;
|
|
3261
|
+
this.match(CircuitScriptParser.NEWLINE);
|
|
3262
|
+
}
|
|
3263
|
+
break;
|
|
3264
|
+
case CircuitScriptParser.T__3:
|
|
3265
|
+
case CircuitScriptParser.Break:
|
|
3266
|
+
case CircuitScriptParser.Branch:
|
|
3267
|
+
case CircuitScriptParser.Wire:
|
|
3268
|
+
case CircuitScriptParser.Add:
|
|
3269
|
+
case CircuitScriptParser.At:
|
|
3270
|
+
case CircuitScriptParser.To:
|
|
3271
|
+
case CircuitScriptParser.Point:
|
|
3272
|
+
case CircuitScriptParser.Join:
|
|
3273
|
+
case CircuitScriptParser.Parallel:
|
|
3274
|
+
case CircuitScriptParser.Define:
|
|
3275
|
+
case CircuitScriptParser.Import:
|
|
3276
|
+
case CircuitScriptParser.If:
|
|
3277
|
+
case CircuitScriptParser.Frame:
|
|
3278
|
+
case CircuitScriptParser.Addition:
|
|
3279
|
+
case CircuitScriptParser.Divide:
|
|
3280
|
+
case CircuitScriptParser.ID:
|
|
3281
|
+
{
|
|
3282
|
+
this.state = 612;
|
|
3283
|
+
this.expression();
|
|
3284
|
+
}
|
|
3285
|
+
break;
|
|
3286
|
+
default:
|
|
3287
|
+
throw new antlr.NoViableAltException(this);
|
|
3288
|
+
}
|
|
3289
|
+
}
|
|
3290
|
+
this.state = 615;
|
|
3291
|
+
this.errorHandler.sync(this);
|
|
3292
|
+
_la = this.tokenStream.LA(1);
|
|
3293
|
+
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 165651216) !== 0) || ((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 65797) !== 0));
|
|
3294
|
+
this.state = 617;
|
|
3295
|
+
this.match(CircuitScriptParser.DEDENT);
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
catch (re) {
|
|
3299
|
+
if (re instanceof antlr.RecognitionException) {
|
|
3300
|
+
this.errorHandler.reportError(this, re);
|
|
3301
|
+
this.errorHandler.recover(this, re);
|
|
3302
|
+
}
|
|
3303
|
+
else {
|
|
3304
|
+
throw re;
|
|
3305
|
+
}
|
|
3306
|
+
}
|
|
3307
|
+
finally {
|
|
3308
|
+
this.exitRule();
|
|
3309
|
+
}
|
|
3310
|
+
return localContext;
|
|
3311
|
+
}
|
|
3312
|
+
sempred(localContext, ruleIndex, predIndex) {
|
|
3313
|
+
switch (ruleIndex) {
|
|
3314
|
+
case 28:
|
|
3315
|
+
return this.data_expr_sempred(localContext, predIndex);
|
|
3316
|
+
}
|
|
3317
|
+
return true;
|
|
3318
|
+
}
|
|
3319
|
+
data_expr_sempred(localContext, predIndex) {
|
|
3320
|
+
switch (predIndex) {
|
|
3321
|
+
case 0:
|
|
3322
|
+
return this.precpred(this.context, 7);
|
|
3323
|
+
case 1:
|
|
3324
|
+
return this.precpred(this.context, 6);
|
|
3325
|
+
case 2:
|
|
3326
|
+
return this.precpred(this.context, 5);
|
|
3327
|
+
case 3:
|
|
3328
|
+
return this.precpred(this.context, 4);
|
|
3329
|
+
}
|
|
3330
|
+
return true;
|
|
3331
|
+
}
|
|
3332
|
+
static get _ATN() {
|
|
3333
|
+
if (!CircuitScriptParser.__ATN) {
|
|
3334
|
+
CircuitScriptParser.__ATN = new antlr.ATNDeserializer().deserialize(CircuitScriptParser._serializedATN);
|
|
3335
|
+
}
|
|
3336
|
+
return CircuitScriptParser.__ATN;
|
|
3337
|
+
}
|
|
3338
|
+
get vocabulary() {
|
|
3339
|
+
return CircuitScriptParser.vocabulary;
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
exports.CircuitScriptParser = CircuitScriptParser;
|
|
3343
|
+
CircuitScriptParser.T__0 = 1;
|
|
3344
|
+
CircuitScriptParser.T__1 = 2;
|
|
3345
|
+
CircuitScriptParser.T__2 = 3;
|
|
3346
|
+
CircuitScriptParser.T__3 = 4;
|
|
3347
|
+
CircuitScriptParser.T__4 = 5;
|
|
3012
3348
|
CircuitScriptParser.T__5 = 6;
|
|
3013
3349
|
CircuitScriptParser.T__6 = 7;
|
|
3014
3350
|
CircuitScriptParser.Break = 8;
|
|
@@ -3028,30 +3364,37 @@ CircuitScriptParser.Return = 21;
|
|
|
3028
3364
|
CircuitScriptParser.Define = 22;
|
|
3029
3365
|
CircuitScriptParser.Import = 23;
|
|
3030
3366
|
CircuitScriptParser.If = 24;
|
|
3031
|
-
CircuitScriptParser.
|
|
3032
|
-
CircuitScriptParser.
|
|
3033
|
-
CircuitScriptParser.
|
|
3034
|
-
CircuitScriptParser.
|
|
3035
|
-
CircuitScriptParser.
|
|
3036
|
-
CircuitScriptParser.
|
|
3037
|
-
CircuitScriptParser.
|
|
3038
|
-
CircuitScriptParser.
|
|
3039
|
-
CircuitScriptParser.
|
|
3040
|
-
CircuitScriptParser.
|
|
3041
|
-
CircuitScriptParser.
|
|
3042
|
-
CircuitScriptParser.
|
|
3043
|
-
CircuitScriptParser.
|
|
3044
|
-
CircuitScriptParser.
|
|
3045
|
-
CircuitScriptParser.
|
|
3046
|
-
CircuitScriptParser.
|
|
3047
|
-
CircuitScriptParser.
|
|
3048
|
-
CircuitScriptParser.
|
|
3049
|
-
CircuitScriptParser.
|
|
3050
|
-
CircuitScriptParser.
|
|
3051
|
-
CircuitScriptParser.
|
|
3052
|
-
CircuitScriptParser.
|
|
3053
|
-
CircuitScriptParser.
|
|
3054
|
-
CircuitScriptParser.
|
|
3367
|
+
CircuitScriptParser.Else = 25;
|
|
3368
|
+
CircuitScriptParser.Not = 26;
|
|
3369
|
+
CircuitScriptParser.Frame = 27;
|
|
3370
|
+
CircuitScriptParser.Equals = 28;
|
|
3371
|
+
CircuitScriptParser.NotEquals = 29;
|
|
3372
|
+
CircuitScriptParser.GreaterThan = 30;
|
|
3373
|
+
CircuitScriptParser.GreatOrEqualThan = 31;
|
|
3374
|
+
CircuitScriptParser.LessThan = 32;
|
|
3375
|
+
CircuitScriptParser.LessOrEqualThan = 33;
|
|
3376
|
+
CircuitScriptParser.LogicalAnd = 34;
|
|
3377
|
+
CircuitScriptParser.LogicalOr = 35;
|
|
3378
|
+
CircuitScriptParser.Addition = 36;
|
|
3379
|
+
CircuitScriptParser.Minus = 37;
|
|
3380
|
+
CircuitScriptParser.Divide = 38;
|
|
3381
|
+
CircuitScriptParser.Multiply = 39;
|
|
3382
|
+
CircuitScriptParser.OPEN_PAREN = 40;
|
|
3383
|
+
CircuitScriptParser.CLOSE_PAREN = 41;
|
|
3384
|
+
CircuitScriptParser.NOT_CONNECTED = 42;
|
|
3385
|
+
CircuitScriptParser.BOOLEAN_VALUE = 43;
|
|
3386
|
+
CircuitScriptParser.ID = 44;
|
|
3387
|
+
CircuitScriptParser.INTEGER_VALUE = 45;
|
|
3388
|
+
CircuitScriptParser.DECIMAL_VALUE = 46;
|
|
3389
|
+
CircuitScriptParser.NUMERIC_VALUE = 47;
|
|
3390
|
+
CircuitScriptParser.STRING_VALUE = 48;
|
|
3391
|
+
CircuitScriptParser.PERCENTAGE_VALUE = 49;
|
|
3392
|
+
CircuitScriptParser.ALPHA_NUMERIC = 50;
|
|
3393
|
+
CircuitScriptParser.WS = 51;
|
|
3394
|
+
CircuitScriptParser.NEWLINE = 52;
|
|
3395
|
+
CircuitScriptParser.COMMENT = 53;
|
|
3396
|
+
CircuitScriptParser.INDENT = 54;
|
|
3397
|
+
CircuitScriptParser.DEDENT = 55;
|
|
3055
3398
|
CircuitScriptParser.RULE_script = 0;
|
|
3056
3399
|
CircuitScriptParser.RULE_expression = 1;
|
|
3057
3400
|
CircuitScriptParser.RULE_path_blocks = 2;
|
|
@@ -3094,32 +3437,38 @@ CircuitScriptParser.RULE_net_namespace_expr = 38;
|
|
|
3094
3437
|
CircuitScriptParser.RULE_function_return_expr = 39;
|
|
3095
3438
|
CircuitScriptParser.RULE_create_component_expr = 40;
|
|
3096
3439
|
CircuitScriptParser.RULE_create_graphic_expr = 41;
|
|
3097
|
-
CircuitScriptParser.
|
|
3098
|
-
CircuitScriptParser.
|
|
3099
|
-
CircuitScriptParser.
|
|
3100
|
-
CircuitScriptParser.
|
|
3101
|
-
CircuitScriptParser.
|
|
3102
|
-
CircuitScriptParser.
|
|
3103
|
-
CircuitScriptParser.
|
|
3104
|
-
CircuitScriptParser.
|
|
3105
|
-
CircuitScriptParser.
|
|
3106
|
-
CircuitScriptParser.
|
|
3440
|
+
CircuitScriptParser.RULE_nested_properties_inner = 42;
|
|
3441
|
+
CircuitScriptParser.RULE_graphic_expr = 43;
|
|
3442
|
+
CircuitScriptParser.RULE_property_expr = 44;
|
|
3443
|
+
CircuitScriptParser.RULE_property_key_expr = 45;
|
|
3444
|
+
CircuitScriptParser.RULE_property_value_expr = 46;
|
|
3445
|
+
CircuitScriptParser.RULE_blank_expr = 47;
|
|
3446
|
+
CircuitScriptParser.RULE_wire_atom_expr = 48;
|
|
3447
|
+
CircuitScriptParser.RULE_wire_expr = 49;
|
|
3448
|
+
CircuitScriptParser.RULE_point_expr = 50;
|
|
3449
|
+
CircuitScriptParser.RULE_import_expr = 51;
|
|
3450
|
+
CircuitScriptParser.RULE_frame_expr = 52;
|
|
3451
|
+
CircuitScriptParser.RULE_if_expr = 53;
|
|
3452
|
+
CircuitScriptParser.RULE_if_inner_expr = 54;
|
|
3453
|
+
CircuitScriptParser.RULE_else_expr = 55;
|
|
3107
3454
|
CircuitScriptParser.literalNames = [
|
|
3108
3455
|
null, "':'", "','", "'='", "'..'", "'.'", "'['", "']'", "'break'",
|
|
3109
3456
|
"'branch'", "'create'", "'component'", "'graphic'", "'wire'", "'pin'",
|
|
3110
3457
|
"'add'", "'at'", "'to'", "'point'", "'join'", "'parallel'", "'return'",
|
|
3111
|
-
"'def'", "'import'", "'if'", "'
|
|
3112
|
-
"'
|
|
3458
|
+
"'def'", "'import'", "'if'", "'else'", "'!'", "'frame'", "'=='",
|
|
3459
|
+
"'!='", "'>'", "'>='", "'<'", "'<='", "'&&'", "'||'", "'+'", "'-'",
|
|
3460
|
+
"'/'", "'*'", "'('", "')'"
|
|
3113
3461
|
];
|
|
3114
3462
|
CircuitScriptParser.symbolicNames = [
|
|
3115
3463
|
null, null, null, null, null, null, null, null, "Break", "Branch",
|
|
3116
3464
|
"Create", "Component", "Graphic", "Wire", "Pin", "Add", "At", "To",
|
|
3117
3465
|
"Point", "Join", "Parallel", "Return", "Define", "Import", "If",
|
|
3118
|
-
"Not", "Frame", "Equals", "NotEquals", "
|
|
3119
|
-
"
|
|
3120
|
-
"
|
|
3121
|
-
"
|
|
3122
|
-
"
|
|
3466
|
+
"Else", "Not", "Frame", "Equals", "NotEquals", "GreaterThan", "GreatOrEqualThan",
|
|
3467
|
+
"LessThan", "LessOrEqualThan", "LogicalAnd", "LogicalOr", "Addition",
|
|
3468
|
+
"Minus", "Divide", "Multiply", "OPEN_PAREN", "CLOSE_PAREN", "NOT_CONNECTED",
|
|
3469
|
+
"BOOLEAN_VALUE", "ID", "INTEGER_VALUE", "DECIMAL_VALUE", "NUMERIC_VALUE",
|
|
3470
|
+
"STRING_VALUE", "PERCENTAGE_VALUE", "ALPHA_NUMERIC", "WS", "NEWLINE",
|
|
3471
|
+
"COMMENT", "INDENT", "DEDENT"
|
|
3123
3472
|
];
|
|
3124
3473
|
CircuitScriptParser.ruleNames = [
|
|
3125
3474
|
"script", "expression", "path_blocks", "path_block_inner", "property_set_expr2",
|
|
@@ -3133,217 +3482,241 @@ CircuitScriptParser.ruleNames = [
|
|
|
3133
3482
|
"data_expr", "binary_operator", "unary_operator", "value_expr",
|
|
3134
3483
|
"function_def_expr", "function_expr", "function_args_expr", "atom_expr",
|
|
3135
3484
|
"trailer_expr", "function_call_expr", "net_namespace_expr", "function_return_expr",
|
|
3136
|
-
"create_component_expr", "create_graphic_expr", "
|
|
3137
|
-
"
|
|
3138
|
-
"
|
|
3485
|
+
"create_component_expr", "create_graphic_expr", "nested_properties_inner",
|
|
3486
|
+
"graphic_expr", "property_expr", "property_key_expr", "property_value_expr",
|
|
3487
|
+
"blank_expr", "wire_atom_expr", "wire_expr", "point_expr", "import_expr",
|
|
3488
|
+
"frame_expr", "if_expr", "if_inner_expr", "else_expr",
|
|
3139
3489
|
];
|
|
3140
3490
|
CircuitScriptParser._serializedATN = [
|
|
3141
|
-
4, 1,
|
|
3491
|
+
4, 1, 55, 620, 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,
|
|
3142
3492
|
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,
|
|
3143
3493
|
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,
|
|
3144
3494
|
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,
|
|
3145
3495
|
2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33,
|
|
3146
3496
|
7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39,
|
|
3147
3497
|
2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46,
|
|
3148
|
-
7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51,
|
|
3149
|
-
|
|
3150
|
-
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3151
|
-
|
|
3152
|
-
1, 3, 1, 3, 1,
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
1, 13,
|
|
3158
|
-
14,
|
|
3159
|
-
14,
|
|
3160
|
-
15,
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
1,
|
|
3169
|
-
28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28,
|
|
3170
|
-
28,
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
1, 0, 0, 0,
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
0,
|
|
3211
|
-
|
|
3212
|
-
0,
|
|
3213
|
-
0, 0,
|
|
3214
|
-
0, 0,
|
|
3215
|
-
0,
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
0,
|
|
3221
|
-
0,
|
|
3222
|
-
|
|
3223
|
-
0,
|
|
3224
|
-
0,
|
|
3225
|
-
0, 0, 0,
|
|
3226
|
-
0, 0,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
1, 0, 0, 0,
|
|
3238
|
-
|
|
3239
|
-
1, 0, 0, 0,
|
|
3240
|
-
1, 0, 0, 0,
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
0,
|
|
3250
|
-
0, 0,
|
|
3251
|
-
0, 0,
|
|
3252
|
-
|
|
3253
|
-
1, 0, 0, 0,
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
0, 0,
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
0, 0,
|
|
3290
|
-
|
|
3291
|
-
1, 0, 0, 0,
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
1, 0, 0, 0,
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
1, 0, 0, 0,
|
|
3305
|
-
3,
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
1, 0, 0, 0,
|
|
3310
|
-
0, 0, 0,
|
|
3311
|
-
|
|
3312
|
-
1, 0, 0, 0,
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
0,
|
|
3325
|
-
0, 0,
|
|
3326
|
-
0, 0,
|
|
3327
|
-
0, 0, 0,
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
1, 0, 0, 0,
|
|
3331
|
-
1, 0, 0, 0,
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
5,
|
|
3339
|
-
|
|
3340
|
-
1, 0, 0, 0,
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3498
|
+
7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52,
|
|
3499
|
+
2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 1, 0, 1, 0, 4, 0, 115, 8, 0, 11, 0, 12, 0, 116,
|
|
3500
|
+
1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
3501
|
+
1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 139, 8, 1, 1, 2, 4, 2, 142, 8, 2, 11, 2, 12, 2, 143, 1, 3, 1,
|
|
3502
|
+
3, 1, 3, 1, 3, 1, 3, 1, 3, 4, 3, 152, 8, 3, 11, 3, 12, 3, 153, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4,
|
|
3503
|
+
1, 4, 1, 4, 1, 4, 4, 4, 164, 8, 4, 11, 4, 12, 4, 165, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1,
|
|
3504
|
+
6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 3, 7, 181, 8, 7, 1, 8, 1, 8, 3, 8, 185, 8, 8, 1, 8, 5,
|
|
3505
|
+
8, 188, 8, 8, 10, 8, 12, 8, 191, 9, 8, 1, 8, 3, 8, 194, 8, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10,
|
|
3506
|
+
3, 10, 201, 8, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 3, 12, 208, 8, 12, 1, 13, 1, 13, 1,
|
|
3507
|
+
13, 1, 13, 5, 13, 214, 8, 13, 10, 13, 12, 13, 217, 9, 13, 1, 13, 3, 13, 220, 8, 13, 1,
|
|
3508
|
+
14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 228, 8, 14, 10, 14, 12, 14, 231, 9, 14, 1,
|
|
3509
|
+
14, 1, 14, 1, 14, 1, 14, 1, 14, 4, 14, 238, 8, 14, 11, 14, 12, 14, 239, 1, 14, 1, 14, 1,
|
|
3510
|
+
15, 1, 15, 1, 15, 1, 15, 1, 15, 5, 15, 249, 8, 15, 10, 15, 12, 15, 252, 9, 15, 1, 16, 1,
|
|
3511
|
+
16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 4, 17, 262, 8, 17, 11, 17, 12, 17, 263, 1,
|
|
3512
|
+
17, 1, 17, 1, 18, 1, 18, 3, 18, 270, 8, 18, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 276, 8, 19,
|
|
3513
|
+
1, 20, 1, 20, 3, 20, 280, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 4, 21, 286, 8, 21, 11, 21,
|
|
3514
|
+
12, 21, 287, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24,
|
|
3515
|
+
1, 24, 1, 25, 1, 25, 1, 25, 5, 25, 305, 8, 25, 10, 25, 12, 25, 308, 9, 25, 1, 25, 1, 25,
|
|
3516
|
+
5, 25, 312, 8, 25, 10, 25, 12, 25, 315, 9, 25, 1, 25, 1, 25, 1, 25, 5, 25, 320, 8, 25,
|
|
3517
|
+
10, 25, 12, 25, 323, 9, 25, 3, 25, 325, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27,
|
|
3518
|
+
1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 343, 8, 28,
|
|
3519
|
+
1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 351, 8, 28, 1, 28, 1, 28, 1, 28, 1, 28,
|
|
3520
|
+
1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 5, 28, 366, 8, 28, 10, 28,
|
|
3521
|
+
12, 28, 369, 9, 28, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 3, 31, 376, 8, 31, 1, 31, 1, 31,
|
|
3522
|
+
3, 31, 380, 8, 31, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 386, 8, 32, 1, 32, 1, 32, 1, 32, 1,
|
|
3523
|
+
32, 1, 32, 1, 32, 4, 32, 394, 8, 32, 11, 32, 12, 32, 395, 1, 32, 1, 32, 1, 33, 1, 33, 3,
|
|
3524
|
+
33, 402, 8, 33, 1, 34, 1, 34, 1, 34, 5, 34, 407, 8, 34, 10, 34, 12, 34, 410, 9, 34, 1,
|
|
3525
|
+
34, 1, 34, 1, 34, 1, 34, 5, 34, 416, 8, 34, 10, 34, 12, 34, 419, 9, 34, 1, 34, 1, 34, 1,
|
|
3526
|
+
34, 1, 34, 1, 34, 1, 34, 1, 34, 5, 34, 428, 8, 34, 10, 34, 12, 34, 431, 9, 34, 3, 34, 433,
|
|
3527
|
+
8, 34, 1, 35, 1, 35, 1, 35, 5, 35, 438, 8, 35, 10, 35, 12, 35, 441, 9, 35, 1, 36, 1, 36,
|
|
3528
|
+
3, 36, 445, 8, 36, 1, 36, 1, 36, 1, 36, 3, 36, 450, 8, 36, 1, 37, 3, 37, 453, 8, 37, 1,
|
|
3529
|
+
37, 1, 37, 4, 37, 457, 8, 37, 11, 37, 12, 37, 458, 1, 38, 3, 38, 462, 8, 38, 1, 38, 1,
|
|
3530
|
+
38, 3, 38, 466, 8, 38, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1,
|
|
3531
|
+
40, 4, 40, 478, 8, 40, 11, 40, 12, 40, 479, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1,
|
|
3532
|
+
41, 1, 41, 1, 41, 4, 41, 491, 8, 41, 11, 41, 12, 41, 492, 1, 41, 1, 41, 1, 42, 1, 42, 1,
|
|
3533
|
+
42, 1, 42, 4, 42, 501, 8, 42, 11, 42, 12, 42, 502, 1, 42, 1, 42, 1, 43, 1, 43, 3, 43, 509,
|
|
3534
|
+
8, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 517, 8, 43, 1, 44, 1, 44, 1, 44,
|
|
3535
|
+
1, 44, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 5, 46, 529, 8, 46, 10, 46, 12, 46, 532,
|
|
3536
|
+
9, 46, 3, 46, 534, 8, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 3, 48, 543, 8,
|
|
3537
|
+
48, 1, 48, 3, 48, 546, 8, 48, 1, 49, 1, 49, 5, 49, 550, 8, 49, 10, 49, 12, 49, 553, 9,
|
|
3538
|
+
49, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 4,
|
|
3539
|
+
52, 567, 8, 52, 11, 52, 12, 52, 568, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1,
|
|
3540
|
+
53, 1, 53, 4, 53, 580, 8, 53, 11, 53, 12, 53, 581, 1, 53, 1, 53, 5, 53, 586, 8, 53, 10,
|
|
3541
|
+
53, 12, 53, 589, 9, 53, 1, 53, 3, 53, 592, 8, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1,
|
|
3542
|
+
54, 1, 54, 1, 54, 4, 54, 602, 8, 54, 11, 54, 12, 54, 603, 1, 54, 1, 54, 1, 55, 1, 55, 1,
|
|
3543
|
+
55, 1, 55, 1, 55, 1, 55, 4, 55, 614, 8, 55, 11, 55, 12, 55, 615, 1, 55, 1, 55, 1, 55, 0,
|
|
3544
|
+
1, 56, 56, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40,
|
|
3545
|
+
42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84,
|
|
3546
|
+
86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 0, 12, 2, 0, 9, 9, 18, 20,
|
|
3547
|
+
1, 0, 44, 45, 2, 0, 45, 45, 48, 48, 2, 0, 42, 42, 45, 45, 1, 0, 38, 39, 1, 0, 36, 37, 1,
|
|
3548
|
+
0, 34, 35, 1, 0, 28, 33, 2, 0, 26, 26, 37, 37, 2, 0, 43, 43, 45, 49, 2, 0, 14, 14, 44, 44,
|
|
3549
|
+
2, 0, 44, 45, 48, 48, 661, 0, 114, 1, 0, 0, 0, 2, 138, 1, 0, 0, 0, 4, 141, 1, 0, 0, 0, 6,
|
|
3550
|
+
145, 1, 0, 0, 0, 8, 157, 1, 0, 0, 0, 10, 169, 1, 0, 0, 0, 12, 173, 1, 0, 0, 0, 14, 176, 1,
|
|
3551
|
+
0, 0, 0, 16, 184, 1, 0, 0, 0, 18, 195, 1, 0, 0, 0, 20, 200, 1, 0, 0, 0, 22, 202, 1, 0, 0,
|
|
3552
|
+
0, 24, 204, 1, 0, 0, 0, 26, 209, 1, 0, 0, 0, 28, 221, 1, 0, 0, 0, 30, 243, 1, 0, 0, 0, 32,
|
|
3553
|
+
253, 1, 0, 0, 0, 34, 255, 1, 0, 0, 0, 36, 269, 1, 0, 0, 0, 38, 271, 1, 0, 0, 0, 40, 279,
|
|
3554
|
+
1, 0, 0, 0, 42, 281, 1, 0, 0, 0, 44, 291, 1, 0, 0, 0, 46, 293, 1, 0, 0, 0, 48, 297, 1, 0,
|
|
3555
|
+
0, 0, 50, 324, 1, 0, 0, 0, 52, 326, 1, 0, 0, 0, 54, 330, 1, 0, 0, 0, 56, 350, 1, 0, 0, 0,
|
|
3556
|
+
58, 370, 1, 0, 0, 0, 60, 372, 1, 0, 0, 0, 62, 379, 1, 0, 0, 0, 64, 381, 1, 0, 0, 0, 66, 401,
|
|
3557
|
+
1, 0, 0, 0, 68, 432, 1, 0, 0, 0, 70, 434, 1, 0, 0, 0, 72, 449, 1, 0, 0, 0, 74, 452, 1, 0,
|
|
3558
|
+
0, 0, 76, 461, 1, 0, 0, 0, 78, 467, 1, 0, 0, 0, 80, 470, 1, 0, 0, 0, 82, 483, 1, 0, 0, 0,
|
|
3559
|
+
84, 496, 1, 0, 0, 0, 86, 506, 1, 0, 0, 0, 88, 518, 1, 0, 0, 0, 90, 522, 1, 0, 0, 0, 92, 533,
|
|
3560
|
+
1, 0, 0, 0, 94, 535, 1, 0, 0, 0, 96, 545, 1, 0, 0, 0, 98, 547, 1, 0, 0, 0, 100, 554, 1, 0,
|
|
3561
|
+
0, 0, 102, 557, 1, 0, 0, 0, 104, 560, 1, 0, 0, 0, 106, 572, 1, 0, 0, 0, 108, 593, 1, 0,
|
|
3562
|
+
0, 0, 110, 607, 1, 0, 0, 0, 112, 115, 3, 2, 1, 0, 113, 115, 5, 52, 0, 0, 114, 112, 1, 0,
|
|
3563
|
+
0, 0, 114, 113, 1, 0, 0, 0, 115, 116, 1, 0, 0, 0, 116, 114, 1, 0, 0, 0, 116, 117, 1, 0,
|
|
3564
|
+
0, 0, 117, 118, 1, 0, 0, 0, 118, 119, 5, 0, 0, 1, 119, 1, 1, 0, 0, 0, 120, 139, 3, 18, 9,
|
|
3565
|
+
0, 121, 139, 3, 26, 13, 0, 122, 139, 3, 24, 12, 0, 123, 139, 3, 46, 23, 0, 124, 139,
|
|
3566
|
+
3, 52, 26, 0, 125, 139, 3, 8, 4, 0, 126, 139, 3, 54, 27, 0, 127, 139, 3, 44, 22, 0, 128,
|
|
3567
|
+
139, 3, 64, 32, 0, 129, 139, 3, 74, 37, 0, 130, 139, 3, 98, 49, 0, 131, 139, 3, 102,
|
|
3568
|
+
51, 0, 132, 139, 3, 104, 52, 0, 133, 139, 3, 70, 35, 0, 134, 139, 3, 34, 17, 0, 135,
|
|
3569
|
+
139, 3, 4, 2, 0, 136, 139, 3, 100, 50, 0, 137, 139, 3, 106, 53, 0, 138, 120, 1, 0, 0,
|
|
3570
|
+
0, 138, 121, 1, 0, 0, 0, 138, 122, 1, 0, 0, 0, 138, 123, 1, 0, 0, 0, 138, 124, 1, 0, 0,
|
|
3571
|
+
0, 138, 125, 1, 0, 0, 0, 138, 126, 1, 0, 0, 0, 138, 127, 1, 0, 0, 0, 138, 128, 1, 0, 0,
|
|
3572
|
+
0, 138, 129, 1, 0, 0, 0, 138, 130, 1, 0, 0, 0, 138, 131, 1, 0, 0, 0, 138, 132, 1, 0, 0,
|
|
3573
|
+
0, 138, 133, 1, 0, 0, 0, 138, 134, 1, 0, 0, 0, 138, 135, 1, 0, 0, 0, 138, 136, 1, 0, 0,
|
|
3574
|
+
0, 138, 137, 1, 0, 0, 0, 139, 3, 1, 0, 0, 0, 140, 142, 3, 6, 3, 0, 141, 140, 1, 0, 0, 0,
|
|
3575
|
+
142, 143, 1, 0, 0, 0, 143, 141, 1, 0, 0, 0, 143, 144, 1, 0, 0, 0, 144, 5, 1, 0, 0, 0, 145,
|
|
3576
|
+
146, 7, 0, 0, 0, 146, 147, 5, 1, 0, 0, 147, 148, 5, 52, 0, 0, 148, 151, 5, 54, 0, 0, 149,
|
|
3577
|
+
152, 5, 52, 0, 0, 150, 152, 3, 2, 1, 0, 151, 149, 1, 0, 0, 0, 151, 150, 1, 0, 0, 0, 152,
|
|
3578
|
+
153, 1, 0, 0, 0, 153, 151, 1, 0, 0, 0, 153, 154, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155,
|
|
3579
|
+
156, 5, 55, 0, 0, 156, 7, 1, 0, 0, 0, 157, 158, 3, 70, 35, 0, 158, 159, 5, 1, 0, 0, 159,
|
|
3580
|
+
160, 5, 52, 0, 0, 160, 163, 5, 54, 0, 0, 161, 164, 5, 52, 0, 0, 162, 164, 3, 10, 5, 0,
|
|
3581
|
+
163, 161, 1, 0, 0, 0, 163, 162, 1, 0, 0, 0, 164, 165, 1, 0, 0, 0, 165, 163, 1, 0, 0, 0,
|
|
3582
|
+
165, 166, 1, 0, 0, 0, 166, 167, 1, 0, 0, 0, 167, 168, 5, 55, 0, 0, 168, 9, 1, 0, 0, 0, 169,
|
|
3583
|
+
170, 7, 1, 0, 0, 170, 171, 5, 1, 0, 0, 171, 172, 3, 62, 31, 0, 172, 11, 1, 0, 0, 0, 173,
|
|
3584
|
+
174, 5, 14, 0, 0, 174, 175, 7, 2, 0, 0, 175, 13, 1, 0, 0, 0, 176, 177, 5, 44, 0, 0, 177,
|
|
3585
|
+
180, 5, 1, 0, 0, 178, 181, 3, 62, 31, 0, 179, 181, 5, 44, 0, 0, 180, 178, 1, 0, 0, 0, 180,
|
|
3586
|
+
179, 1, 0, 0, 0, 181, 15, 1, 0, 0, 0, 182, 185, 3, 56, 28, 0, 183, 185, 3, 46, 23, 0, 184,
|
|
3587
|
+
182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 189, 1, 0, 0, 0, 186, 188, 3, 14, 7, 0, 187,
|
|
3588
|
+
186, 1, 0, 0, 0, 188, 191, 1, 0, 0, 0, 189, 187, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190,
|
|
3589
|
+
193, 1, 0, 0, 0, 191, 189, 1, 0, 0, 0, 192, 194, 3, 12, 6, 0, 193, 192, 1, 0, 0, 0, 193,
|
|
3590
|
+
194, 1, 0, 0, 0, 194, 17, 1, 0, 0, 0, 195, 196, 5, 15, 0, 0, 196, 197, 3, 16, 8, 0, 197,
|
|
3591
|
+
19, 1, 0, 0, 0, 198, 201, 3, 16, 8, 0, 199, 201, 3, 12, 6, 0, 200, 198, 1, 0, 0, 0, 200,
|
|
3592
|
+
199, 1, 0, 0, 0, 201, 21, 1, 0, 0, 0, 202, 203, 7, 2, 0, 0, 203, 23, 1, 0, 0, 0, 204, 207,
|
|
3593
|
+
5, 16, 0, 0, 205, 208, 3, 20, 10, 0, 206, 208, 5, 18, 0, 0, 207, 205, 1, 0, 0, 0, 207,
|
|
3594
|
+
206, 1, 0, 0, 0, 208, 25, 1, 0, 0, 0, 209, 219, 5, 17, 0, 0, 210, 215, 3, 20, 10, 0, 211,
|
|
3595
|
+
212, 5, 2, 0, 0, 212, 214, 3, 20, 10, 0, 213, 211, 1, 0, 0, 0, 214, 217, 1, 0, 0, 0, 215,
|
|
3596
|
+
213, 1, 0, 0, 0, 215, 216, 1, 0, 0, 0, 216, 220, 1, 0, 0, 0, 217, 215, 1, 0, 0, 0, 218,
|
|
3597
|
+
220, 5, 18, 0, 0, 219, 210, 1, 0, 0, 0, 219, 218, 1, 0, 0, 0, 220, 27, 1, 0, 0, 0, 221,
|
|
3598
|
+
222, 5, 16, 0, 0, 222, 223, 3, 20, 10, 0, 223, 224, 5, 17, 0, 0, 224, 229, 3, 20, 10,
|
|
3599
|
+
0, 225, 226, 5, 2, 0, 0, 226, 228, 3, 20, 10, 0, 227, 225, 1, 0, 0, 0, 228, 231, 1, 0,
|
|
3600
|
+
0, 0, 229, 227, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 232, 1, 0, 0, 0, 231, 229, 1, 0,
|
|
3601
|
+
0, 0, 232, 233, 5, 1, 0, 0, 233, 234, 5, 52, 0, 0, 234, 237, 5, 54, 0, 0, 235, 238, 5,
|
|
3602
|
+
52, 0, 0, 236, 238, 3, 30, 15, 0, 237, 235, 1, 0, 0, 0, 237, 236, 1, 0, 0, 0, 238, 239,
|
|
3603
|
+
1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 241, 1, 0, 0, 0, 241, 242,
|
|
3604
|
+
5, 55, 0, 0, 242, 29, 1, 0, 0, 0, 243, 244, 3, 22, 11, 0, 244, 245, 5, 1, 0, 0, 245, 250,
|
|
3605
|
+
3, 32, 16, 0, 246, 247, 5, 2, 0, 0, 247, 249, 3, 32, 16, 0, 248, 246, 1, 0, 0, 0, 249,
|
|
3606
|
+
252, 1, 0, 0, 0, 250, 248, 1, 0, 0, 0, 250, 251, 1, 0, 0, 0, 251, 31, 1, 0, 0, 0, 252, 250,
|
|
3607
|
+
1, 0, 0, 0, 253, 254, 7, 3, 0, 0, 254, 33, 1, 0, 0, 0, 255, 256, 3, 24, 12, 0, 256, 257,
|
|
3608
|
+
5, 1, 0, 0, 257, 258, 5, 52, 0, 0, 258, 261, 5, 54, 0, 0, 259, 262, 5, 52, 0, 0, 260, 262,
|
|
3609
|
+
3, 36, 18, 0, 261, 259, 1, 0, 0, 0, 261, 260, 1, 0, 0, 0, 262, 263, 1, 0, 0, 0, 263, 261,
|
|
3610
|
+
1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 265, 1, 0, 0, 0, 265, 266, 5, 55, 0, 0, 266, 35,
|
|
3611
|
+
1, 0, 0, 0, 267, 270, 3, 2, 1, 0, 268, 270, 3, 38, 19, 0, 269, 267, 1, 0, 0, 0, 269, 268,
|
|
3612
|
+
1, 0, 0, 0, 270, 37, 1, 0, 0, 0, 271, 272, 3, 22, 11, 0, 272, 275, 5, 1, 0, 0, 273, 276,
|
|
3613
|
+
3, 40, 20, 0, 274, 276, 3, 42, 21, 0, 275, 273, 1, 0, 0, 0, 275, 274, 1, 0, 0, 0, 276,
|
|
3614
|
+
39, 1, 0, 0, 0, 277, 280, 3, 2, 1, 0, 278, 280, 5, 42, 0, 0, 279, 277, 1, 0, 0, 0, 279,
|
|
3615
|
+
278, 1, 0, 0, 0, 280, 41, 1, 0, 0, 0, 281, 282, 5, 52, 0, 0, 282, 285, 5, 54, 0, 0, 283,
|
|
3616
|
+
286, 5, 52, 0, 0, 284, 286, 3, 2, 1, 0, 285, 283, 1, 0, 0, 0, 285, 284, 1, 0, 0, 0, 286,
|
|
3617
|
+
287, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 287, 288, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289,
|
|
3618
|
+
290, 5, 55, 0, 0, 290, 43, 1, 0, 0, 0, 291, 292, 5, 8, 0, 0, 292, 45, 1, 0, 0, 0, 293, 294,
|
|
3619
|
+
3, 70, 35, 0, 294, 295, 5, 3, 0, 0, 295, 296, 3, 56, 28, 0, 296, 47, 1, 0, 0, 0, 297, 298,
|
|
3620
|
+
5, 44, 0, 0, 298, 299, 5, 3, 0, 0, 299, 300, 3, 56, 28, 0, 300, 49, 1, 0, 0, 0, 301, 306,
|
|
3621
|
+
3, 56, 28, 0, 302, 303, 5, 2, 0, 0, 303, 305, 3, 56, 28, 0, 304, 302, 1, 0, 0, 0, 305,
|
|
3622
|
+
308, 1, 0, 0, 0, 306, 304, 1, 0, 0, 0, 306, 307, 1, 0, 0, 0, 307, 313, 1, 0, 0, 0, 308,
|
|
3623
|
+
306, 1, 0, 0, 0, 309, 310, 5, 2, 0, 0, 310, 312, 3, 48, 24, 0, 311, 309, 1, 0, 0, 0, 312,
|
|
3624
|
+
315, 1, 0, 0, 0, 313, 311, 1, 0, 0, 0, 313, 314, 1, 0, 0, 0, 314, 325, 1, 0, 0, 0, 315,
|
|
3625
|
+
313, 1, 0, 0, 0, 316, 321, 3, 48, 24, 0, 317, 318, 5, 2, 0, 0, 318, 320, 3, 48, 24, 0,
|
|
3626
|
+
319, 317, 1, 0, 0, 0, 320, 323, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 321, 322, 1, 0, 0, 0,
|
|
3627
|
+
322, 325, 1, 0, 0, 0, 323, 321, 1, 0, 0, 0, 324, 301, 1, 0, 0, 0, 324, 316, 1, 0, 0, 0,
|
|
3628
|
+
325, 51, 1, 0, 0, 0, 326, 327, 3, 70, 35, 0, 327, 328, 5, 3, 0, 0, 328, 329, 3, 56, 28,
|
|
3629
|
+
0, 329, 53, 1, 0, 0, 0, 330, 331, 5, 4, 0, 0, 331, 332, 5, 44, 0, 0, 332, 333, 5, 3, 0,
|
|
3630
|
+
0, 333, 334, 3, 56, 28, 0, 334, 55, 1, 0, 0, 0, 335, 336, 6, 28, -1, 0, 336, 337, 5, 40,
|
|
3631
|
+
0, 0, 337, 338, 3, 56, 28, 0, 338, 339, 5, 41, 0, 0, 339, 351, 1, 0, 0, 0, 340, 343, 3,
|
|
3632
|
+
62, 31, 0, 341, 343, 3, 70, 35, 0, 342, 340, 1, 0, 0, 0, 342, 341, 1, 0, 0, 0, 343, 351,
|
|
3633
|
+
1, 0, 0, 0, 344, 345, 3, 60, 30, 0, 345, 346, 3, 56, 28, 8, 346, 351, 1, 0, 0, 0, 347,
|
|
3634
|
+
351, 3, 80, 40, 0, 348, 351, 3, 82, 41, 0, 349, 351, 3, 74, 37, 0, 350, 335, 1, 0, 0,
|
|
3635
|
+
0, 350, 342, 1, 0, 0, 0, 350, 344, 1, 0, 0, 0, 350, 347, 1, 0, 0, 0, 350, 348, 1, 0, 0,
|
|
3636
|
+
0, 350, 349, 1, 0, 0, 0, 351, 367, 1, 0, 0, 0, 352, 353, 10, 7, 0, 0, 353, 354, 7, 4, 0,
|
|
3637
|
+
0, 354, 366, 3, 56, 28, 8, 355, 356, 10, 6, 0, 0, 356, 357, 7, 5, 0, 0, 357, 366, 3, 56,
|
|
3638
|
+
28, 7, 358, 359, 10, 5, 0, 0, 359, 360, 3, 58, 29, 0, 360, 361, 3, 56, 28, 6, 361, 366,
|
|
3639
|
+
1, 0, 0, 0, 362, 363, 10, 4, 0, 0, 363, 364, 7, 6, 0, 0, 364, 366, 3, 56, 28, 5, 365, 352,
|
|
3640
|
+
1, 0, 0, 0, 365, 355, 1, 0, 0, 0, 365, 358, 1, 0, 0, 0, 365, 362, 1, 0, 0, 0, 366, 369,
|
|
3641
|
+
1, 0, 0, 0, 367, 365, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 57, 1, 0, 0, 0, 369, 367, 1,
|
|
3642
|
+
0, 0, 0, 370, 371, 7, 7, 0, 0, 371, 59, 1, 0, 0, 0, 372, 373, 7, 8, 0, 0, 373, 61, 1, 0,
|
|
3643
|
+
0, 0, 374, 376, 5, 37, 0, 0, 375, 374, 1, 0, 0, 0, 375, 376, 1, 0, 0, 0, 376, 377, 1, 0,
|
|
3644
|
+
0, 0, 377, 380, 7, 9, 0, 0, 378, 380, 3, 94, 47, 0, 379, 375, 1, 0, 0, 0, 379, 378, 1,
|
|
3645
|
+
0, 0, 0, 380, 63, 1, 0, 0, 0, 381, 382, 5, 22, 0, 0, 382, 383, 5, 44, 0, 0, 383, 385, 5,
|
|
3646
|
+
40, 0, 0, 384, 386, 3, 68, 34, 0, 385, 384, 1, 0, 0, 0, 385, 386, 1, 0, 0, 0, 386, 387,
|
|
3647
|
+
1, 0, 0, 0, 387, 388, 5, 41, 0, 0, 388, 389, 5, 1, 0, 0, 389, 390, 5, 52, 0, 0, 390, 393,
|
|
3648
|
+
5, 54, 0, 0, 391, 394, 5, 52, 0, 0, 392, 394, 3, 66, 33, 0, 393, 391, 1, 0, 0, 0, 393,
|
|
3649
|
+
392, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 393, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396,
|
|
3650
|
+
397, 1, 0, 0, 0, 397, 398, 5, 55, 0, 0, 398, 65, 1, 0, 0, 0, 399, 402, 3, 2, 1, 0, 400,
|
|
3651
|
+
402, 3, 78, 39, 0, 401, 399, 1, 0, 0, 0, 401, 400, 1, 0, 0, 0, 402, 67, 1, 0, 0, 0, 403,
|
|
3652
|
+
408, 5, 44, 0, 0, 404, 405, 5, 2, 0, 0, 405, 407, 5, 44, 0, 0, 406, 404, 1, 0, 0, 0, 407,
|
|
3653
|
+
410, 1, 0, 0, 0, 408, 406, 1, 0, 0, 0, 408, 409, 1, 0, 0, 0, 409, 417, 1, 0, 0, 0, 410,
|
|
3654
|
+
408, 1, 0, 0, 0, 411, 412, 5, 2, 0, 0, 412, 413, 5, 44, 0, 0, 413, 414, 5, 3, 0, 0, 414,
|
|
3655
|
+
416, 3, 62, 31, 0, 415, 411, 1, 0, 0, 0, 416, 419, 1, 0, 0, 0, 417, 415, 1, 0, 0, 0, 417,
|
|
3656
|
+
418, 1, 0, 0, 0, 418, 433, 1, 0, 0, 0, 419, 417, 1, 0, 0, 0, 420, 421, 5, 44, 0, 0, 421,
|
|
3657
|
+
422, 5, 3, 0, 0, 422, 429, 3, 62, 31, 0, 423, 424, 5, 2, 0, 0, 424, 425, 5, 44, 0, 0, 425,
|
|
3658
|
+
426, 5, 3, 0, 0, 426, 428, 3, 62, 31, 0, 427, 423, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429,
|
|
3659
|
+
427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 433, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432,
|
|
3660
|
+
403, 1, 0, 0, 0, 432, 420, 1, 0, 0, 0, 433, 69, 1, 0, 0, 0, 434, 439, 5, 44, 0, 0, 435,
|
|
3661
|
+
436, 5, 5, 0, 0, 436, 438, 5, 44, 0, 0, 437, 435, 1, 0, 0, 0, 438, 441, 1, 0, 0, 0, 439,
|
|
3662
|
+
437, 1, 0, 0, 0, 439, 440, 1, 0, 0, 0, 440, 71, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 444,
|
|
3663
|
+
5, 40, 0, 0, 443, 445, 3, 50, 25, 0, 444, 443, 1, 0, 0, 0, 444, 445, 1, 0, 0, 0, 445, 446,
|
|
3664
|
+
1, 0, 0, 0, 446, 450, 5, 41, 0, 0, 447, 448, 5, 5, 0, 0, 448, 450, 5, 44, 0, 0, 449, 442,
|
|
3665
|
+
1, 0, 0, 0, 449, 447, 1, 0, 0, 0, 450, 73, 1, 0, 0, 0, 451, 453, 3, 76, 38, 0, 452, 451,
|
|
3666
|
+
1, 0, 0, 0, 452, 453, 1, 0, 0, 0, 453, 454, 1, 0, 0, 0, 454, 456, 5, 44, 0, 0, 455, 457,
|
|
3667
|
+
3, 72, 36, 0, 456, 455, 1, 0, 0, 0, 457, 458, 1, 0, 0, 0, 458, 456, 1, 0, 0, 0, 458, 459,
|
|
3668
|
+
1, 0, 0, 0, 459, 75, 1, 0, 0, 0, 460, 462, 5, 36, 0, 0, 461, 460, 1, 0, 0, 0, 461, 462,
|
|
3669
|
+
1, 0, 0, 0, 462, 463, 1, 0, 0, 0, 463, 465, 5, 38, 0, 0, 464, 466, 3, 56, 28, 0, 465, 464,
|
|
3670
|
+
1, 0, 0, 0, 465, 466, 1, 0, 0, 0, 466, 77, 1, 0, 0, 0, 467, 468, 5, 21, 0, 0, 468, 469,
|
|
3671
|
+
3, 56, 28, 0, 469, 79, 1, 0, 0, 0, 470, 471, 5, 10, 0, 0, 471, 472, 5, 11, 0, 0, 472, 473,
|
|
3672
|
+
5, 1, 0, 0, 473, 474, 5, 52, 0, 0, 474, 477, 5, 54, 0, 0, 475, 478, 5, 52, 0, 0, 476, 478,
|
|
3673
|
+
3, 88, 44, 0, 477, 475, 1, 0, 0, 0, 477, 476, 1, 0, 0, 0, 478, 479, 1, 0, 0, 0, 479, 477,
|
|
3674
|
+
1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 481, 1, 0, 0, 0, 481, 482, 5, 55, 0, 0, 482, 81,
|
|
3675
|
+
1, 0, 0, 0, 483, 484, 5, 10, 0, 0, 484, 485, 5, 12, 0, 0, 485, 486, 5, 1, 0, 0, 486, 487,
|
|
3676
|
+
5, 52, 0, 0, 487, 490, 5, 54, 0, 0, 488, 491, 5, 52, 0, 0, 489, 491, 3, 86, 43, 0, 490,
|
|
3677
|
+
488, 1, 0, 0, 0, 490, 489, 1, 0, 0, 0, 491, 492, 1, 0, 0, 0, 492, 490, 1, 0, 0, 0, 492,
|
|
3678
|
+
493, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 495, 5, 55, 0, 0, 495, 83, 1, 0, 0, 0, 496,
|
|
3679
|
+
497, 5, 52, 0, 0, 497, 500, 5, 54, 0, 0, 498, 501, 5, 52, 0, 0, 499, 501, 3, 88, 44, 0,
|
|
3680
|
+
500, 498, 1, 0, 0, 0, 500, 499, 1, 0, 0, 0, 501, 502, 1, 0, 0, 0, 502, 500, 1, 0, 0, 0,
|
|
3681
|
+
502, 503, 1, 0, 0, 0, 503, 504, 1, 0, 0, 0, 504, 505, 5, 55, 0, 0, 505, 85, 1, 0, 0, 0,
|
|
3682
|
+
506, 508, 7, 10, 0, 0, 507, 509, 5, 1, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0,
|
|
3683
|
+
509, 516, 1, 0, 0, 0, 510, 517, 3, 50, 25, 0, 511, 512, 5, 40, 0, 0, 512, 513, 3, 50,
|
|
3684
|
+
25, 0, 513, 514, 5, 41, 0, 0, 514, 517, 1, 0, 0, 0, 515, 517, 3, 84, 42, 0, 516, 510,
|
|
3685
|
+
1, 0, 0, 0, 516, 511, 1, 0, 0, 0, 516, 515, 1, 0, 0, 0, 517, 87, 1, 0, 0, 0, 518, 519, 3,
|
|
3686
|
+
90, 45, 0, 519, 520, 5, 1, 0, 0, 520, 521, 3, 92, 46, 0, 521, 89, 1, 0, 0, 0, 522, 523,
|
|
3687
|
+
7, 11, 0, 0, 523, 91, 1, 0, 0, 0, 524, 534, 3, 84, 42, 0, 525, 530, 3, 56, 28, 0, 526,
|
|
3688
|
+
527, 5, 2, 0, 0, 527, 529, 3, 56, 28, 0, 528, 526, 1, 0, 0, 0, 529, 532, 1, 0, 0, 0, 530,
|
|
3689
|
+
528, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 534, 1, 0, 0, 0, 532, 530, 1, 0, 0, 0, 533,
|
|
3690
|
+
524, 1, 0, 0, 0, 533, 525, 1, 0, 0, 0, 534, 93, 1, 0, 0, 0, 535, 536, 5, 6, 0, 0, 536, 537,
|
|
3691
|
+
5, 45, 0, 0, 537, 538, 5, 7, 0, 0, 538, 95, 1, 0, 0, 0, 539, 542, 5, 44, 0, 0, 540, 543,
|
|
3692
|
+
5, 45, 0, 0, 541, 543, 3, 56, 28, 0, 542, 540, 1, 0, 0, 0, 542, 541, 1, 0, 0, 0, 543, 546,
|
|
3693
|
+
1, 0, 0, 0, 544, 546, 5, 44, 0, 0, 545, 539, 1, 0, 0, 0, 545, 544, 1, 0, 0, 0, 546, 97,
|
|
3694
|
+
1, 0, 0, 0, 547, 551, 5, 13, 0, 0, 548, 550, 3, 96, 48, 0, 549, 548, 1, 0, 0, 0, 550, 553,
|
|
3695
|
+
1, 0, 0, 0, 551, 549, 1, 0, 0, 0, 551, 552, 1, 0, 0, 0, 552, 99, 1, 0, 0, 0, 553, 551, 1,
|
|
3696
|
+
0, 0, 0, 554, 555, 5, 18, 0, 0, 555, 556, 5, 44, 0, 0, 556, 101, 1, 0, 0, 0, 557, 558,
|
|
3697
|
+
5, 23, 0, 0, 558, 559, 5, 44, 0, 0, 559, 103, 1, 0, 0, 0, 560, 561, 5, 27, 0, 0, 561, 562,
|
|
3698
|
+
5, 1, 0, 0, 562, 563, 5, 52, 0, 0, 563, 566, 5, 54, 0, 0, 564, 567, 5, 52, 0, 0, 565, 567,
|
|
3699
|
+
3, 2, 1, 0, 566, 564, 1, 0, 0, 0, 566, 565, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 566,
|
|
3700
|
+
1, 0, 0, 0, 568, 569, 1, 0, 0, 0, 569, 570, 1, 0, 0, 0, 570, 571, 5, 55, 0, 0, 571, 105,
|
|
3701
|
+
1, 0, 0, 0, 572, 573, 5, 24, 0, 0, 573, 574, 3, 56, 28, 0, 574, 575, 5, 1, 0, 0, 575, 576,
|
|
3702
|
+
5, 52, 0, 0, 576, 579, 5, 54, 0, 0, 577, 580, 5, 52, 0, 0, 578, 580, 3, 2, 1, 0, 579, 577,
|
|
3703
|
+
1, 0, 0, 0, 579, 578, 1, 0, 0, 0, 580, 581, 1, 0, 0, 0, 581, 579, 1, 0, 0, 0, 581, 582,
|
|
3704
|
+
1, 0, 0, 0, 582, 583, 1, 0, 0, 0, 583, 587, 5, 55, 0, 0, 584, 586, 3, 108, 54, 0, 585,
|
|
3705
|
+
584, 1, 0, 0, 0, 586, 589, 1, 0, 0, 0, 587, 585, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588,
|
|
3706
|
+
591, 1, 0, 0, 0, 589, 587, 1, 0, 0, 0, 590, 592, 3, 110, 55, 0, 591, 590, 1, 0, 0, 0, 591,
|
|
3707
|
+
592, 1, 0, 0, 0, 592, 107, 1, 0, 0, 0, 593, 594, 5, 25, 0, 0, 594, 595, 5, 24, 0, 0, 595,
|
|
3708
|
+
596, 3, 56, 28, 0, 596, 597, 5, 1, 0, 0, 597, 598, 5, 52, 0, 0, 598, 601, 5, 54, 0, 0,
|
|
3709
|
+
599, 602, 5, 52, 0, 0, 600, 602, 3, 2, 1, 0, 601, 599, 1, 0, 0, 0, 601, 600, 1, 0, 0, 0,
|
|
3710
|
+
602, 603, 1, 0, 0, 0, 603, 601, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0,
|
|
3711
|
+
605, 606, 5, 55, 0, 0, 606, 109, 1, 0, 0, 0, 607, 608, 5, 25, 0, 0, 608, 609, 5, 1, 0,
|
|
3712
|
+
0, 609, 610, 5, 52, 0, 0, 610, 613, 5, 54, 0, 0, 611, 614, 5, 52, 0, 0, 612, 614, 3, 2,
|
|
3713
|
+
1, 0, 613, 611, 1, 0, 0, 0, 613, 612, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 613, 1, 0,
|
|
3714
|
+
0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 5, 55, 0, 0, 618, 111, 1, 0,
|
|
3715
|
+
0, 0, 75, 114, 116, 138, 143, 151, 153, 163, 165, 180, 184, 189, 193, 200, 207, 215,
|
|
3716
|
+
219, 229, 237, 239, 250, 261, 263, 269, 275, 279, 285, 287, 306, 313, 321, 324,
|
|
3717
|
+
342, 350, 365, 367, 375, 379, 385, 393, 395, 401, 408, 417, 429, 432, 439, 444,
|
|
3718
|
+
449, 452, 458, 461, 465, 477, 479, 490, 492, 500, 502, 508, 516, 530, 533, 542,
|
|
3719
|
+
545, 551, 566, 568, 579, 581, 587, 591, 601, 603, 613, 615
|
|
3347
3720
|
];
|
|
3348
3721
|
CircuitScriptParser.vocabulary = new antlr.Vocabulary(CircuitScriptParser.literalNames, CircuitScriptParser.symbolicNames, []);
|
|
3349
3722
|
CircuitScriptParser.decisionsToDFA = CircuitScriptParser._ATN.decisionToState.map((ds, index) => new antlr.DFA(ds, index));
|
|
@@ -3436,6 +3809,9 @@ class ExpressionContext extends antlr.ParserRuleContext {
|
|
|
3436
3809
|
point_expr() {
|
|
3437
3810
|
return this.getRuleContext(0, Point_exprContext);
|
|
3438
3811
|
}
|
|
3812
|
+
if_expr() {
|
|
3813
|
+
return this.getRuleContext(0, If_exprContext);
|
|
3814
|
+
}
|
|
3439
3815
|
get ruleIndex() {
|
|
3440
3816
|
return CircuitScriptParser.RULE_expression;
|
|
3441
3817
|
}
|
|
@@ -4269,6 +4645,33 @@ class MultiplyExprContext extends Data_exprContext {
|
|
|
4269
4645
|
}
|
|
4270
4646
|
}
|
|
4271
4647
|
exports.MultiplyExprContext = MultiplyExprContext;
|
|
4648
|
+
class LogicalOperatorExprContext extends Data_exprContext {
|
|
4649
|
+
constructor(ctx) {
|
|
4650
|
+
super(ctx.parent, ctx.invokingState);
|
|
4651
|
+
super.copyFrom(ctx);
|
|
4652
|
+
}
|
|
4653
|
+
data_expr(i) {
|
|
4654
|
+
if (i === undefined) {
|
|
4655
|
+
return this.getRuleContexts(Data_exprContext);
|
|
4656
|
+
}
|
|
4657
|
+
return this.getRuleContext(i, Data_exprContext);
|
|
4658
|
+
}
|
|
4659
|
+
LogicalAnd() {
|
|
4660
|
+
return this.getToken(CircuitScriptParser.LogicalAnd, 0);
|
|
4661
|
+
}
|
|
4662
|
+
LogicalOr() {
|
|
4663
|
+
return this.getToken(CircuitScriptParser.LogicalOr, 0);
|
|
4664
|
+
}
|
|
4665
|
+
accept(visitor) {
|
|
4666
|
+
if (visitor.visitLogicalOperatorExpr) {
|
|
4667
|
+
return visitor.visitLogicalOperatorExpr(this);
|
|
4668
|
+
}
|
|
4669
|
+
else {
|
|
4670
|
+
return visitor.visitChildren(this);
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4674
|
+
exports.LogicalOperatorExprContext = LogicalOperatorExprContext;
|
|
4272
4675
|
class DataExprContext extends Data_exprContext {
|
|
4273
4676
|
constructor(ctx) {
|
|
4274
4677
|
super(ctx.parent, ctx.invokingState);
|
|
@@ -4390,6 +4793,18 @@ class Binary_operatorContext extends antlr.ParserRuleContext {
|
|
|
4390
4793
|
NotEquals() {
|
|
4391
4794
|
return this.getToken(CircuitScriptParser.NotEquals, 0);
|
|
4392
4795
|
}
|
|
4796
|
+
GreaterThan() {
|
|
4797
|
+
return this.getToken(CircuitScriptParser.GreaterThan, 0);
|
|
4798
|
+
}
|
|
4799
|
+
GreatOrEqualThan() {
|
|
4800
|
+
return this.getToken(CircuitScriptParser.GreatOrEqualThan, 0);
|
|
4801
|
+
}
|
|
4802
|
+
LessThan() {
|
|
4803
|
+
return this.getToken(CircuitScriptParser.LessThan, 0);
|
|
4804
|
+
}
|
|
4805
|
+
LessOrEqualThan() {
|
|
4806
|
+
return this.getToken(CircuitScriptParser.LessOrEqualThan, 0);
|
|
4807
|
+
}
|
|
4393
4808
|
get ruleIndex() {
|
|
4394
4809
|
return CircuitScriptParser.RULE_binary_operator;
|
|
4395
4810
|
}
|
|
@@ -4772,11 +5187,11 @@ class Create_graphic_exprContext extends antlr.ParserRuleContext {
|
|
|
4772
5187
|
DEDENT() {
|
|
4773
5188
|
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4774
5189
|
}
|
|
4775
|
-
|
|
5190
|
+
graphic_expr(i) {
|
|
4776
5191
|
if (i === undefined) {
|
|
4777
|
-
return this.getRuleContexts(
|
|
5192
|
+
return this.getRuleContexts(Graphic_exprContext);
|
|
4778
5193
|
}
|
|
4779
|
-
return this.getRuleContext(i,
|
|
5194
|
+
return this.getRuleContext(i, Graphic_exprContext);
|
|
4780
5195
|
}
|
|
4781
5196
|
get ruleIndex() {
|
|
4782
5197
|
return CircuitScriptParser.RULE_create_graphic_expr;
|
|
@@ -4791,7 +5206,44 @@ class Create_graphic_exprContext extends antlr.ParserRuleContext {
|
|
|
4791
5206
|
}
|
|
4792
5207
|
}
|
|
4793
5208
|
exports.Create_graphic_exprContext = Create_graphic_exprContext;
|
|
4794
|
-
class
|
|
5209
|
+
class Nested_properties_innerContext extends antlr.ParserRuleContext {
|
|
5210
|
+
constructor(parent, invokingState) {
|
|
5211
|
+
super(parent, invokingState);
|
|
5212
|
+
}
|
|
5213
|
+
NEWLINE(i) {
|
|
5214
|
+
if (i === undefined) {
|
|
5215
|
+
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
5216
|
+
}
|
|
5217
|
+
else {
|
|
5218
|
+
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
5219
|
+
}
|
|
5220
|
+
}
|
|
5221
|
+
INDENT() {
|
|
5222
|
+
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
5223
|
+
}
|
|
5224
|
+
DEDENT() {
|
|
5225
|
+
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
5226
|
+
}
|
|
5227
|
+
property_expr(i) {
|
|
5228
|
+
if (i === undefined) {
|
|
5229
|
+
return this.getRuleContexts(Property_exprContext);
|
|
5230
|
+
}
|
|
5231
|
+
return this.getRuleContext(i, Property_exprContext);
|
|
5232
|
+
}
|
|
5233
|
+
get ruleIndex() {
|
|
5234
|
+
return CircuitScriptParser.RULE_nested_properties_inner;
|
|
5235
|
+
}
|
|
5236
|
+
accept(visitor) {
|
|
5237
|
+
if (visitor.visitNested_properties_inner) {
|
|
5238
|
+
return visitor.visitNested_properties_inner(this);
|
|
5239
|
+
}
|
|
5240
|
+
else {
|
|
5241
|
+
return visitor.visitChildren(this);
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
}
|
|
5245
|
+
exports.Nested_properties_innerContext = Nested_properties_innerContext;
|
|
5246
|
+
class Graphic_exprContext extends antlr.ParserRuleContext {
|
|
4795
5247
|
constructor(parent, invokingState) {
|
|
4796
5248
|
super(parent, invokingState);
|
|
4797
5249
|
}
|
|
@@ -4810,19 +5262,22 @@ class Sub_exprContext extends antlr.ParserRuleContext {
|
|
|
4810
5262
|
CLOSE_PAREN() {
|
|
4811
5263
|
return this.getToken(CircuitScriptParser.CLOSE_PAREN, 0);
|
|
4812
5264
|
}
|
|
5265
|
+
nested_properties_inner() {
|
|
5266
|
+
return this.getRuleContext(0, Nested_properties_innerContext);
|
|
5267
|
+
}
|
|
4813
5268
|
get ruleIndex() {
|
|
4814
|
-
return CircuitScriptParser.
|
|
5269
|
+
return CircuitScriptParser.RULE_graphic_expr;
|
|
4815
5270
|
}
|
|
4816
5271
|
accept(visitor) {
|
|
4817
|
-
if (visitor.
|
|
4818
|
-
return visitor.
|
|
5272
|
+
if (visitor.visitGraphic_expr) {
|
|
5273
|
+
return visitor.visitGraphic_expr(this);
|
|
4819
5274
|
}
|
|
4820
5275
|
else {
|
|
4821
5276
|
return visitor.visitChildren(this);
|
|
4822
5277
|
}
|
|
4823
5278
|
}
|
|
4824
5279
|
}
|
|
4825
|
-
exports.
|
|
5280
|
+
exports.Graphic_exprContext = Graphic_exprContext;
|
|
4826
5281
|
class Property_exprContext extends antlr.ParserRuleContext {
|
|
4827
5282
|
constructor(parent, invokingState) {
|
|
4828
5283
|
super(parent, invokingState);
|
|
@@ -4910,25 +5365,8 @@ class Nested_propertiesContext extends Property_value_exprContext {
|
|
|
4910
5365
|
super(ctx.parent, ctx.invokingState);
|
|
4911
5366
|
super.copyFrom(ctx);
|
|
4912
5367
|
}
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4916
|
-
}
|
|
4917
|
-
else {
|
|
4918
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4919
|
-
}
|
|
4920
|
-
}
|
|
4921
|
-
INDENT() {
|
|
4922
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4923
|
-
}
|
|
4924
|
-
DEDENT() {
|
|
4925
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4926
|
-
}
|
|
4927
|
-
property_expr(i) {
|
|
4928
|
-
if (i === undefined) {
|
|
4929
|
-
return this.getRuleContexts(Property_exprContext);
|
|
4930
|
-
}
|
|
4931
|
-
return this.getRuleContext(i, Property_exprContext);
|
|
5368
|
+
nested_properties_inner() {
|
|
5369
|
+
return this.getRuleContext(0, Nested_properties_innerContext);
|
|
4932
5370
|
}
|
|
4933
5371
|
accept(visitor) {
|
|
4934
5372
|
if (visitor.visitNested_properties) {
|
|
@@ -5126,3 +5564,141 @@ class Frame_exprContext extends antlr.ParserRuleContext {
|
|
|
5126
5564
|
}
|
|
5127
5565
|
}
|
|
5128
5566
|
exports.Frame_exprContext = Frame_exprContext;
|
|
5567
|
+
class If_exprContext extends antlr.ParserRuleContext {
|
|
5568
|
+
constructor(parent, invokingState) {
|
|
5569
|
+
super(parent, invokingState);
|
|
5570
|
+
}
|
|
5571
|
+
If() {
|
|
5572
|
+
return this.getToken(CircuitScriptParser.If, 0);
|
|
5573
|
+
}
|
|
5574
|
+
data_expr() {
|
|
5575
|
+
return this.getRuleContext(0, Data_exprContext);
|
|
5576
|
+
}
|
|
5577
|
+
NEWLINE(i) {
|
|
5578
|
+
if (i === undefined) {
|
|
5579
|
+
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
5580
|
+
}
|
|
5581
|
+
else {
|
|
5582
|
+
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5585
|
+
INDENT() {
|
|
5586
|
+
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
5587
|
+
}
|
|
5588
|
+
DEDENT() {
|
|
5589
|
+
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
5590
|
+
}
|
|
5591
|
+
expression(i) {
|
|
5592
|
+
if (i === undefined) {
|
|
5593
|
+
return this.getRuleContexts(ExpressionContext);
|
|
5594
|
+
}
|
|
5595
|
+
return this.getRuleContext(i, ExpressionContext);
|
|
5596
|
+
}
|
|
5597
|
+
if_inner_expr(i) {
|
|
5598
|
+
if (i === undefined) {
|
|
5599
|
+
return this.getRuleContexts(If_inner_exprContext);
|
|
5600
|
+
}
|
|
5601
|
+
return this.getRuleContext(i, If_inner_exprContext);
|
|
5602
|
+
}
|
|
5603
|
+
else_expr() {
|
|
5604
|
+
return this.getRuleContext(0, Else_exprContext);
|
|
5605
|
+
}
|
|
5606
|
+
get ruleIndex() {
|
|
5607
|
+
return CircuitScriptParser.RULE_if_expr;
|
|
5608
|
+
}
|
|
5609
|
+
accept(visitor) {
|
|
5610
|
+
if (visitor.visitIf_expr) {
|
|
5611
|
+
return visitor.visitIf_expr(this);
|
|
5612
|
+
}
|
|
5613
|
+
else {
|
|
5614
|
+
return visitor.visitChildren(this);
|
|
5615
|
+
}
|
|
5616
|
+
}
|
|
5617
|
+
}
|
|
5618
|
+
exports.If_exprContext = If_exprContext;
|
|
5619
|
+
class If_inner_exprContext extends antlr.ParserRuleContext {
|
|
5620
|
+
constructor(parent, invokingState) {
|
|
5621
|
+
super(parent, invokingState);
|
|
5622
|
+
}
|
|
5623
|
+
Else() {
|
|
5624
|
+
return this.getToken(CircuitScriptParser.Else, 0);
|
|
5625
|
+
}
|
|
5626
|
+
If() {
|
|
5627
|
+
return this.getToken(CircuitScriptParser.If, 0);
|
|
5628
|
+
}
|
|
5629
|
+
data_expr() {
|
|
5630
|
+
return this.getRuleContext(0, Data_exprContext);
|
|
5631
|
+
}
|
|
5632
|
+
NEWLINE(i) {
|
|
5633
|
+
if (i === undefined) {
|
|
5634
|
+
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
5635
|
+
}
|
|
5636
|
+
else {
|
|
5637
|
+
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
5638
|
+
}
|
|
5639
|
+
}
|
|
5640
|
+
INDENT() {
|
|
5641
|
+
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
5642
|
+
}
|
|
5643
|
+
DEDENT() {
|
|
5644
|
+
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
5645
|
+
}
|
|
5646
|
+
expression(i) {
|
|
5647
|
+
if (i === undefined) {
|
|
5648
|
+
return this.getRuleContexts(ExpressionContext);
|
|
5649
|
+
}
|
|
5650
|
+
return this.getRuleContext(i, ExpressionContext);
|
|
5651
|
+
}
|
|
5652
|
+
get ruleIndex() {
|
|
5653
|
+
return CircuitScriptParser.RULE_if_inner_expr;
|
|
5654
|
+
}
|
|
5655
|
+
accept(visitor) {
|
|
5656
|
+
if (visitor.visitIf_inner_expr) {
|
|
5657
|
+
return visitor.visitIf_inner_expr(this);
|
|
5658
|
+
}
|
|
5659
|
+
else {
|
|
5660
|
+
return visitor.visitChildren(this);
|
|
5661
|
+
}
|
|
5662
|
+
}
|
|
5663
|
+
}
|
|
5664
|
+
exports.If_inner_exprContext = If_inner_exprContext;
|
|
5665
|
+
class Else_exprContext extends antlr.ParserRuleContext {
|
|
5666
|
+
constructor(parent, invokingState) {
|
|
5667
|
+
super(parent, invokingState);
|
|
5668
|
+
}
|
|
5669
|
+
Else() {
|
|
5670
|
+
return this.getToken(CircuitScriptParser.Else, 0);
|
|
5671
|
+
}
|
|
5672
|
+
NEWLINE(i) {
|
|
5673
|
+
if (i === undefined) {
|
|
5674
|
+
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
5675
|
+
}
|
|
5676
|
+
else {
|
|
5677
|
+
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
INDENT() {
|
|
5681
|
+
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
5682
|
+
}
|
|
5683
|
+
DEDENT() {
|
|
5684
|
+
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
5685
|
+
}
|
|
5686
|
+
expression(i) {
|
|
5687
|
+
if (i === undefined) {
|
|
5688
|
+
return this.getRuleContexts(ExpressionContext);
|
|
5689
|
+
}
|
|
5690
|
+
return this.getRuleContext(i, ExpressionContext);
|
|
5691
|
+
}
|
|
5692
|
+
get ruleIndex() {
|
|
5693
|
+
return CircuitScriptParser.RULE_else_expr;
|
|
5694
|
+
}
|
|
5695
|
+
accept(visitor) {
|
|
5696
|
+
if (visitor.visitElse_expr) {
|
|
5697
|
+
return visitor.visitElse_expr(this);
|
|
5698
|
+
}
|
|
5699
|
+
else {
|
|
5700
|
+
return visitor.visitChildren(this);
|
|
5701
|
+
}
|
|
5702
|
+
}
|
|
5703
|
+
}
|
|
5704
|
+
exports.Else_exprContext = Else_exprContext;
|