circuitscript 0.0.22 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseVisitor.js +487 -0
- package/dist/cjs/SemanticTokenVisitor.js +218 -0
- package/dist/cjs/SymbolValidatorVisitor.js +233 -0
- package/dist/cjs/antlr/CircuitScriptLexer.js +302 -0
- package/dist/cjs/antlr/CircuitScriptParser.js +5128 -0
- package/dist/cjs/antlr/CircuitScriptVisitor.js +7 -0
- package/dist/cjs/draw_symbols.js +819 -0
- package/dist/cjs/execute.js +778 -0
- package/{src/export.ts → dist/cjs/export.js} +34 -56
- package/dist/cjs/fonts.js +4 -0
- package/dist/cjs/geometry.js +450 -0
- package/dist/cjs/globals.js +60 -0
- package/dist/cjs/helpers.js +269 -0
- package/dist/cjs/index.js +31 -0
- package/{src/layout.ts → dist/cjs/layout.js} +421 -1002
- package/dist/cjs/lexer.js +111 -0
- package/dist/cjs/logger.js +17 -0
- package/dist/cjs/main.js +82 -0
- package/dist/cjs/objects/ClassComponent.js +145 -0
- package/dist/cjs/objects/ExecutionScope.js +135 -0
- package/dist/cjs/objects/Frame.js +22 -0
- package/{src/objects/Net.ts → dist/cjs/objects/Net.js} +9 -24
- package/dist/cjs/objects/ParamDefinition.js +42 -0
- package/dist/cjs/objects/PinDefinition.js +31 -0
- package/dist/cjs/objects/PinTypes.js +11 -0
- package/dist/cjs/objects/Wire.js +9 -0
- package/dist/cjs/objects/types.js +15 -0
- package/dist/cjs/parser.js +70 -0
- package/dist/cjs/regenerate-tests.js +23 -0
- package/dist/cjs/render.js +155 -0
- package/{src/server.ts → dist/cjs/server.js} +15 -21
- package/dist/cjs/sizing.js +105 -0
- package/{src/utils.ts → dist/cjs/utils.js} +25 -35
- package/dist/cjs/validate.js +81 -0
- package/dist/cjs/visitor.js +844 -0
- package/dist/esm/BaseVisitor.mjs +488 -0
- package/dist/esm/SemanticTokenVisitor.mjs +215 -0
- package/dist/esm/SymbolValidatorVisitor.mjs +222 -0
- package/dist/esm/antlr/CircuitScriptLexer.mjs +276 -0
- package/dist/esm/antlr/CircuitScriptParser.mjs +5038 -0
- package/{build/src/antlr/CircuitScriptVisitor.js → dist/esm/antlr/CircuitScriptVisitor.mjs} +8 -3
- package/{build/src/draw_symbols.js → dist/esm/draw_symbols.mjs} +78 -33
- package/{build/src/execute.js → dist/esm/execute.mjs} +59 -60
- package/{build/src/export.js → dist/esm/export.mjs} +2 -2
- package/{build/src/geometry.js → dist/esm/geometry.mjs} +31 -15
- package/dist/esm/helpers.mjs +252 -0
- package/dist/esm/index.mjs +15 -0
- package/{build/src/layout.js → dist/esm/layout.mjs} +19 -11
- package/{build/src/lexer.js → dist/esm/lexer.mjs} +10 -10
- package/{build/src/main.js → dist/esm/main.mjs} +9 -14
- package/{build/src/objects/ClassComponent.js → dist/esm/objects/ClassComponent.mjs} +6 -3
- package/{build/src/objects/ExecutionScope.js → dist/esm/objects/ExecutionScope.mjs} +1 -0
- package/{build/src/objects/PinDefinition.js → dist/esm/objects/PinDefinition.mjs} +1 -1
- package/dist/esm/objects/types.mjs +12 -0
- package/dist/esm/parser.mjs +64 -0
- package/{build/src/regenerate-tests.js → dist/esm/regenerate-tests.mjs} +1 -1
- package/{build/src/render.js → dist/esm/render.mjs} +7 -24
- package/{build/src/sizing.js → dist/esm/sizing.mjs} +22 -8
- package/{src/main.ts → dist/esm/validate.mjs} +31 -62
- package/dist/esm/visitor.mjs +838 -0
- package/dist/types/BaseVisitor.d.ts +69 -0
- package/dist/types/SemanticTokenVisitor.d.ts +36 -0
- package/dist/types/SymbolValidatorVisitor.d.ts +61 -0
- package/{build/src → dist/types}/antlr/CircuitScriptLexer.d.ts +28 -27
- package/dist/types/antlr/CircuitScriptParser.d.ts +719 -0
- package/{build/src → dist/types}/antlr/CircuitScriptVisitor.d.ts +69 -59
- package/{build/src → dist/types}/draw_symbols.d.ts +11 -2
- package/{build/src → dist/types}/execute.d.ts +6 -9
- package/{build/src → dist/types}/geometry.d.ts +5 -1
- package/dist/types/helpers.d.ts +40 -0
- package/dist/types/index.d.ts +15 -0
- package/{build/src → dist/types}/layout.d.ts +10 -10
- package/{build/src → dist/types}/lexer.d.ts +2 -2
- package/{build/src → dist/types}/objects/ClassComponent.d.ts +2 -2
- package/{build/src → dist/types}/objects/ExecutionScope.d.ts +4 -1
- package/{build/src → dist/types}/objects/PinDefinition.d.ts +1 -1
- package/{build/src → dist/types}/objects/types.d.ts +5 -0
- package/dist/types/parser.d.ts +25 -0
- package/{build/src → dist/types}/render.d.ts +1 -1
- package/{build/src → dist/types}/sizing.d.ts +3 -1
- package/dist/types/validate.d.ts +2 -0
- package/dist/types/visitor.d.ts +80 -0
- package/libs/lib.cst +0 -2
- package/package.json +38 -15
- package/.editorconfig +0 -15
- package/.eslintignore +0 -1
- package/.eslintrc.json +0 -27
- package/.gitlab-ci.yml +0 -81
- package/.prettierignore +0 -8
- package/.prettierrc +0 -16
- package/__tests__/expectedResults.ts +0 -657
- package/__tests__/helpers.ts +0 -82
- package/__tests__/parseScripts.ts +0 -593
- package/__tests__/renderData/script1.cst +0 -58
- package/__tests__/renderData/script1.cst.svg +0 -1
- package/__tests__/renderData/script2.cst +0 -16
- package/__tests__/renderData/script2.cst.svg +0 -1
- package/__tests__/renderData/script3.cst +0 -30
- package/__tests__/renderData/script3.cst.svg +0 -1
- package/__tests__/renderData/script4.cst +0 -54
- package/__tests__/renderData/script4.cst.svg +0 -1
- package/__tests__/renderData/script5.cst +0 -23
- package/__tests__/renderData/script5.cst.svg +0 -1
- package/__tests__/renderData/script6.cst +0 -28
- package/__tests__/renderData/script6.cst.svg +0 -1
- package/__tests__/renderData/script7.cst +0 -26
- package/__tests__/renderData/script7.cst.svg +0 -1
- package/__tests__/renderData/script8.cst +0 -37
- package/__tests__/renderData/script8.cst.svg +0 -1
- package/__tests__/testCLI.ts +0 -68
- package/__tests__/testMathOps.ts +0 -36
- package/__tests__/testMergeWires.ts +0 -141
- package/__tests__/testParse.ts +0 -263
- package/__tests__/testRender.ts +0 -38
- package/build/src/antlr/CircuitScriptLexer.js +0 -287
- package/build/src/antlr/CircuitScriptParser.d.ts +0 -674
- package/build/src/antlr/CircuitScriptParser.js +0 -4841
- package/build/src/helpers.d.ts +0 -1
- package/build/src/helpers.js +0 -73
- package/build/src/objects/types.js +0 -6
- package/build/src/parser.js +0 -69
- package/build/src/visitor.d.ts +0 -133
- package/build/src/visitor.js +0 -1154
- package/documentation.md +0 -238
- package/examples/example_arduino_uno.cst +0 -1146
- package/examples/example_garden_pump.cst +0 -567
- package/examples/lib.cst +0 -185
- package/jest.config.js +0 -23
- package/refresh.html +0 -42
- package/server.cjs +0 -50
- package/src/antlr/CircuitScript.g4 +0 -209
- package/src/antlr/CircuitScriptLexer.ts +0 -317
- package/src/antlr/CircuitScriptParser.ts +0 -4979
- package/src/antlr/CircuitScriptVisitor.ts +0 -420
- package/src/draw_symbols.ts +0 -1085
- package/src/execute.ts +0 -1227
- package/src/fonts.ts +0 -1
- package/src/geometry.ts +0 -638
- package/src/globals.ts +0 -67
- package/src/helpers.ts +0 -114
- package/src/lexer.ts +0 -151
- package/src/logger.ts +0 -17
- package/src/objects/ClassComponent.ts +0 -223
- package/src/objects/ExecutionScope.ts +0 -201
- package/src/objects/Frame.ts +0 -20
- package/src/objects/ParamDefinition.ts +0 -49
- package/src/objects/PinDefinition.ts +0 -49
- package/src/objects/PinTypes.ts +0 -7
- package/src/objects/Wire.ts +0 -19
- package/src/objects/types.ts +0 -66
- package/src/parser.ts +0 -106
- package/src/regenerate-tests.ts +0 -25
- package/src/render.ts +0 -260
- package/src/sizing.ts +0 -96
- package/src/visitor.ts +0 -1691
- package/tsconfig.json +0 -27
- package/tsconfig.release.json +0 -8
- /package/{build/src/fonts.js → dist/esm/fonts.mjs} +0 -0
- /package/{build/src/globals.js → dist/esm/globals.mjs} +0 -0
- /package/{build/src/logger.js → dist/esm/logger.mjs} +0 -0
- /package/{build/src/objects/Frame.js → dist/esm/objects/Frame.mjs} +0 -0
- /package/{build/src/objects/Net.js → dist/esm/objects/Net.mjs} +0 -0
- /package/{build/src/objects/ParamDefinition.js → dist/esm/objects/ParamDefinition.mjs} +0 -0
- /package/{build/src/objects/PinTypes.js → dist/esm/objects/PinTypes.mjs} +0 -0
- /package/{build/src/objects/Wire.js → dist/esm/objects/Wire.mjs} +0 -0
- /package/{build/src/server.js → dist/esm/server.mjs} +0 -0
- /package/{build/src/utils.js → dist/esm/utils.mjs} +0 -0
- /package/{build/src → dist/types}/export.d.ts +0 -0
- /package/{build/src → dist/types}/fonts.d.ts +0 -0
- /package/{build/src → dist/types}/globals.d.ts +0 -0
- /package/{build/src → dist/types}/logger.d.ts +0 -0
- /package/{build/src → dist/types}/main.d.ts +0 -0
- /package/{build/src → dist/types}/objects/Frame.d.ts +0 -0
- /package/{build/src → dist/types}/objects/Net.d.ts +0 -0
- /package/{build/src → dist/types}/objects/ParamDefinition.d.ts +0 -0
- /package/{build/src → dist/types}/objects/PinTypes.d.ts +0 -0
- /package/{build/src → dist/types}/objects/Wire.d.ts +0 -0
- /package/{build/src → dist/types}/regenerate-tests.d.ts +0 -0
- /package/{build/src → dist/types}/server.d.ts +0 -0
- /package/{build/src → dist/types}/utils.d.ts +0 -0
|
@@ -1,4841 +0,0 @@
|
|
|
1
|
-
import { ATN, ATNDeserializer, DFA, FailedPredicateException, RecognitionException, NoViableAltException, Parser, ParserATNSimulator, ParserRuleContext, PredictionContextCache, Token } from 'antlr4';
|
|
2
|
-
export default class CircuitScriptParser extends Parser {
|
|
3
|
-
static T__0 = 1;
|
|
4
|
-
static T__1 = 2;
|
|
5
|
-
static T__2 = 3;
|
|
6
|
-
static T__3 = 4;
|
|
7
|
-
static T__4 = 5;
|
|
8
|
-
static T__5 = 6;
|
|
9
|
-
static T__6 = 7;
|
|
10
|
-
static T__7 = 8;
|
|
11
|
-
static Break = 9;
|
|
12
|
-
static Branch = 10;
|
|
13
|
-
static Create = 11;
|
|
14
|
-
static Component = 12;
|
|
15
|
-
static Graphic = 13;
|
|
16
|
-
static Wire = 14;
|
|
17
|
-
static Pin = 15;
|
|
18
|
-
static Add = 16;
|
|
19
|
-
static At = 17;
|
|
20
|
-
static To = 18;
|
|
21
|
-
static Point = 19;
|
|
22
|
-
static Join = 20;
|
|
23
|
-
static Parallel = 21;
|
|
24
|
-
static Return = 22;
|
|
25
|
-
static Define = 23;
|
|
26
|
-
static Import = 24;
|
|
27
|
-
static If = 25;
|
|
28
|
-
static Not = 26;
|
|
29
|
-
static Equals = 27;
|
|
30
|
-
static NotEquals = 28;
|
|
31
|
-
static Addition = 29;
|
|
32
|
-
static Minus = 30;
|
|
33
|
-
static Divide = 31;
|
|
34
|
-
static Multiply = 32;
|
|
35
|
-
static OPEN_PAREN = 33;
|
|
36
|
-
static CLOSE_PAREN = 34;
|
|
37
|
-
static NOT_CONNECTED = 35;
|
|
38
|
-
static BOOLEAN_VALUE = 36;
|
|
39
|
-
static ID = 37;
|
|
40
|
-
static INTEGER_VALUE = 38;
|
|
41
|
-
static DECIMAL_VALUE = 39;
|
|
42
|
-
static NUMERIC_VALUE = 40;
|
|
43
|
-
static STRING_VALUE = 41;
|
|
44
|
-
static PERCENTAGE_VALUE = 42;
|
|
45
|
-
static ALPHA_NUMERIC = 43;
|
|
46
|
-
static WS = 44;
|
|
47
|
-
static NEWLINE = 45;
|
|
48
|
-
static SKIP_ = 46;
|
|
49
|
-
static INDENT = 47;
|
|
50
|
-
static DEDENT = 48;
|
|
51
|
-
static EOF = Token.EOF;
|
|
52
|
-
static RULE_script = 0;
|
|
53
|
-
static RULE_expression = 1;
|
|
54
|
-
static RULE_path_blocks = 2;
|
|
55
|
-
static RULE_path_block_inner = 3;
|
|
56
|
-
static RULE_property_set_expr2 = 4;
|
|
57
|
-
static RULE_assignment_expr2 = 5;
|
|
58
|
-
static RULE_data_expr_with_assignment = 6;
|
|
59
|
-
static RULE_add_component_expr = 7;
|
|
60
|
-
static RULE_component_select_expr = 8;
|
|
61
|
-
static RULE_pin_select_expr = 9;
|
|
62
|
-
static RULE_pin_select_expr2 = 10;
|
|
63
|
-
static RULE_at_component_expr = 11;
|
|
64
|
-
static RULE_to_component_expr = 12;
|
|
65
|
-
static RULE_at_to_multiple_expr = 13;
|
|
66
|
-
static RULE_at_to_multiple_line_expr = 14;
|
|
67
|
-
static RULE_at_to_multiple_line_expr_to_pin = 15;
|
|
68
|
-
static RULE_at_block = 16;
|
|
69
|
-
static RULE_at_block_expressions = 17;
|
|
70
|
-
static RULE_at_block_pin_expr = 18;
|
|
71
|
-
static RULE_at_block_pin_expression_simple = 19;
|
|
72
|
-
static RULE_at_block_pin_expression_complex = 20;
|
|
73
|
-
static RULE_break_keyword = 21;
|
|
74
|
-
static RULE_assignment_expr = 22;
|
|
75
|
-
static RULE_keyword_assignment_expr = 23;
|
|
76
|
-
static RULE_parameters = 24;
|
|
77
|
-
static RULE_property_set_expr = 25;
|
|
78
|
-
static RULE_double_dot_property_set_expr = 26;
|
|
79
|
-
static RULE_data_expr = 27;
|
|
80
|
-
static RULE_binary_operator = 28;
|
|
81
|
-
static RULE_unary_operator = 29;
|
|
82
|
-
static RULE_value_expr = 30;
|
|
83
|
-
static RULE_function_def_expr = 31;
|
|
84
|
-
static RULE_function_expr = 32;
|
|
85
|
-
static RULE_function_args_expr = 33;
|
|
86
|
-
static RULE_atom_expr = 34;
|
|
87
|
-
static RULE_trailer_expr = 35;
|
|
88
|
-
static RULE_net_namespace_expr = 36;
|
|
89
|
-
static RULE_function_return_expr = 37;
|
|
90
|
-
static RULE_create_component_expr = 38;
|
|
91
|
-
static RULE_create_graphic_expr = 39;
|
|
92
|
-
static RULE_sub_expr = 40;
|
|
93
|
-
static RULE_property_expr = 41;
|
|
94
|
-
static RULE_property_key_expr = 42;
|
|
95
|
-
static RULE_property_value_expr = 43;
|
|
96
|
-
static RULE_blank_expr = 44;
|
|
97
|
-
static RULE_wire_expr = 45;
|
|
98
|
-
static RULE_point_expr = 46;
|
|
99
|
-
static RULE_import_expr = 47;
|
|
100
|
-
static RULE_frame_expr = 48;
|
|
101
|
-
static literalNames = [null, "':'",
|
|
102
|
-
"','", "'='",
|
|
103
|
-
"'..'", "'.'",
|
|
104
|
-
"'['", "']'",
|
|
105
|
-
"'frame'", "'break'",
|
|
106
|
-
"'branch'",
|
|
107
|
-
"'create'",
|
|
108
|
-
"'component'",
|
|
109
|
-
"'graphic'",
|
|
110
|
-
"'wire'", "'pin'",
|
|
111
|
-
"'add'", "'at'",
|
|
112
|
-
"'to'", "'point'",
|
|
113
|
-
"'join'", "'parallel'",
|
|
114
|
-
"'return'",
|
|
115
|
-
"'def'", "'import'",
|
|
116
|
-
"'if'", "'!'",
|
|
117
|
-
"'=='", "'!='",
|
|
118
|
-
"'+'", "'-'",
|
|
119
|
-
"'/'", "'*'",
|
|
120
|
-
"'('", "')'"];
|
|
121
|
-
static symbolicNames = [null, null,
|
|
122
|
-
null, null,
|
|
123
|
-
null, null,
|
|
124
|
-
null, null,
|
|
125
|
-
null, "Break",
|
|
126
|
-
"Branch", "Create",
|
|
127
|
-
"Component",
|
|
128
|
-
"Graphic",
|
|
129
|
-
"Wire", "Pin",
|
|
130
|
-
"Add", "At",
|
|
131
|
-
"To", "Point",
|
|
132
|
-
"Join", "Parallel",
|
|
133
|
-
"Return", "Define",
|
|
134
|
-
"Import", "If",
|
|
135
|
-
"Not", "Equals",
|
|
136
|
-
"NotEquals",
|
|
137
|
-
"Addition",
|
|
138
|
-
"Minus", "Divide",
|
|
139
|
-
"Multiply",
|
|
140
|
-
"OPEN_PAREN",
|
|
141
|
-
"CLOSE_PAREN",
|
|
142
|
-
"NOT_CONNECTED",
|
|
143
|
-
"BOOLEAN_VALUE",
|
|
144
|
-
"ID", "INTEGER_VALUE",
|
|
145
|
-
"DECIMAL_VALUE",
|
|
146
|
-
"NUMERIC_VALUE",
|
|
147
|
-
"STRING_VALUE",
|
|
148
|
-
"PERCENTAGE_VALUE",
|
|
149
|
-
"ALPHA_NUMERIC",
|
|
150
|
-
"WS", "NEWLINE",
|
|
151
|
-
"SKIP_", "INDENT",
|
|
152
|
-
"DEDENT"];
|
|
153
|
-
static ruleNames = [
|
|
154
|
-
"script", "expression", "path_blocks", "path_block_inner", "property_set_expr2",
|
|
155
|
-
"assignment_expr2", "data_expr_with_assignment", "add_component_expr",
|
|
156
|
-
"component_select_expr", "pin_select_expr", "pin_select_expr2", "at_component_expr",
|
|
157
|
-
"to_component_expr", "at_to_multiple_expr", "at_to_multiple_line_expr",
|
|
158
|
-
"at_to_multiple_line_expr_to_pin", "at_block", "at_block_expressions",
|
|
159
|
-
"at_block_pin_expr", "at_block_pin_expression_simple", "at_block_pin_expression_complex",
|
|
160
|
-
"break_keyword", "assignment_expr", "keyword_assignment_expr", "parameters",
|
|
161
|
-
"property_set_expr", "double_dot_property_set_expr", "data_expr", "binary_operator",
|
|
162
|
-
"unary_operator", "value_expr", "function_def_expr", "function_expr",
|
|
163
|
-
"function_args_expr", "atom_expr", "trailer_expr", "net_namespace_expr",
|
|
164
|
-
"function_return_expr", "create_component_expr", "create_graphic_expr",
|
|
165
|
-
"sub_expr", "property_expr", "property_key_expr", "property_value_expr",
|
|
166
|
-
"blank_expr", "wire_expr", "point_expr", "import_expr", "frame_expr",
|
|
167
|
-
];
|
|
168
|
-
get grammarFileName() { return "CircuitScript.g4"; }
|
|
169
|
-
get literalNames() { return CircuitScriptParser.literalNames; }
|
|
170
|
-
get symbolicNames() { return CircuitScriptParser.symbolicNames; }
|
|
171
|
-
get ruleNames() { return CircuitScriptParser.ruleNames; }
|
|
172
|
-
get serializedATN() { return CircuitScriptParser._serializedATN; }
|
|
173
|
-
createFailedPredicateException(predicate, message) {
|
|
174
|
-
return new FailedPredicateException(this, predicate, message);
|
|
175
|
-
}
|
|
176
|
-
constructor(input) {
|
|
177
|
-
super(input);
|
|
178
|
-
this._interp = new ParserATNSimulator(this, CircuitScriptParser._ATN, CircuitScriptParser.DecisionsToDFA, new PredictionContextCache());
|
|
179
|
-
}
|
|
180
|
-
script() {
|
|
181
|
-
let localctx = new ScriptContext(this, this._ctx, this.state);
|
|
182
|
-
this.enterRule(localctx, 0, CircuitScriptParser.RULE_script);
|
|
183
|
-
let _la;
|
|
184
|
-
try {
|
|
185
|
-
this.enterOuterAlt(localctx, 1);
|
|
186
|
-
{
|
|
187
|
-
this.state = 100;
|
|
188
|
-
this._errHandler.sync(this);
|
|
189
|
-
_la = this._input.LA(1);
|
|
190
|
-
do {
|
|
191
|
-
{
|
|
192
|
-
this.state = 100;
|
|
193
|
-
this._errHandler.sync(this);
|
|
194
|
-
switch (this._input.LA(1)) {
|
|
195
|
-
case 4:
|
|
196
|
-
case 8:
|
|
197
|
-
case 9:
|
|
198
|
-
case 10:
|
|
199
|
-
case 14:
|
|
200
|
-
case 16:
|
|
201
|
-
case 17:
|
|
202
|
-
case 18:
|
|
203
|
-
case 19:
|
|
204
|
-
case 20:
|
|
205
|
-
case 21:
|
|
206
|
-
case 23:
|
|
207
|
-
case 24:
|
|
208
|
-
case 29:
|
|
209
|
-
case 31:
|
|
210
|
-
case 37:
|
|
211
|
-
{
|
|
212
|
-
this.state = 98;
|
|
213
|
-
this.expression();
|
|
214
|
-
}
|
|
215
|
-
break;
|
|
216
|
-
case 45:
|
|
217
|
-
{
|
|
218
|
-
this.state = 99;
|
|
219
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
220
|
-
}
|
|
221
|
-
break;
|
|
222
|
-
default:
|
|
223
|
-
throw new NoViableAltException(this);
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
this.state = 102;
|
|
227
|
-
this._errHandler.sync(this);
|
|
228
|
-
_la = this._input.LA(1);
|
|
229
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2713667344) !== 0) || _la === 37 || _la === 45);
|
|
230
|
-
this.state = 104;
|
|
231
|
-
this.match(CircuitScriptParser.EOF);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
catch (re) {
|
|
235
|
-
if (re instanceof RecognitionException) {
|
|
236
|
-
localctx.exception = re;
|
|
237
|
-
this._errHandler.reportError(this, re);
|
|
238
|
-
this._errHandler.recover(this, re);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
throw re;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
finally {
|
|
245
|
-
this.exitRule();
|
|
246
|
-
}
|
|
247
|
-
return localctx;
|
|
248
|
-
}
|
|
249
|
-
expression() {
|
|
250
|
-
let localctx = new ExpressionContext(this, this._ctx, this.state);
|
|
251
|
-
this.enterRule(localctx, 2, CircuitScriptParser.RULE_expression);
|
|
252
|
-
try {
|
|
253
|
-
this.state = 122;
|
|
254
|
-
this._errHandler.sync(this);
|
|
255
|
-
switch (this._interp.adaptivePredict(this._input, 2, this._ctx)) {
|
|
256
|
-
case 1:
|
|
257
|
-
this.enterOuterAlt(localctx, 1);
|
|
258
|
-
{
|
|
259
|
-
this.state = 106;
|
|
260
|
-
this.add_component_expr();
|
|
261
|
-
}
|
|
262
|
-
break;
|
|
263
|
-
case 2:
|
|
264
|
-
this.enterOuterAlt(localctx, 2);
|
|
265
|
-
{
|
|
266
|
-
this.state = 107;
|
|
267
|
-
this.to_component_expr();
|
|
268
|
-
}
|
|
269
|
-
break;
|
|
270
|
-
case 3:
|
|
271
|
-
this.enterOuterAlt(localctx, 3);
|
|
272
|
-
{
|
|
273
|
-
this.state = 108;
|
|
274
|
-
this.at_component_expr();
|
|
275
|
-
}
|
|
276
|
-
break;
|
|
277
|
-
case 4:
|
|
278
|
-
this.enterOuterAlt(localctx, 4);
|
|
279
|
-
{
|
|
280
|
-
this.state = 109;
|
|
281
|
-
this.assignment_expr();
|
|
282
|
-
}
|
|
283
|
-
break;
|
|
284
|
-
case 5:
|
|
285
|
-
this.enterOuterAlt(localctx, 5);
|
|
286
|
-
{
|
|
287
|
-
this.state = 110;
|
|
288
|
-
this.property_set_expr();
|
|
289
|
-
}
|
|
290
|
-
break;
|
|
291
|
-
case 6:
|
|
292
|
-
this.enterOuterAlt(localctx, 6);
|
|
293
|
-
{
|
|
294
|
-
this.state = 111;
|
|
295
|
-
this.property_set_expr2();
|
|
296
|
-
}
|
|
297
|
-
break;
|
|
298
|
-
case 7:
|
|
299
|
-
this.enterOuterAlt(localctx, 7);
|
|
300
|
-
{
|
|
301
|
-
this.state = 112;
|
|
302
|
-
this.double_dot_property_set_expr();
|
|
303
|
-
}
|
|
304
|
-
break;
|
|
305
|
-
case 8:
|
|
306
|
-
this.enterOuterAlt(localctx, 8);
|
|
307
|
-
{
|
|
308
|
-
this.state = 113;
|
|
309
|
-
this.break_keyword();
|
|
310
|
-
}
|
|
311
|
-
break;
|
|
312
|
-
case 9:
|
|
313
|
-
this.enterOuterAlt(localctx, 9);
|
|
314
|
-
{
|
|
315
|
-
this.state = 114;
|
|
316
|
-
this.function_def_expr();
|
|
317
|
-
}
|
|
318
|
-
break;
|
|
319
|
-
case 10:
|
|
320
|
-
this.enterOuterAlt(localctx, 10);
|
|
321
|
-
{
|
|
322
|
-
this.state = 115;
|
|
323
|
-
this.wire_expr();
|
|
324
|
-
}
|
|
325
|
-
break;
|
|
326
|
-
case 11:
|
|
327
|
-
this.enterOuterAlt(localctx, 11);
|
|
328
|
-
{
|
|
329
|
-
this.state = 116;
|
|
330
|
-
this.import_expr();
|
|
331
|
-
}
|
|
332
|
-
break;
|
|
333
|
-
case 12:
|
|
334
|
-
this.enterOuterAlt(localctx, 12);
|
|
335
|
-
{
|
|
336
|
-
this.state = 117;
|
|
337
|
-
this.frame_expr();
|
|
338
|
-
}
|
|
339
|
-
break;
|
|
340
|
-
case 13:
|
|
341
|
-
this.enterOuterAlt(localctx, 13);
|
|
342
|
-
{
|
|
343
|
-
this.state = 118;
|
|
344
|
-
this.atom_expr();
|
|
345
|
-
}
|
|
346
|
-
break;
|
|
347
|
-
case 14:
|
|
348
|
-
this.enterOuterAlt(localctx, 14);
|
|
349
|
-
{
|
|
350
|
-
this.state = 119;
|
|
351
|
-
this.at_block();
|
|
352
|
-
}
|
|
353
|
-
break;
|
|
354
|
-
case 15:
|
|
355
|
-
this.enterOuterAlt(localctx, 15);
|
|
356
|
-
{
|
|
357
|
-
this.state = 120;
|
|
358
|
-
this.path_blocks();
|
|
359
|
-
}
|
|
360
|
-
break;
|
|
361
|
-
case 16:
|
|
362
|
-
this.enterOuterAlt(localctx, 16);
|
|
363
|
-
{
|
|
364
|
-
this.state = 121;
|
|
365
|
-
this.point_expr();
|
|
366
|
-
}
|
|
367
|
-
break;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
catch (re) {
|
|
371
|
-
if (re instanceof RecognitionException) {
|
|
372
|
-
localctx.exception = re;
|
|
373
|
-
this._errHandler.reportError(this, re);
|
|
374
|
-
this._errHandler.recover(this, re);
|
|
375
|
-
}
|
|
376
|
-
else {
|
|
377
|
-
throw re;
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
|
-
finally {
|
|
381
|
-
this.exitRule();
|
|
382
|
-
}
|
|
383
|
-
return localctx;
|
|
384
|
-
}
|
|
385
|
-
path_blocks() {
|
|
386
|
-
let localctx = new Path_blocksContext(this, this._ctx, this.state);
|
|
387
|
-
this.enterRule(localctx, 4, CircuitScriptParser.RULE_path_blocks);
|
|
388
|
-
try {
|
|
389
|
-
let _alt;
|
|
390
|
-
this.enterOuterAlt(localctx, 1);
|
|
391
|
-
{
|
|
392
|
-
this.state = 125;
|
|
393
|
-
this._errHandler.sync(this);
|
|
394
|
-
_alt = 1;
|
|
395
|
-
do {
|
|
396
|
-
switch (_alt) {
|
|
397
|
-
case 1:
|
|
398
|
-
{
|
|
399
|
-
{
|
|
400
|
-
this.state = 124;
|
|
401
|
-
this.path_block_inner();
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
break;
|
|
405
|
-
default:
|
|
406
|
-
throw new NoViableAltException(this);
|
|
407
|
-
}
|
|
408
|
-
this.state = 127;
|
|
409
|
-
this._errHandler.sync(this);
|
|
410
|
-
_alt = this._interp.adaptivePredict(this._input, 3, this._ctx);
|
|
411
|
-
} while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
catch (re) {
|
|
415
|
-
if (re instanceof RecognitionException) {
|
|
416
|
-
localctx.exception = re;
|
|
417
|
-
this._errHandler.reportError(this, re);
|
|
418
|
-
this._errHandler.recover(this, re);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
throw re;
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
finally {
|
|
425
|
-
this.exitRule();
|
|
426
|
-
}
|
|
427
|
-
return localctx;
|
|
428
|
-
}
|
|
429
|
-
path_block_inner() {
|
|
430
|
-
let localctx = new Path_block_innerContext(this, this._ctx, this.state);
|
|
431
|
-
this.enterRule(localctx, 6, CircuitScriptParser.RULE_path_block_inner);
|
|
432
|
-
let _la;
|
|
433
|
-
try {
|
|
434
|
-
this.enterOuterAlt(localctx, 1);
|
|
435
|
-
{
|
|
436
|
-
this.state = 129;
|
|
437
|
-
_la = this._input.LA(1);
|
|
438
|
-
if (!((((_la) & ~0x1F) === 0 && ((1 << _la) & 3671040) !== 0))) {
|
|
439
|
-
this._errHandler.recoverInline(this);
|
|
440
|
-
}
|
|
441
|
-
else {
|
|
442
|
-
this._errHandler.reportMatch(this);
|
|
443
|
-
this.consume();
|
|
444
|
-
}
|
|
445
|
-
this.state = 130;
|
|
446
|
-
this.match(CircuitScriptParser.T__0);
|
|
447
|
-
this.state = 131;
|
|
448
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
449
|
-
this.state = 132;
|
|
450
|
-
this.match(CircuitScriptParser.INDENT);
|
|
451
|
-
this.state = 135;
|
|
452
|
-
this._errHandler.sync(this);
|
|
453
|
-
_la = this._input.LA(1);
|
|
454
|
-
do {
|
|
455
|
-
{
|
|
456
|
-
this.state = 135;
|
|
457
|
-
this._errHandler.sync(this);
|
|
458
|
-
switch (this._input.LA(1)) {
|
|
459
|
-
case 45:
|
|
460
|
-
{
|
|
461
|
-
this.state = 133;
|
|
462
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
463
|
-
}
|
|
464
|
-
break;
|
|
465
|
-
case 4:
|
|
466
|
-
case 8:
|
|
467
|
-
case 9:
|
|
468
|
-
case 10:
|
|
469
|
-
case 14:
|
|
470
|
-
case 16:
|
|
471
|
-
case 17:
|
|
472
|
-
case 18:
|
|
473
|
-
case 19:
|
|
474
|
-
case 20:
|
|
475
|
-
case 21:
|
|
476
|
-
case 23:
|
|
477
|
-
case 24:
|
|
478
|
-
case 29:
|
|
479
|
-
case 31:
|
|
480
|
-
case 37:
|
|
481
|
-
{
|
|
482
|
-
this.state = 134;
|
|
483
|
-
this.expression();
|
|
484
|
-
}
|
|
485
|
-
break;
|
|
486
|
-
default:
|
|
487
|
-
throw new NoViableAltException(this);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
this.state = 137;
|
|
491
|
-
this._errHandler.sync(this);
|
|
492
|
-
_la = this._input.LA(1);
|
|
493
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2713667344) !== 0) || _la === 37 || _la === 45);
|
|
494
|
-
this.state = 139;
|
|
495
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
catch (re) {
|
|
499
|
-
if (re instanceof RecognitionException) {
|
|
500
|
-
localctx.exception = re;
|
|
501
|
-
this._errHandler.reportError(this, re);
|
|
502
|
-
this._errHandler.recover(this, re);
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
throw re;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
finally {
|
|
509
|
-
this.exitRule();
|
|
510
|
-
}
|
|
511
|
-
return localctx;
|
|
512
|
-
}
|
|
513
|
-
property_set_expr2() {
|
|
514
|
-
let localctx = new Property_set_expr2Context(this, this._ctx, this.state);
|
|
515
|
-
this.enterRule(localctx, 8, CircuitScriptParser.RULE_property_set_expr2);
|
|
516
|
-
let _la;
|
|
517
|
-
try {
|
|
518
|
-
this.enterOuterAlt(localctx, 1);
|
|
519
|
-
{
|
|
520
|
-
this.state = 141;
|
|
521
|
-
this.atom_expr();
|
|
522
|
-
this.state = 142;
|
|
523
|
-
this.match(CircuitScriptParser.T__0);
|
|
524
|
-
this.state = 143;
|
|
525
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
526
|
-
this.state = 144;
|
|
527
|
-
this.match(CircuitScriptParser.INDENT);
|
|
528
|
-
this.state = 147;
|
|
529
|
-
this._errHandler.sync(this);
|
|
530
|
-
_la = this._input.LA(1);
|
|
531
|
-
do {
|
|
532
|
-
{
|
|
533
|
-
this.state = 147;
|
|
534
|
-
this._errHandler.sync(this);
|
|
535
|
-
switch (this._input.LA(1)) {
|
|
536
|
-
case 45:
|
|
537
|
-
{
|
|
538
|
-
this.state = 145;
|
|
539
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
540
|
-
}
|
|
541
|
-
break;
|
|
542
|
-
case 37:
|
|
543
|
-
case 38:
|
|
544
|
-
{
|
|
545
|
-
this.state = 146;
|
|
546
|
-
this.assignment_expr2();
|
|
547
|
-
}
|
|
548
|
-
break;
|
|
549
|
-
default:
|
|
550
|
-
throw new NoViableAltException(this);
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
this.state = 149;
|
|
554
|
-
this._errHandler.sync(this);
|
|
555
|
-
_la = this._input.LA(1);
|
|
556
|
-
} while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 259) !== 0));
|
|
557
|
-
this.state = 151;
|
|
558
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
catch (re) {
|
|
562
|
-
if (re instanceof RecognitionException) {
|
|
563
|
-
localctx.exception = re;
|
|
564
|
-
this._errHandler.reportError(this, re);
|
|
565
|
-
this._errHandler.recover(this, re);
|
|
566
|
-
}
|
|
567
|
-
else {
|
|
568
|
-
throw re;
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
finally {
|
|
572
|
-
this.exitRule();
|
|
573
|
-
}
|
|
574
|
-
return localctx;
|
|
575
|
-
}
|
|
576
|
-
assignment_expr2() {
|
|
577
|
-
let localctx = new Assignment_expr2Context(this, this._ctx, this.state);
|
|
578
|
-
this.enterRule(localctx, 10, CircuitScriptParser.RULE_assignment_expr2);
|
|
579
|
-
let _la;
|
|
580
|
-
try {
|
|
581
|
-
this.enterOuterAlt(localctx, 1);
|
|
582
|
-
{
|
|
583
|
-
this.state = 153;
|
|
584
|
-
_la = this._input.LA(1);
|
|
585
|
-
if (!(_la === 37 || _la === 38)) {
|
|
586
|
-
this._errHandler.recoverInline(this);
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
this._errHandler.reportMatch(this);
|
|
590
|
-
this.consume();
|
|
591
|
-
}
|
|
592
|
-
this.state = 154;
|
|
593
|
-
this.match(CircuitScriptParser.T__0);
|
|
594
|
-
this.state = 155;
|
|
595
|
-
this.value_expr();
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
catch (re) {
|
|
599
|
-
if (re instanceof RecognitionException) {
|
|
600
|
-
localctx.exception = re;
|
|
601
|
-
this._errHandler.reportError(this, re);
|
|
602
|
-
this._errHandler.recover(this, re);
|
|
603
|
-
}
|
|
604
|
-
else {
|
|
605
|
-
throw re;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
finally {
|
|
609
|
-
this.exitRule();
|
|
610
|
-
}
|
|
611
|
-
return localctx;
|
|
612
|
-
}
|
|
613
|
-
data_expr_with_assignment() {
|
|
614
|
-
let localctx = new Data_expr_with_assignmentContext(this, this._ctx, this.state);
|
|
615
|
-
this.enterRule(localctx, 12, CircuitScriptParser.RULE_data_expr_with_assignment);
|
|
616
|
-
let _la;
|
|
617
|
-
try {
|
|
618
|
-
this.enterOuterAlt(localctx, 1);
|
|
619
|
-
{
|
|
620
|
-
this.state = 159;
|
|
621
|
-
this._errHandler.sync(this);
|
|
622
|
-
switch (this._interp.adaptivePredict(this._input, 8, this._ctx)) {
|
|
623
|
-
case 1:
|
|
624
|
-
{
|
|
625
|
-
this.state = 157;
|
|
626
|
-
this.data_expr(0);
|
|
627
|
-
}
|
|
628
|
-
break;
|
|
629
|
-
case 2:
|
|
630
|
-
{
|
|
631
|
-
this.state = 158;
|
|
632
|
-
this.assignment_expr();
|
|
633
|
-
}
|
|
634
|
-
break;
|
|
635
|
-
}
|
|
636
|
-
this.state = 162;
|
|
637
|
-
this._errHandler.sync(this);
|
|
638
|
-
_la = this._input.LA(1);
|
|
639
|
-
if (_la === 15) {
|
|
640
|
-
{
|
|
641
|
-
this.state = 161;
|
|
642
|
-
this.pin_select_expr();
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
catch (re) {
|
|
648
|
-
if (re instanceof RecognitionException) {
|
|
649
|
-
localctx.exception = re;
|
|
650
|
-
this._errHandler.reportError(this, re);
|
|
651
|
-
this._errHandler.recover(this, re);
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
throw re;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
finally {
|
|
658
|
-
this.exitRule();
|
|
659
|
-
}
|
|
660
|
-
return localctx;
|
|
661
|
-
}
|
|
662
|
-
add_component_expr() {
|
|
663
|
-
let localctx = new Add_component_exprContext(this, this._ctx, this.state);
|
|
664
|
-
this.enterRule(localctx, 14, CircuitScriptParser.RULE_add_component_expr);
|
|
665
|
-
try {
|
|
666
|
-
this.enterOuterAlt(localctx, 1);
|
|
667
|
-
{
|
|
668
|
-
this.state = 164;
|
|
669
|
-
this.match(CircuitScriptParser.Add);
|
|
670
|
-
this.state = 165;
|
|
671
|
-
this.data_expr_with_assignment();
|
|
672
|
-
this.state = 167;
|
|
673
|
-
this._errHandler.sync(this);
|
|
674
|
-
switch (this._interp.adaptivePredict(this._input, 10, this._ctx)) {
|
|
675
|
-
case 1:
|
|
676
|
-
{
|
|
677
|
-
this.state = 166;
|
|
678
|
-
this.match(CircuitScriptParser.ID);
|
|
679
|
-
}
|
|
680
|
-
break;
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
}
|
|
684
|
-
catch (re) {
|
|
685
|
-
if (re instanceof RecognitionException) {
|
|
686
|
-
localctx.exception = re;
|
|
687
|
-
this._errHandler.reportError(this, re);
|
|
688
|
-
this._errHandler.recover(this, re);
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
throw re;
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
finally {
|
|
695
|
-
this.exitRule();
|
|
696
|
-
}
|
|
697
|
-
return localctx;
|
|
698
|
-
}
|
|
699
|
-
component_select_expr() {
|
|
700
|
-
let localctx = new Component_select_exprContext(this, this._ctx, this.state);
|
|
701
|
-
this.enterRule(localctx, 16, CircuitScriptParser.RULE_component_select_expr);
|
|
702
|
-
try {
|
|
703
|
-
this.state = 171;
|
|
704
|
-
this._errHandler.sync(this);
|
|
705
|
-
switch (this._input.LA(1)) {
|
|
706
|
-
case 6:
|
|
707
|
-
case 11:
|
|
708
|
-
case 26:
|
|
709
|
-
case 29:
|
|
710
|
-
case 30:
|
|
711
|
-
case 31:
|
|
712
|
-
case 33:
|
|
713
|
-
case 36:
|
|
714
|
-
case 37:
|
|
715
|
-
case 38:
|
|
716
|
-
case 39:
|
|
717
|
-
case 40:
|
|
718
|
-
case 41:
|
|
719
|
-
case 42:
|
|
720
|
-
this.enterOuterAlt(localctx, 1);
|
|
721
|
-
{
|
|
722
|
-
this.state = 169;
|
|
723
|
-
this.data_expr_with_assignment();
|
|
724
|
-
}
|
|
725
|
-
break;
|
|
726
|
-
case 15:
|
|
727
|
-
this.enterOuterAlt(localctx, 2);
|
|
728
|
-
{
|
|
729
|
-
this.state = 170;
|
|
730
|
-
this.pin_select_expr();
|
|
731
|
-
}
|
|
732
|
-
break;
|
|
733
|
-
default:
|
|
734
|
-
throw new NoViableAltException(this);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
catch (re) {
|
|
738
|
-
if (re instanceof RecognitionException) {
|
|
739
|
-
localctx.exception = re;
|
|
740
|
-
this._errHandler.reportError(this, re);
|
|
741
|
-
this._errHandler.recover(this, re);
|
|
742
|
-
}
|
|
743
|
-
else {
|
|
744
|
-
throw re;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
finally {
|
|
748
|
-
this.exitRule();
|
|
749
|
-
}
|
|
750
|
-
return localctx;
|
|
751
|
-
}
|
|
752
|
-
pin_select_expr() {
|
|
753
|
-
let localctx = new Pin_select_exprContext(this, this._ctx, this.state);
|
|
754
|
-
this.enterRule(localctx, 18, CircuitScriptParser.RULE_pin_select_expr);
|
|
755
|
-
let _la;
|
|
756
|
-
try {
|
|
757
|
-
this.enterOuterAlt(localctx, 1);
|
|
758
|
-
{
|
|
759
|
-
this.state = 173;
|
|
760
|
-
this.match(CircuitScriptParser.Pin);
|
|
761
|
-
this.state = 174;
|
|
762
|
-
_la = this._input.LA(1);
|
|
763
|
-
if (!(_la === 38 || _la === 41)) {
|
|
764
|
-
this._errHandler.recoverInline(this);
|
|
765
|
-
}
|
|
766
|
-
else {
|
|
767
|
-
this._errHandler.reportMatch(this);
|
|
768
|
-
this.consume();
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
catch (re) {
|
|
773
|
-
if (re instanceof RecognitionException) {
|
|
774
|
-
localctx.exception = re;
|
|
775
|
-
this._errHandler.reportError(this, re);
|
|
776
|
-
this._errHandler.recover(this, re);
|
|
777
|
-
}
|
|
778
|
-
else {
|
|
779
|
-
throw re;
|
|
780
|
-
}
|
|
781
|
-
}
|
|
782
|
-
finally {
|
|
783
|
-
this.exitRule();
|
|
784
|
-
}
|
|
785
|
-
return localctx;
|
|
786
|
-
}
|
|
787
|
-
pin_select_expr2() {
|
|
788
|
-
let localctx = new Pin_select_expr2Context(this, this._ctx, this.state);
|
|
789
|
-
this.enterRule(localctx, 20, CircuitScriptParser.RULE_pin_select_expr2);
|
|
790
|
-
let _la;
|
|
791
|
-
try {
|
|
792
|
-
this.enterOuterAlt(localctx, 1);
|
|
793
|
-
{
|
|
794
|
-
this.state = 176;
|
|
795
|
-
_la = this._input.LA(1);
|
|
796
|
-
if (!(_la === 38 || _la === 41)) {
|
|
797
|
-
this._errHandler.recoverInline(this);
|
|
798
|
-
}
|
|
799
|
-
else {
|
|
800
|
-
this._errHandler.reportMatch(this);
|
|
801
|
-
this.consume();
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
catch (re) {
|
|
806
|
-
if (re instanceof RecognitionException) {
|
|
807
|
-
localctx.exception = re;
|
|
808
|
-
this._errHandler.reportError(this, re);
|
|
809
|
-
this._errHandler.recover(this, re);
|
|
810
|
-
}
|
|
811
|
-
else {
|
|
812
|
-
throw re;
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
finally {
|
|
816
|
-
this.exitRule();
|
|
817
|
-
}
|
|
818
|
-
return localctx;
|
|
819
|
-
}
|
|
820
|
-
at_component_expr() {
|
|
821
|
-
let localctx = new At_component_exprContext(this, this._ctx, this.state);
|
|
822
|
-
this.enterRule(localctx, 22, CircuitScriptParser.RULE_at_component_expr);
|
|
823
|
-
try {
|
|
824
|
-
this.enterOuterAlt(localctx, 1);
|
|
825
|
-
{
|
|
826
|
-
this.state = 178;
|
|
827
|
-
this.match(CircuitScriptParser.At);
|
|
828
|
-
this.state = 184;
|
|
829
|
-
this._errHandler.sync(this);
|
|
830
|
-
switch (this._input.LA(1)) {
|
|
831
|
-
case 6:
|
|
832
|
-
case 11:
|
|
833
|
-
case 15:
|
|
834
|
-
case 26:
|
|
835
|
-
case 29:
|
|
836
|
-
case 30:
|
|
837
|
-
case 31:
|
|
838
|
-
case 33:
|
|
839
|
-
case 36:
|
|
840
|
-
case 37:
|
|
841
|
-
case 38:
|
|
842
|
-
case 39:
|
|
843
|
-
case 40:
|
|
844
|
-
case 41:
|
|
845
|
-
case 42:
|
|
846
|
-
{
|
|
847
|
-
{
|
|
848
|
-
this.state = 179;
|
|
849
|
-
this.component_select_expr();
|
|
850
|
-
this.state = 181;
|
|
851
|
-
this._errHandler.sync(this);
|
|
852
|
-
switch (this._interp.adaptivePredict(this._input, 12, this._ctx)) {
|
|
853
|
-
case 1:
|
|
854
|
-
{
|
|
855
|
-
this.state = 180;
|
|
856
|
-
this.match(CircuitScriptParser.ID);
|
|
857
|
-
}
|
|
858
|
-
break;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
break;
|
|
863
|
-
case 19:
|
|
864
|
-
{
|
|
865
|
-
this.state = 183;
|
|
866
|
-
this.match(CircuitScriptParser.Point);
|
|
867
|
-
}
|
|
868
|
-
break;
|
|
869
|
-
default:
|
|
870
|
-
throw new NoViableAltException(this);
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
|
-
}
|
|
874
|
-
catch (re) {
|
|
875
|
-
if (re instanceof RecognitionException) {
|
|
876
|
-
localctx.exception = re;
|
|
877
|
-
this._errHandler.reportError(this, re);
|
|
878
|
-
this._errHandler.recover(this, re);
|
|
879
|
-
}
|
|
880
|
-
else {
|
|
881
|
-
throw re;
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
finally {
|
|
885
|
-
this.exitRule();
|
|
886
|
-
}
|
|
887
|
-
return localctx;
|
|
888
|
-
}
|
|
889
|
-
to_component_expr() {
|
|
890
|
-
let localctx = new To_component_exprContext(this, this._ctx, this.state);
|
|
891
|
-
this.enterRule(localctx, 24, CircuitScriptParser.RULE_to_component_expr);
|
|
892
|
-
let _la;
|
|
893
|
-
try {
|
|
894
|
-
this.enterOuterAlt(localctx, 1);
|
|
895
|
-
{
|
|
896
|
-
this.state = 186;
|
|
897
|
-
this.match(CircuitScriptParser.To);
|
|
898
|
-
this.state = 199;
|
|
899
|
-
this._errHandler.sync(this);
|
|
900
|
-
switch (this._input.LA(1)) {
|
|
901
|
-
case 6:
|
|
902
|
-
case 11:
|
|
903
|
-
case 15:
|
|
904
|
-
case 26:
|
|
905
|
-
case 29:
|
|
906
|
-
case 30:
|
|
907
|
-
case 31:
|
|
908
|
-
case 33:
|
|
909
|
-
case 36:
|
|
910
|
-
case 37:
|
|
911
|
-
case 38:
|
|
912
|
-
case 39:
|
|
913
|
-
case 40:
|
|
914
|
-
case 41:
|
|
915
|
-
case 42:
|
|
916
|
-
{
|
|
917
|
-
{
|
|
918
|
-
this.state = 187;
|
|
919
|
-
this.component_select_expr();
|
|
920
|
-
this.state = 192;
|
|
921
|
-
this._errHandler.sync(this);
|
|
922
|
-
_la = this._input.LA(1);
|
|
923
|
-
while (_la === 2) {
|
|
924
|
-
{
|
|
925
|
-
{
|
|
926
|
-
this.state = 188;
|
|
927
|
-
this.match(CircuitScriptParser.T__1);
|
|
928
|
-
this.state = 189;
|
|
929
|
-
this.component_select_expr();
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
this.state = 194;
|
|
933
|
-
this._errHandler.sync(this);
|
|
934
|
-
_la = this._input.LA(1);
|
|
935
|
-
}
|
|
936
|
-
this.state = 196;
|
|
937
|
-
this._errHandler.sync(this);
|
|
938
|
-
switch (this._interp.adaptivePredict(this._input, 15, this._ctx)) {
|
|
939
|
-
case 1:
|
|
940
|
-
{
|
|
941
|
-
this.state = 195;
|
|
942
|
-
this.match(CircuitScriptParser.ID);
|
|
943
|
-
}
|
|
944
|
-
break;
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
break;
|
|
949
|
-
case 19:
|
|
950
|
-
{
|
|
951
|
-
this.state = 198;
|
|
952
|
-
this.match(CircuitScriptParser.Point);
|
|
953
|
-
}
|
|
954
|
-
break;
|
|
955
|
-
default:
|
|
956
|
-
throw new NoViableAltException(this);
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
catch (re) {
|
|
961
|
-
if (re instanceof RecognitionException) {
|
|
962
|
-
localctx.exception = re;
|
|
963
|
-
this._errHandler.reportError(this, re);
|
|
964
|
-
this._errHandler.recover(this, re);
|
|
965
|
-
}
|
|
966
|
-
else {
|
|
967
|
-
throw re;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
finally {
|
|
971
|
-
this.exitRule();
|
|
972
|
-
}
|
|
973
|
-
return localctx;
|
|
974
|
-
}
|
|
975
|
-
at_to_multiple_expr() {
|
|
976
|
-
let localctx = new At_to_multiple_exprContext(this, this._ctx, this.state);
|
|
977
|
-
this.enterRule(localctx, 26, CircuitScriptParser.RULE_at_to_multiple_expr);
|
|
978
|
-
let _la;
|
|
979
|
-
try {
|
|
980
|
-
this.enterOuterAlt(localctx, 1);
|
|
981
|
-
{
|
|
982
|
-
this.state = 201;
|
|
983
|
-
this.match(CircuitScriptParser.At);
|
|
984
|
-
this.state = 202;
|
|
985
|
-
this.component_select_expr();
|
|
986
|
-
this.state = 203;
|
|
987
|
-
this.match(CircuitScriptParser.To);
|
|
988
|
-
this.state = 204;
|
|
989
|
-
this.component_select_expr();
|
|
990
|
-
this.state = 209;
|
|
991
|
-
this._errHandler.sync(this);
|
|
992
|
-
_la = this._input.LA(1);
|
|
993
|
-
while (_la === 2) {
|
|
994
|
-
{
|
|
995
|
-
{
|
|
996
|
-
this.state = 205;
|
|
997
|
-
this.match(CircuitScriptParser.T__1);
|
|
998
|
-
this.state = 206;
|
|
999
|
-
this.component_select_expr();
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
this.state = 211;
|
|
1003
|
-
this._errHandler.sync(this);
|
|
1004
|
-
_la = this._input.LA(1);
|
|
1005
|
-
}
|
|
1006
|
-
this.state = 212;
|
|
1007
|
-
this.match(CircuitScriptParser.T__0);
|
|
1008
|
-
this.state = 213;
|
|
1009
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1010
|
-
this.state = 214;
|
|
1011
|
-
this.match(CircuitScriptParser.INDENT);
|
|
1012
|
-
this.state = 217;
|
|
1013
|
-
this._errHandler.sync(this);
|
|
1014
|
-
_la = this._input.LA(1);
|
|
1015
|
-
do {
|
|
1016
|
-
{
|
|
1017
|
-
this.state = 217;
|
|
1018
|
-
this._errHandler.sync(this);
|
|
1019
|
-
switch (this._input.LA(1)) {
|
|
1020
|
-
case 45:
|
|
1021
|
-
{
|
|
1022
|
-
this.state = 215;
|
|
1023
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1024
|
-
}
|
|
1025
|
-
break;
|
|
1026
|
-
case 38:
|
|
1027
|
-
case 41:
|
|
1028
|
-
{
|
|
1029
|
-
this.state = 216;
|
|
1030
|
-
this.at_to_multiple_line_expr();
|
|
1031
|
-
}
|
|
1032
|
-
break;
|
|
1033
|
-
default:
|
|
1034
|
-
throw new NoViableAltException(this);
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
this.state = 219;
|
|
1038
|
-
this._errHandler.sync(this);
|
|
1039
|
-
_la = this._input.LA(1);
|
|
1040
|
-
} while (((((_la - 38)) & ~0x1F) === 0 && ((1 << (_la - 38)) & 137) !== 0));
|
|
1041
|
-
this.state = 221;
|
|
1042
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
catch (re) {
|
|
1046
|
-
if (re instanceof RecognitionException) {
|
|
1047
|
-
localctx.exception = re;
|
|
1048
|
-
this._errHandler.reportError(this, re);
|
|
1049
|
-
this._errHandler.recover(this, re);
|
|
1050
|
-
}
|
|
1051
|
-
else {
|
|
1052
|
-
throw re;
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
finally {
|
|
1056
|
-
this.exitRule();
|
|
1057
|
-
}
|
|
1058
|
-
return localctx;
|
|
1059
|
-
}
|
|
1060
|
-
at_to_multiple_line_expr() {
|
|
1061
|
-
let localctx = new At_to_multiple_line_exprContext(this, this._ctx, this.state);
|
|
1062
|
-
this.enterRule(localctx, 28, CircuitScriptParser.RULE_at_to_multiple_line_expr);
|
|
1063
|
-
let _la;
|
|
1064
|
-
try {
|
|
1065
|
-
this.enterOuterAlt(localctx, 1);
|
|
1066
|
-
{
|
|
1067
|
-
this.state = 223;
|
|
1068
|
-
this.pin_select_expr2();
|
|
1069
|
-
this.state = 224;
|
|
1070
|
-
this.match(CircuitScriptParser.T__0);
|
|
1071
|
-
this.state = 225;
|
|
1072
|
-
this.at_to_multiple_line_expr_to_pin();
|
|
1073
|
-
this.state = 230;
|
|
1074
|
-
this._errHandler.sync(this);
|
|
1075
|
-
_la = this._input.LA(1);
|
|
1076
|
-
while (_la === 2) {
|
|
1077
|
-
{
|
|
1078
|
-
{
|
|
1079
|
-
this.state = 226;
|
|
1080
|
-
this.match(CircuitScriptParser.T__1);
|
|
1081
|
-
this.state = 227;
|
|
1082
|
-
this.at_to_multiple_line_expr_to_pin();
|
|
1083
|
-
}
|
|
1084
|
-
}
|
|
1085
|
-
this.state = 232;
|
|
1086
|
-
this._errHandler.sync(this);
|
|
1087
|
-
_la = this._input.LA(1);
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
catch (re) {
|
|
1092
|
-
if (re instanceof RecognitionException) {
|
|
1093
|
-
localctx.exception = re;
|
|
1094
|
-
this._errHandler.reportError(this, re);
|
|
1095
|
-
this._errHandler.recover(this, re);
|
|
1096
|
-
}
|
|
1097
|
-
else {
|
|
1098
|
-
throw re;
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
finally {
|
|
1102
|
-
this.exitRule();
|
|
1103
|
-
}
|
|
1104
|
-
return localctx;
|
|
1105
|
-
}
|
|
1106
|
-
at_to_multiple_line_expr_to_pin() {
|
|
1107
|
-
let localctx = new At_to_multiple_line_expr_to_pinContext(this, this._ctx, this.state);
|
|
1108
|
-
this.enterRule(localctx, 30, CircuitScriptParser.RULE_at_to_multiple_line_expr_to_pin);
|
|
1109
|
-
let _la;
|
|
1110
|
-
try {
|
|
1111
|
-
this.enterOuterAlt(localctx, 1);
|
|
1112
|
-
{
|
|
1113
|
-
this.state = 233;
|
|
1114
|
-
_la = this._input.LA(1);
|
|
1115
|
-
if (!(_la === 35 || _la === 38)) {
|
|
1116
|
-
this._errHandler.recoverInline(this);
|
|
1117
|
-
}
|
|
1118
|
-
else {
|
|
1119
|
-
this._errHandler.reportMatch(this);
|
|
1120
|
-
this.consume();
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
catch (re) {
|
|
1125
|
-
if (re instanceof RecognitionException) {
|
|
1126
|
-
localctx.exception = re;
|
|
1127
|
-
this._errHandler.reportError(this, re);
|
|
1128
|
-
this._errHandler.recover(this, re);
|
|
1129
|
-
}
|
|
1130
|
-
else {
|
|
1131
|
-
throw re;
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
finally {
|
|
1135
|
-
this.exitRule();
|
|
1136
|
-
}
|
|
1137
|
-
return localctx;
|
|
1138
|
-
}
|
|
1139
|
-
at_block() {
|
|
1140
|
-
let localctx = new At_blockContext(this, this._ctx, this.state);
|
|
1141
|
-
this.enterRule(localctx, 32, CircuitScriptParser.RULE_at_block);
|
|
1142
|
-
let _la;
|
|
1143
|
-
try {
|
|
1144
|
-
this.enterOuterAlt(localctx, 1);
|
|
1145
|
-
{
|
|
1146
|
-
this.state = 235;
|
|
1147
|
-
this.at_component_expr();
|
|
1148
|
-
this.state = 236;
|
|
1149
|
-
this.match(CircuitScriptParser.T__0);
|
|
1150
|
-
this.state = 237;
|
|
1151
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1152
|
-
this.state = 238;
|
|
1153
|
-
this.match(CircuitScriptParser.INDENT);
|
|
1154
|
-
this.state = 241;
|
|
1155
|
-
this._errHandler.sync(this);
|
|
1156
|
-
_la = this._input.LA(1);
|
|
1157
|
-
do {
|
|
1158
|
-
{
|
|
1159
|
-
this.state = 241;
|
|
1160
|
-
this._errHandler.sync(this);
|
|
1161
|
-
switch (this._input.LA(1)) {
|
|
1162
|
-
case 45:
|
|
1163
|
-
{
|
|
1164
|
-
this.state = 239;
|
|
1165
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1166
|
-
}
|
|
1167
|
-
break;
|
|
1168
|
-
case 4:
|
|
1169
|
-
case 8:
|
|
1170
|
-
case 9:
|
|
1171
|
-
case 10:
|
|
1172
|
-
case 14:
|
|
1173
|
-
case 16:
|
|
1174
|
-
case 17:
|
|
1175
|
-
case 18:
|
|
1176
|
-
case 19:
|
|
1177
|
-
case 20:
|
|
1178
|
-
case 21:
|
|
1179
|
-
case 23:
|
|
1180
|
-
case 24:
|
|
1181
|
-
case 29:
|
|
1182
|
-
case 31:
|
|
1183
|
-
case 37:
|
|
1184
|
-
case 38:
|
|
1185
|
-
case 41:
|
|
1186
|
-
{
|
|
1187
|
-
this.state = 240;
|
|
1188
|
-
this.at_block_expressions();
|
|
1189
|
-
}
|
|
1190
|
-
break;
|
|
1191
|
-
default:
|
|
1192
|
-
throw new NoViableAltException(this);
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
this.state = 243;
|
|
1196
|
-
this._errHandler.sync(this);
|
|
1197
|
-
_la = this._input.LA(1);
|
|
1198
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2713667344) !== 0) || ((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 275) !== 0));
|
|
1199
|
-
this.state = 245;
|
|
1200
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
catch (re) {
|
|
1204
|
-
if (re instanceof RecognitionException) {
|
|
1205
|
-
localctx.exception = re;
|
|
1206
|
-
this._errHandler.reportError(this, re);
|
|
1207
|
-
this._errHandler.recover(this, re);
|
|
1208
|
-
}
|
|
1209
|
-
else {
|
|
1210
|
-
throw re;
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
finally {
|
|
1214
|
-
this.exitRule();
|
|
1215
|
-
}
|
|
1216
|
-
return localctx;
|
|
1217
|
-
}
|
|
1218
|
-
at_block_expressions() {
|
|
1219
|
-
let localctx = new At_block_expressionsContext(this, this._ctx, this.state);
|
|
1220
|
-
this.enterRule(localctx, 34, CircuitScriptParser.RULE_at_block_expressions);
|
|
1221
|
-
try {
|
|
1222
|
-
this.state = 249;
|
|
1223
|
-
this._errHandler.sync(this);
|
|
1224
|
-
switch (this._input.LA(1)) {
|
|
1225
|
-
case 4:
|
|
1226
|
-
case 8:
|
|
1227
|
-
case 9:
|
|
1228
|
-
case 10:
|
|
1229
|
-
case 14:
|
|
1230
|
-
case 16:
|
|
1231
|
-
case 17:
|
|
1232
|
-
case 18:
|
|
1233
|
-
case 19:
|
|
1234
|
-
case 20:
|
|
1235
|
-
case 21:
|
|
1236
|
-
case 23:
|
|
1237
|
-
case 24:
|
|
1238
|
-
case 29:
|
|
1239
|
-
case 31:
|
|
1240
|
-
case 37:
|
|
1241
|
-
this.enterOuterAlt(localctx, 1);
|
|
1242
|
-
{
|
|
1243
|
-
this.state = 247;
|
|
1244
|
-
this.expression();
|
|
1245
|
-
}
|
|
1246
|
-
break;
|
|
1247
|
-
case 38:
|
|
1248
|
-
case 41:
|
|
1249
|
-
this.enterOuterAlt(localctx, 2);
|
|
1250
|
-
{
|
|
1251
|
-
this.state = 248;
|
|
1252
|
-
this.at_block_pin_expr();
|
|
1253
|
-
}
|
|
1254
|
-
break;
|
|
1255
|
-
default:
|
|
1256
|
-
throw new NoViableAltException(this);
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
catch (re) {
|
|
1260
|
-
if (re instanceof RecognitionException) {
|
|
1261
|
-
localctx.exception = re;
|
|
1262
|
-
this._errHandler.reportError(this, re);
|
|
1263
|
-
this._errHandler.recover(this, re);
|
|
1264
|
-
}
|
|
1265
|
-
else {
|
|
1266
|
-
throw re;
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
finally {
|
|
1270
|
-
this.exitRule();
|
|
1271
|
-
}
|
|
1272
|
-
return localctx;
|
|
1273
|
-
}
|
|
1274
|
-
at_block_pin_expr() {
|
|
1275
|
-
let localctx = new At_block_pin_exprContext(this, this._ctx, this.state);
|
|
1276
|
-
this.enterRule(localctx, 36, CircuitScriptParser.RULE_at_block_pin_expr);
|
|
1277
|
-
try {
|
|
1278
|
-
this.enterOuterAlt(localctx, 1);
|
|
1279
|
-
{
|
|
1280
|
-
this.state = 251;
|
|
1281
|
-
this.pin_select_expr2();
|
|
1282
|
-
this.state = 252;
|
|
1283
|
-
this.match(CircuitScriptParser.T__0);
|
|
1284
|
-
this.state = 255;
|
|
1285
|
-
this._errHandler.sync(this);
|
|
1286
|
-
switch (this._input.LA(1)) {
|
|
1287
|
-
case 4:
|
|
1288
|
-
case 8:
|
|
1289
|
-
case 9:
|
|
1290
|
-
case 10:
|
|
1291
|
-
case 14:
|
|
1292
|
-
case 16:
|
|
1293
|
-
case 17:
|
|
1294
|
-
case 18:
|
|
1295
|
-
case 19:
|
|
1296
|
-
case 20:
|
|
1297
|
-
case 21:
|
|
1298
|
-
case 23:
|
|
1299
|
-
case 24:
|
|
1300
|
-
case 29:
|
|
1301
|
-
case 31:
|
|
1302
|
-
case 35:
|
|
1303
|
-
case 37:
|
|
1304
|
-
{
|
|
1305
|
-
this.state = 253;
|
|
1306
|
-
this.at_block_pin_expression_simple();
|
|
1307
|
-
}
|
|
1308
|
-
break;
|
|
1309
|
-
case 45:
|
|
1310
|
-
{
|
|
1311
|
-
this.state = 254;
|
|
1312
|
-
this.at_block_pin_expression_complex();
|
|
1313
|
-
}
|
|
1314
|
-
break;
|
|
1315
|
-
default:
|
|
1316
|
-
throw new NoViableAltException(this);
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1320
|
-
catch (re) {
|
|
1321
|
-
if (re instanceof RecognitionException) {
|
|
1322
|
-
localctx.exception = re;
|
|
1323
|
-
this._errHandler.reportError(this, re);
|
|
1324
|
-
this._errHandler.recover(this, re);
|
|
1325
|
-
}
|
|
1326
|
-
else {
|
|
1327
|
-
throw re;
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
finally {
|
|
1331
|
-
this.exitRule();
|
|
1332
|
-
}
|
|
1333
|
-
return localctx;
|
|
1334
|
-
}
|
|
1335
|
-
at_block_pin_expression_simple() {
|
|
1336
|
-
let localctx = new At_block_pin_expression_simpleContext(this, this._ctx, this.state);
|
|
1337
|
-
this.enterRule(localctx, 38, CircuitScriptParser.RULE_at_block_pin_expression_simple);
|
|
1338
|
-
try {
|
|
1339
|
-
this.enterOuterAlt(localctx, 1);
|
|
1340
|
-
{
|
|
1341
|
-
this.state = 259;
|
|
1342
|
-
this._errHandler.sync(this);
|
|
1343
|
-
switch (this._input.LA(1)) {
|
|
1344
|
-
case 4:
|
|
1345
|
-
case 8:
|
|
1346
|
-
case 9:
|
|
1347
|
-
case 10:
|
|
1348
|
-
case 14:
|
|
1349
|
-
case 16:
|
|
1350
|
-
case 17:
|
|
1351
|
-
case 18:
|
|
1352
|
-
case 19:
|
|
1353
|
-
case 20:
|
|
1354
|
-
case 21:
|
|
1355
|
-
case 23:
|
|
1356
|
-
case 24:
|
|
1357
|
-
case 29:
|
|
1358
|
-
case 31:
|
|
1359
|
-
case 37:
|
|
1360
|
-
{
|
|
1361
|
-
this.state = 257;
|
|
1362
|
-
this.expression();
|
|
1363
|
-
}
|
|
1364
|
-
break;
|
|
1365
|
-
case 35:
|
|
1366
|
-
{
|
|
1367
|
-
this.state = 258;
|
|
1368
|
-
this.match(CircuitScriptParser.NOT_CONNECTED);
|
|
1369
|
-
}
|
|
1370
|
-
break;
|
|
1371
|
-
default:
|
|
1372
|
-
throw new NoViableAltException(this);
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
catch (re) {
|
|
1377
|
-
if (re instanceof RecognitionException) {
|
|
1378
|
-
localctx.exception = re;
|
|
1379
|
-
this._errHandler.reportError(this, re);
|
|
1380
|
-
this._errHandler.recover(this, re);
|
|
1381
|
-
}
|
|
1382
|
-
else {
|
|
1383
|
-
throw re;
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
finally {
|
|
1387
|
-
this.exitRule();
|
|
1388
|
-
}
|
|
1389
|
-
return localctx;
|
|
1390
|
-
}
|
|
1391
|
-
at_block_pin_expression_complex() {
|
|
1392
|
-
let localctx = new At_block_pin_expression_complexContext(this, this._ctx, this.state);
|
|
1393
|
-
this.enterRule(localctx, 40, CircuitScriptParser.RULE_at_block_pin_expression_complex);
|
|
1394
|
-
let _la;
|
|
1395
|
-
try {
|
|
1396
|
-
this.enterOuterAlt(localctx, 1);
|
|
1397
|
-
{
|
|
1398
|
-
this.state = 261;
|
|
1399
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1400
|
-
this.state = 262;
|
|
1401
|
-
this.match(CircuitScriptParser.INDENT);
|
|
1402
|
-
this.state = 265;
|
|
1403
|
-
this._errHandler.sync(this);
|
|
1404
|
-
_la = this._input.LA(1);
|
|
1405
|
-
do {
|
|
1406
|
-
{
|
|
1407
|
-
this.state = 265;
|
|
1408
|
-
this._errHandler.sync(this);
|
|
1409
|
-
switch (this._input.LA(1)) {
|
|
1410
|
-
case 45:
|
|
1411
|
-
{
|
|
1412
|
-
this.state = 263;
|
|
1413
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
1414
|
-
}
|
|
1415
|
-
break;
|
|
1416
|
-
case 4:
|
|
1417
|
-
case 8:
|
|
1418
|
-
case 9:
|
|
1419
|
-
case 10:
|
|
1420
|
-
case 14:
|
|
1421
|
-
case 16:
|
|
1422
|
-
case 17:
|
|
1423
|
-
case 18:
|
|
1424
|
-
case 19:
|
|
1425
|
-
case 20:
|
|
1426
|
-
case 21:
|
|
1427
|
-
case 23:
|
|
1428
|
-
case 24:
|
|
1429
|
-
case 29:
|
|
1430
|
-
case 31:
|
|
1431
|
-
case 37:
|
|
1432
|
-
{
|
|
1433
|
-
this.state = 264;
|
|
1434
|
-
this.expression();
|
|
1435
|
-
}
|
|
1436
|
-
break;
|
|
1437
|
-
default:
|
|
1438
|
-
throw new NoViableAltException(this);
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
this.state = 267;
|
|
1442
|
-
this._errHandler.sync(this);
|
|
1443
|
-
_la = this._input.LA(1);
|
|
1444
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2713667344) !== 0) || _la === 37 || _la === 45);
|
|
1445
|
-
this.state = 269;
|
|
1446
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
catch (re) {
|
|
1450
|
-
if (re instanceof RecognitionException) {
|
|
1451
|
-
localctx.exception = re;
|
|
1452
|
-
this._errHandler.reportError(this, re);
|
|
1453
|
-
this._errHandler.recover(this, re);
|
|
1454
|
-
}
|
|
1455
|
-
else {
|
|
1456
|
-
throw re;
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
finally {
|
|
1460
|
-
this.exitRule();
|
|
1461
|
-
}
|
|
1462
|
-
return localctx;
|
|
1463
|
-
}
|
|
1464
|
-
break_keyword() {
|
|
1465
|
-
let localctx = new Break_keywordContext(this, this._ctx, this.state);
|
|
1466
|
-
this.enterRule(localctx, 42, CircuitScriptParser.RULE_break_keyword);
|
|
1467
|
-
try {
|
|
1468
|
-
this.enterOuterAlt(localctx, 1);
|
|
1469
|
-
{
|
|
1470
|
-
this.state = 271;
|
|
1471
|
-
this.match(CircuitScriptParser.Break);
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
catch (re) {
|
|
1475
|
-
if (re instanceof RecognitionException) {
|
|
1476
|
-
localctx.exception = re;
|
|
1477
|
-
this._errHandler.reportError(this, re);
|
|
1478
|
-
this._errHandler.recover(this, re);
|
|
1479
|
-
}
|
|
1480
|
-
else {
|
|
1481
|
-
throw re;
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
finally {
|
|
1485
|
-
this.exitRule();
|
|
1486
|
-
}
|
|
1487
|
-
return localctx;
|
|
1488
|
-
}
|
|
1489
|
-
assignment_expr() {
|
|
1490
|
-
let localctx = new Assignment_exprContext(this, this._ctx, this.state);
|
|
1491
|
-
this.enterRule(localctx, 44, CircuitScriptParser.RULE_assignment_expr);
|
|
1492
|
-
try {
|
|
1493
|
-
this.enterOuterAlt(localctx, 1);
|
|
1494
|
-
{
|
|
1495
|
-
this.state = 273;
|
|
1496
|
-
this.atom_expr();
|
|
1497
|
-
this.state = 274;
|
|
1498
|
-
this.match(CircuitScriptParser.T__2);
|
|
1499
|
-
this.state = 275;
|
|
1500
|
-
this.data_expr(0);
|
|
1501
|
-
}
|
|
1502
|
-
}
|
|
1503
|
-
catch (re) {
|
|
1504
|
-
if (re instanceof RecognitionException) {
|
|
1505
|
-
localctx.exception = re;
|
|
1506
|
-
this._errHandler.reportError(this, re);
|
|
1507
|
-
this._errHandler.recover(this, re);
|
|
1508
|
-
}
|
|
1509
|
-
else {
|
|
1510
|
-
throw re;
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
finally {
|
|
1514
|
-
this.exitRule();
|
|
1515
|
-
}
|
|
1516
|
-
return localctx;
|
|
1517
|
-
}
|
|
1518
|
-
keyword_assignment_expr() {
|
|
1519
|
-
let localctx = new Keyword_assignment_exprContext(this, this._ctx, this.state);
|
|
1520
|
-
this.enterRule(localctx, 46, CircuitScriptParser.RULE_keyword_assignment_expr);
|
|
1521
|
-
try {
|
|
1522
|
-
this.enterOuterAlt(localctx, 1);
|
|
1523
|
-
{
|
|
1524
|
-
this.state = 277;
|
|
1525
|
-
this.match(CircuitScriptParser.ID);
|
|
1526
|
-
this.state = 278;
|
|
1527
|
-
this.match(CircuitScriptParser.T__2);
|
|
1528
|
-
this.state = 279;
|
|
1529
|
-
this.data_expr(0);
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
catch (re) {
|
|
1533
|
-
if (re instanceof RecognitionException) {
|
|
1534
|
-
localctx.exception = re;
|
|
1535
|
-
this._errHandler.reportError(this, re);
|
|
1536
|
-
this._errHandler.recover(this, re);
|
|
1537
|
-
}
|
|
1538
|
-
else {
|
|
1539
|
-
throw re;
|
|
1540
|
-
}
|
|
1541
|
-
}
|
|
1542
|
-
finally {
|
|
1543
|
-
this.exitRule();
|
|
1544
|
-
}
|
|
1545
|
-
return localctx;
|
|
1546
|
-
}
|
|
1547
|
-
parameters() {
|
|
1548
|
-
let localctx = new ParametersContext(this, this._ctx, this.state);
|
|
1549
|
-
this.enterRule(localctx, 48, CircuitScriptParser.RULE_parameters);
|
|
1550
|
-
let _la;
|
|
1551
|
-
try {
|
|
1552
|
-
let _alt;
|
|
1553
|
-
this.state = 304;
|
|
1554
|
-
this._errHandler.sync(this);
|
|
1555
|
-
switch (this._interp.adaptivePredict(this._input, 31, this._ctx)) {
|
|
1556
|
-
case 1:
|
|
1557
|
-
this.enterOuterAlt(localctx, 1);
|
|
1558
|
-
{
|
|
1559
|
-
{
|
|
1560
|
-
this.state = 281;
|
|
1561
|
-
this.data_expr(0);
|
|
1562
|
-
this.state = 286;
|
|
1563
|
-
this._errHandler.sync(this);
|
|
1564
|
-
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
1565
|
-
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
|
|
1566
|
-
if (_alt === 1) {
|
|
1567
|
-
{
|
|
1568
|
-
{
|
|
1569
|
-
this.state = 282;
|
|
1570
|
-
this.match(CircuitScriptParser.T__1);
|
|
1571
|
-
this.state = 283;
|
|
1572
|
-
this.data_expr(0);
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
this.state = 288;
|
|
1577
|
-
this._errHandler.sync(this);
|
|
1578
|
-
_alt = this._interp.adaptivePredict(this._input, 28, this._ctx);
|
|
1579
|
-
}
|
|
1580
|
-
this.state = 293;
|
|
1581
|
-
this._errHandler.sync(this);
|
|
1582
|
-
_la = this._input.LA(1);
|
|
1583
|
-
while (_la === 2) {
|
|
1584
|
-
{
|
|
1585
|
-
{
|
|
1586
|
-
this.state = 289;
|
|
1587
|
-
this.match(CircuitScriptParser.T__1);
|
|
1588
|
-
this.state = 290;
|
|
1589
|
-
this.keyword_assignment_expr();
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
this.state = 295;
|
|
1593
|
-
this._errHandler.sync(this);
|
|
1594
|
-
_la = this._input.LA(1);
|
|
1595
|
-
}
|
|
1596
|
-
}
|
|
1597
|
-
}
|
|
1598
|
-
break;
|
|
1599
|
-
case 2:
|
|
1600
|
-
this.enterOuterAlt(localctx, 2);
|
|
1601
|
-
{
|
|
1602
|
-
{
|
|
1603
|
-
this.state = 296;
|
|
1604
|
-
this.keyword_assignment_expr();
|
|
1605
|
-
this.state = 301;
|
|
1606
|
-
this._errHandler.sync(this);
|
|
1607
|
-
_la = this._input.LA(1);
|
|
1608
|
-
while (_la === 2) {
|
|
1609
|
-
{
|
|
1610
|
-
{
|
|
1611
|
-
this.state = 297;
|
|
1612
|
-
this.match(CircuitScriptParser.T__1);
|
|
1613
|
-
this.state = 298;
|
|
1614
|
-
this.keyword_assignment_expr();
|
|
1615
|
-
}
|
|
1616
|
-
}
|
|
1617
|
-
this.state = 303;
|
|
1618
|
-
this._errHandler.sync(this);
|
|
1619
|
-
_la = this._input.LA(1);
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
break;
|
|
1624
|
-
}
|
|
1625
|
-
}
|
|
1626
|
-
catch (re) {
|
|
1627
|
-
if (re instanceof RecognitionException) {
|
|
1628
|
-
localctx.exception = re;
|
|
1629
|
-
this._errHandler.reportError(this, re);
|
|
1630
|
-
this._errHandler.recover(this, re);
|
|
1631
|
-
}
|
|
1632
|
-
else {
|
|
1633
|
-
throw re;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
finally {
|
|
1637
|
-
this.exitRule();
|
|
1638
|
-
}
|
|
1639
|
-
return localctx;
|
|
1640
|
-
}
|
|
1641
|
-
property_set_expr() {
|
|
1642
|
-
let localctx = new Property_set_exprContext(this, this._ctx, this.state);
|
|
1643
|
-
this.enterRule(localctx, 50, CircuitScriptParser.RULE_property_set_expr);
|
|
1644
|
-
try {
|
|
1645
|
-
this.enterOuterAlt(localctx, 1);
|
|
1646
|
-
{
|
|
1647
|
-
this.state = 306;
|
|
1648
|
-
this.atom_expr();
|
|
1649
|
-
this.state = 307;
|
|
1650
|
-
this.match(CircuitScriptParser.T__2);
|
|
1651
|
-
this.state = 308;
|
|
1652
|
-
this.data_expr(0);
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
catch (re) {
|
|
1656
|
-
if (re instanceof RecognitionException) {
|
|
1657
|
-
localctx.exception = re;
|
|
1658
|
-
this._errHandler.reportError(this, re);
|
|
1659
|
-
this._errHandler.recover(this, re);
|
|
1660
|
-
}
|
|
1661
|
-
else {
|
|
1662
|
-
throw re;
|
|
1663
|
-
}
|
|
1664
|
-
}
|
|
1665
|
-
finally {
|
|
1666
|
-
this.exitRule();
|
|
1667
|
-
}
|
|
1668
|
-
return localctx;
|
|
1669
|
-
}
|
|
1670
|
-
double_dot_property_set_expr() {
|
|
1671
|
-
let localctx = new Double_dot_property_set_exprContext(this, this._ctx, this.state);
|
|
1672
|
-
this.enterRule(localctx, 52, CircuitScriptParser.RULE_double_dot_property_set_expr);
|
|
1673
|
-
try {
|
|
1674
|
-
this.enterOuterAlt(localctx, 1);
|
|
1675
|
-
{
|
|
1676
|
-
this.state = 310;
|
|
1677
|
-
this.match(CircuitScriptParser.T__3);
|
|
1678
|
-
this.state = 311;
|
|
1679
|
-
this.match(CircuitScriptParser.ID);
|
|
1680
|
-
this.state = 312;
|
|
1681
|
-
this.match(CircuitScriptParser.T__2);
|
|
1682
|
-
this.state = 313;
|
|
1683
|
-
this.data_expr(0);
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
catch (re) {
|
|
1687
|
-
if (re instanceof RecognitionException) {
|
|
1688
|
-
localctx.exception = re;
|
|
1689
|
-
this._errHandler.reportError(this, re);
|
|
1690
|
-
this._errHandler.recover(this, re);
|
|
1691
|
-
}
|
|
1692
|
-
else {
|
|
1693
|
-
throw re;
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
finally {
|
|
1697
|
-
this.exitRule();
|
|
1698
|
-
}
|
|
1699
|
-
return localctx;
|
|
1700
|
-
}
|
|
1701
|
-
data_expr(_p) {
|
|
1702
|
-
if (_p === undefined) {
|
|
1703
|
-
_p = 0;
|
|
1704
|
-
}
|
|
1705
|
-
let _parentctx = this._ctx;
|
|
1706
|
-
let _parentState = this.state;
|
|
1707
|
-
let localctx = new Data_exprContext(this, this._ctx, _parentState);
|
|
1708
|
-
let _prevctx = localctx;
|
|
1709
|
-
let _startState = 54;
|
|
1710
|
-
this.enterRecursionRule(localctx, 54, CircuitScriptParser.RULE_data_expr, _p);
|
|
1711
|
-
let _la;
|
|
1712
|
-
try {
|
|
1713
|
-
let _alt;
|
|
1714
|
-
this.enterOuterAlt(localctx, 1);
|
|
1715
|
-
{
|
|
1716
|
-
this.state = 329;
|
|
1717
|
-
this._errHandler.sync(this);
|
|
1718
|
-
switch (this._interp.adaptivePredict(this._input, 33, this._ctx)) {
|
|
1719
|
-
case 1:
|
|
1720
|
-
{
|
|
1721
|
-
localctx = new RoundedBracketsExprContext(this, localctx);
|
|
1722
|
-
this._ctx = localctx;
|
|
1723
|
-
_prevctx = localctx;
|
|
1724
|
-
this.state = 316;
|
|
1725
|
-
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
1726
|
-
this.state = 317;
|
|
1727
|
-
this.data_expr(0);
|
|
1728
|
-
this.state = 318;
|
|
1729
|
-
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
1730
|
-
}
|
|
1731
|
-
break;
|
|
1732
|
-
case 2:
|
|
1733
|
-
{
|
|
1734
|
-
localctx = new ValueAtomExprContext(this, localctx);
|
|
1735
|
-
this._ctx = localctx;
|
|
1736
|
-
_prevctx = localctx;
|
|
1737
|
-
this.state = 322;
|
|
1738
|
-
this._errHandler.sync(this);
|
|
1739
|
-
switch (this._input.LA(1)) {
|
|
1740
|
-
case 6:
|
|
1741
|
-
case 30:
|
|
1742
|
-
case 36:
|
|
1743
|
-
case 38:
|
|
1744
|
-
case 39:
|
|
1745
|
-
case 40:
|
|
1746
|
-
case 41:
|
|
1747
|
-
case 42:
|
|
1748
|
-
{
|
|
1749
|
-
this.state = 320;
|
|
1750
|
-
this.value_expr();
|
|
1751
|
-
}
|
|
1752
|
-
break;
|
|
1753
|
-
case 29:
|
|
1754
|
-
case 31:
|
|
1755
|
-
case 37:
|
|
1756
|
-
{
|
|
1757
|
-
this.state = 321;
|
|
1758
|
-
this.atom_expr();
|
|
1759
|
-
}
|
|
1760
|
-
break;
|
|
1761
|
-
default:
|
|
1762
|
-
throw new NoViableAltException(this);
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
break;
|
|
1766
|
-
case 3:
|
|
1767
|
-
{
|
|
1768
|
-
localctx = new UnaryOperatorExprContext(this, localctx);
|
|
1769
|
-
this._ctx = localctx;
|
|
1770
|
-
_prevctx = localctx;
|
|
1771
|
-
this.state = 324;
|
|
1772
|
-
this.unary_operator();
|
|
1773
|
-
this.state = 325;
|
|
1774
|
-
this.data_expr(6);
|
|
1775
|
-
}
|
|
1776
|
-
break;
|
|
1777
|
-
case 4:
|
|
1778
|
-
{
|
|
1779
|
-
localctx = new DataExprContext(this, localctx);
|
|
1780
|
-
this._ctx = localctx;
|
|
1781
|
-
_prevctx = localctx;
|
|
1782
|
-
this.state = 327;
|
|
1783
|
-
this.create_component_expr();
|
|
1784
|
-
}
|
|
1785
|
-
break;
|
|
1786
|
-
case 5:
|
|
1787
|
-
{
|
|
1788
|
-
localctx = new DataExprContext(this, localctx);
|
|
1789
|
-
this._ctx = localctx;
|
|
1790
|
-
_prevctx = localctx;
|
|
1791
|
-
this.state = 328;
|
|
1792
|
-
this.create_graphic_expr();
|
|
1793
|
-
}
|
|
1794
|
-
break;
|
|
1795
|
-
}
|
|
1796
|
-
this._ctx.stop = this._input.LT(-1);
|
|
1797
|
-
this.state = 343;
|
|
1798
|
-
this._errHandler.sync(this);
|
|
1799
|
-
_alt = this._interp.adaptivePredict(this._input, 35, this._ctx);
|
|
1800
|
-
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
|
|
1801
|
-
if (_alt === 1) {
|
|
1802
|
-
if (this._parseListeners != null) {
|
|
1803
|
-
this.triggerExitRuleEvent();
|
|
1804
|
-
}
|
|
1805
|
-
_prevctx = localctx;
|
|
1806
|
-
{
|
|
1807
|
-
this.state = 341;
|
|
1808
|
-
this._errHandler.sync(this);
|
|
1809
|
-
switch (this._interp.adaptivePredict(this._input, 34, this._ctx)) {
|
|
1810
|
-
case 1:
|
|
1811
|
-
{
|
|
1812
|
-
localctx = new MultiplyExprContext(this, new Data_exprContext(this, _parentctx, _parentState));
|
|
1813
|
-
this.pushNewRecursionContext(localctx, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1814
|
-
this.state = 331;
|
|
1815
|
-
if (!(this.precpred(this._ctx, 5))) {
|
|
1816
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");
|
|
1817
|
-
}
|
|
1818
|
-
this.state = 332;
|
|
1819
|
-
_la = this._input.LA(1);
|
|
1820
|
-
if (!(_la === 31 || _la === 32)) {
|
|
1821
|
-
this._errHandler.recoverInline(this);
|
|
1822
|
-
}
|
|
1823
|
-
else {
|
|
1824
|
-
this._errHandler.reportMatch(this);
|
|
1825
|
-
this.consume();
|
|
1826
|
-
}
|
|
1827
|
-
this.state = 333;
|
|
1828
|
-
this.data_expr(6);
|
|
1829
|
-
}
|
|
1830
|
-
break;
|
|
1831
|
-
case 2:
|
|
1832
|
-
{
|
|
1833
|
-
localctx = new AdditionExprContext(this, new Data_exprContext(this, _parentctx, _parentState));
|
|
1834
|
-
this.pushNewRecursionContext(localctx, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1835
|
-
this.state = 334;
|
|
1836
|
-
if (!(this.precpred(this._ctx, 4))) {
|
|
1837
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");
|
|
1838
|
-
}
|
|
1839
|
-
this.state = 335;
|
|
1840
|
-
_la = this._input.LA(1);
|
|
1841
|
-
if (!(_la === 29 || _la === 30)) {
|
|
1842
|
-
this._errHandler.recoverInline(this);
|
|
1843
|
-
}
|
|
1844
|
-
else {
|
|
1845
|
-
this._errHandler.reportMatch(this);
|
|
1846
|
-
this.consume();
|
|
1847
|
-
}
|
|
1848
|
-
this.state = 336;
|
|
1849
|
-
this.data_expr(5);
|
|
1850
|
-
}
|
|
1851
|
-
break;
|
|
1852
|
-
case 3:
|
|
1853
|
-
{
|
|
1854
|
-
localctx = new BinaryOperatorExprContext(this, new Data_exprContext(this, _parentctx, _parentState));
|
|
1855
|
-
this.pushNewRecursionContext(localctx, _startState, CircuitScriptParser.RULE_data_expr);
|
|
1856
|
-
this.state = 337;
|
|
1857
|
-
if (!(this.precpred(this._ctx, 3))) {
|
|
1858
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");
|
|
1859
|
-
}
|
|
1860
|
-
this.state = 338;
|
|
1861
|
-
this.binary_operator();
|
|
1862
|
-
this.state = 339;
|
|
1863
|
-
this.data_expr(4);
|
|
1864
|
-
}
|
|
1865
|
-
break;
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
this.state = 345;
|
|
1870
|
-
this._errHandler.sync(this);
|
|
1871
|
-
_alt = this._interp.adaptivePredict(this._input, 35, this._ctx);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
catch (re) {
|
|
1876
|
-
if (re instanceof RecognitionException) {
|
|
1877
|
-
localctx.exception = re;
|
|
1878
|
-
this._errHandler.reportError(this, re);
|
|
1879
|
-
this._errHandler.recover(this, re);
|
|
1880
|
-
}
|
|
1881
|
-
else {
|
|
1882
|
-
throw re;
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
finally {
|
|
1886
|
-
this.unrollRecursionContexts(_parentctx);
|
|
1887
|
-
}
|
|
1888
|
-
return localctx;
|
|
1889
|
-
}
|
|
1890
|
-
binary_operator() {
|
|
1891
|
-
let localctx = new Binary_operatorContext(this, this._ctx, this.state);
|
|
1892
|
-
this.enterRule(localctx, 56, CircuitScriptParser.RULE_binary_operator);
|
|
1893
|
-
let _la;
|
|
1894
|
-
try {
|
|
1895
|
-
this.enterOuterAlt(localctx, 1);
|
|
1896
|
-
{
|
|
1897
|
-
this.state = 346;
|
|
1898
|
-
_la = this._input.LA(1);
|
|
1899
|
-
if (!(_la === 27 || _la === 28)) {
|
|
1900
|
-
this._errHandler.recoverInline(this);
|
|
1901
|
-
}
|
|
1902
|
-
else {
|
|
1903
|
-
this._errHandler.reportMatch(this);
|
|
1904
|
-
this.consume();
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
catch (re) {
|
|
1909
|
-
if (re instanceof RecognitionException) {
|
|
1910
|
-
localctx.exception = re;
|
|
1911
|
-
this._errHandler.reportError(this, re);
|
|
1912
|
-
this._errHandler.recover(this, re);
|
|
1913
|
-
}
|
|
1914
|
-
else {
|
|
1915
|
-
throw re;
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
finally {
|
|
1919
|
-
this.exitRule();
|
|
1920
|
-
}
|
|
1921
|
-
return localctx;
|
|
1922
|
-
}
|
|
1923
|
-
unary_operator() {
|
|
1924
|
-
let localctx = new Unary_operatorContext(this, this._ctx, this.state);
|
|
1925
|
-
this.enterRule(localctx, 58, CircuitScriptParser.RULE_unary_operator);
|
|
1926
|
-
let _la;
|
|
1927
|
-
try {
|
|
1928
|
-
this.enterOuterAlt(localctx, 1);
|
|
1929
|
-
{
|
|
1930
|
-
this.state = 348;
|
|
1931
|
-
_la = this._input.LA(1);
|
|
1932
|
-
if (!(_la === 26 || _la === 30)) {
|
|
1933
|
-
this._errHandler.recoverInline(this);
|
|
1934
|
-
}
|
|
1935
|
-
else {
|
|
1936
|
-
this._errHandler.reportMatch(this);
|
|
1937
|
-
this.consume();
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
}
|
|
1941
|
-
catch (re) {
|
|
1942
|
-
if (re instanceof RecognitionException) {
|
|
1943
|
-
localctx.exception = re;
|
|
1944
|
-
this._errHandler.reportError(this, re);
|
|
1945
|
-
this._errHandler.recover(this, re);
|
|
1946
|
-
}
|
|
1947
|
-
else {
|
|
1948
|
-
throw re;
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
finally {
|
|
1952
|
-
this.exitRule();
|
|
1953
|
-
}
|
|
1954
|
-
return localctx;
|
|
1955
|
-
}
|
|
1956
|
-
value_expr() {
|
|
1957
|
-
let localctx = new Value_exprContext(this, this._ctx, this.state);
|
|
1958
|
-
this.enterRule(localctx, 60, CircuitScriptParser.RULE_value_expr);
|
|
1959
|
-
let _la;
|
|
1960
|
-
try {
|
|
1961
|
-
this.state = 355;
|
|
1962
|
-
this._errHandler.sync(this);
|
|
1963
|
-
switch (this._input.LA(1)) {
|
|
1964
|
-
case 30:
|
|
1965
|
-
case 36:
|
|
1966
|
-
case 38:
|
|
1967
|
-
case 39:
|
|
1968
|
-
case 40:
|
|
1969
|
-
case 41:
|
|
1970
|
-
case 42:
|
|
1971
|
-
this.enterOuterAlt(localctx, 1);
|
|
1972
|
-
{
|
|
1973
|
-
{
|
|
1974
|
-
this.state = 351;
|
|
1975
|
-
this._errHandler.sync(this);
|
|
1976
|
-
_la = this._input.LA(1);
|
|
1977
|
-
if (_la === 30) {
|
|
1978
|
-
{
|
|
1979
|
-
this.state = 350;
|
|
1980
|
-
this.match(CircuitScriptParser.Minus);
|
|
1981
|
-
}
|
|
1982
|
-
}
|
|
1983
|
-
this.state = 353;
|
|
1984
|
-
_la = this._input.LA(1);
|
|
1985
|
-
if (!(((((_la - 36)) & ~0x1F) === 0 && ((1 << (_la - 36)) & 125) !== 0))) {
|
|
1986
|
-
this._errHandler.recoverInline(this);
|
|
1987
|
-
}
|
|
1988
|
-
else {
|
|
1989
|
-
this._errHandler.reportMatch(this);
|
|
1990
|
-
this.consume();
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
break;
|
|
1995
|
-
case 6:
|
|
1996
|
-
this.enterOuterAlt(localctx, 2);
|
|
1997
|
-
{
|
|
1998
|
-
this.state = 354;
|
|
1999
|
-
this.blank_expr();
|
|
2000
|
-
}
|
|
2001
|
-
break;
|
|
2002
|
-
default:
|
|
2003
|
-
throw new NoViableAltException(this);
|
|
2004
|
-
}
|
|
2005
|
-
}
|
|
2006
|
-
catch (re) {
|
|
2007
|
-
if (re instanceof RecognitionException) {
|
|
2008
|
-
localctx.exception = re;
|
|
2009
|
-
this._errHandler.reportError(this, re);
|
|
2010
|
-
this._errHandler.recover(this, re);
|
|
2011
|
-
}
|
|
2012
|
-
else {
|
|
2013
|
-
throw re;
|
|
2014
|
-
}
|
|
2015
|
-
}
|
|
2016
|
-
finally {
|
|
2017
|
-
this.exitRule();
|
|
2018
|
-
}
|
|
2019
|
-
return localctx;
|
|
2020
|
-
}
|
|
2021
|
-
function_def_expr() {
|
|
2022
|
-
let localctx = new Function_def_exprContext(this, this._ctx, this.state);
|
|
2023
|
-
this.enterRule(localctx, 62, CircuitScriptParser.RULE_function_def_expr);
|
|
2024
|
-
let _la;
|
|
2025
|
-
try {
|
|
2026
|
-
this.enterOuterAlt(localctx, 1);
|
|
2027
|
-
{
|
|
2028
|
-
this.state = 357;
|
|
2029
|
-
this.match(CircuitScriptParser.Define);
|
|
2030
|
-
this.state = 358;
|
|
2031
|
-
this.match(CircuitScriptParser.ID);
|
|
2032
|
-
this.state = 359;
|
|
2033
|
-
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2034
|
-
this.state = 361;
|
|
2035
|
-
this._errHandler.sync(this);
|
|
2036
|
-
_la = this._input.LA(1);
|
|
2037
|
-
if (_la === 37) {
|
|
2038
|
-
{
|
|
2039
|
-
this.state = 360;
|
|
2040
|
-
this.function_args_expr();
|
|
2041
|
-
}
|
|
2042
|
-
}
|
|
2043
|
-
this.state = 363;
|
|
2044
|
-
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2045
|
-
this.state = 364;
|
|
2046
|
-
this.match(CircuitScriptParser.T__0);
|
|
2047
|
-
this.state = 365;
|
|
2048
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2049
|
-
this.state = 366;
|
|
2050
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2051
|
-
this.state = 369;
|
|
2052
|
-
this._errHandler.sync(this);
|
|
2053
|
-
_la = this._input.LA(1);
|
|
2054
|
-
do {
|
|
2055
|
-
{
|
|
2056
|
-
this.state = 369;
|
|
2057
|
-
this._errHandler.sync(this);
|
|
2058
|
-
switch (this._input.LA(1)) {
|
|
2059
|
-
case 45:
|
|
2060
|
-
{
|
|
2061
|
-
this.state = 367;
|
|
2062
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2063
|
-
}
|
|
2064
|
-
break;
|
|
2065
|
-
case 4:
|
|
2066
|
-
case 8:
|
|
2067
|
-
case 9:
|
|
2068
|
-
case 10:
|
|
2069
|
-
case 14:
|
|
2070
|
-
case 16:
|
|
2071
|
-
case 17:
|
|
2072
|
-
case 18:
|
|
2073
|
-
case 19:
|
|
2074
|
-
case 20:
|
|
2075
|
-
case 21:
|
|
2076
|
-
case 22:
|
|
2077
|
-
case 23:
|
|
2078
|
-
case 24:
|
|
2079
|
-
case 29:
|
|
2080
|
-
case 31:
|
|
2081
|
-
case 37:
|
|
2082
|
-
{
|
|
2083
|
-
this.state = 368;
|
|
2084
|
-
this.function_expr();
|
|
2085
|
-
}
|
|
2086
|
-
break;
|
|
2087
|
-
default:
|
|
2088
|
-
throw new NoViableAltException(this);
|
|
2089
|
-
}
|
|
2090
|
-
}
|
|
2091
|
-
this.state = 371;
|
|
2092
|
-
this._errHandler.sync(this);
|
|
2093
|
-
_la = this._input.LA(1);
|
|
2094
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2717861648) !== 0) || _la === 37 || _la === 45);
|
|
2095
|
-
this.state = 373;
|
|
2096
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
catch (re) {
|
|
2100
|
-
if (re instanceof RecognitionException) {
|
|
2101
|
-
localctx.exception = re;
|
|
2102
|
-
this._errHandler.reportError(this, re);
|
|
2103
|
-
this._errHandler.recover(this, re);
|
|
2104
|
-
}
|
|
2105
|
-
else {
|
|
2106
|
-
throw re;
|
|
2107
|
-
}
|
|
2108
|
-
}
|
|
2109
|
-
finally {
|
|
2110
|
-
this.exitRule();
|
|
2111
|
-
}
|
|
2112
|
-
return localctx;
|
|
2113
|
-
}
|
|
2114
|
-
function_expr() {
|
|
2115
|
-
let localctx = new Function_exprContext(this, this._ctx, this.state);
|
|
2116
|
-
this.enterRule(localctx, 64, CircuitScriptParser.RULE_function_expr);
|
|
2117
|
-
try {
|
|
2118
|
-
this.state = 377;
|
|
2119
|
-
this._errHandler.sync(this);
|
|
2120
|
-
switch (this._input.LA(1)) {
|
|
2121
|
-
case 4:
|
|
2122
|
-
case 8:
|
|
2123
|
-
case 9:
|
|
2124
|
-
case 10:
|
|
2125
|
-
case 14:
|
|
2126
|
-
case 16:
|
|
2127
|
-
case 17:
|
|
2128
|
-
case 18:
|
|
2129
|
-
case 19:
|
|
2130
|
-
case 20:
|
|
2131
|
-
case 21:
|
|
2132
|
-
case 23:
|
|
2133
|
-
case 24:
|
|
2134
|
-
case 29:
|
|
2135
|
-
case 31:
|
|
2136
|
-
case 37:
|
|
2137
|
-
this.enterOuterAlt(localctx, 1);
|
|
2138
|
-
{
|
|
2139
|
-
this.state = 375;
|
|
2140
|
-
this.expression();
|
|
2141
|
-
}
|
|
2142
|
-
break;
|
|
2143
|
-
case 22:
|
|
2144
|
-
this.enterOuterAlt(localctx, 2);
|
|
2145
|
-
{
|
|
2146
|
-
this.state = 376;
|
|
2147
|
-
this.function_return_expr();
|
|
2148
|
-
}
|
|
2149
|
-
break;
|
|
2150
|
-
default:
|
|
2151
|
-
throw new NoViableAltException(this);
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
catch (re) {
|
|
2155
|
-
if (re instanceof RecognitionException) {
|
|
2156
|
-
localctx.exception = re;
|
|
2157
|
-
this._errHandler.reportError(this, re);
|
|
2158
|
-
this._errHandler.recover(this, re);
|
|
2159
|
-
}
|
|
2160
|
-
else {
|
|
2161
|
-
throw re;
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
finally {
|
|
2165
|
-
this.exitRule();
|
|
2166
|
-
}
|
|
2167
|
-
return localctx;
|
|
2168
|
-
}
|
|
2169
|
-
function_args_expr() {
|
|
2170
|
-
let localctx = new Function_args_exprContext(this, this._ctx, this.state);
|
|
2171
|
-
this.enterRule(localctx, 66, CircuitScriptParser.RULE_function_args_expr);
|
|
2172
|
-
let _la;
|
|
2173
|
-
try {
|
|
2174
|
-
let _alt;
|
|
2175
|
-
this.state = 408;
|
|
2176
|
-
this._errHandler.sync(this);
|
|
2177
|
-
switch (this._interp.adaptivePredict(this._input, 45, this._ctx)) {
|
|
2178
|
-
case 1:
|
|
2179
|
-
this.enterOuterAlt(localctx, 1);
|
|
2180
|
-
{
|
|
2181
|
-
this.state = 379;
|
|
2182
|
-
this.match(CircuitScriptParser.ID);
|
|
2183
|
-
this.state = 384;
|
|
2184
|
-
this._errHandler.sync(this);
|
|
2185
|
-
_alt = this._interp.adaptivePredict(this._input, 42, this._ctx);
|
|
2186
|
-
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
|
|
2187
|
-
if (_alt === 1) {
|
|
2188
|
-
{
|
|
2189
|
-
{
|
|
2190
|
-
this.state = 380;
|
|
2191
|
-
this.match(CircuitScriptParser.T__1);
|
|
2192
|
-
this.state = 381;
|
|
2193
|
-
this.match(CircuitScriptParser.ID);
|
|
2194
|
-
}
|
|
2195
|
-
}
|
|
2196
|
-
}
|
|
2197
|
-
this.state = 386;
|
|
2198
|
-
this._errHandler.sync(this);
|
|
2199
|
-
_alt = this._interp.adaptivePredict(this._input, 42, this._ctx);
|
|
2200
|
-
}
|
|
2201
|
-
this.state = 393;
|
|
2202
|
-
this._errHandler.sync(this);
|
|
2203
|
-
_la = this._input.LA(1);
|
|
2204
|
-
while (_la === 2) {
|
|
2205
|
-
{
|
|
2206
|
-
{
|
|
2207
|
-
this.state = 387;
|
|
2208
|
-
this.match(CircuitScriptParser.T__1);
|
|
2209
|
-
this.state = 388;
|
|
2210
|
-
this.match(CircuitScriptParser.ID);
|
|
2211
|
-
this.state = 389;
|
|
2212
|
-
this.match(CircuitScriptParser.T__2);
|
|
2213
|
-
this.state = 390;
|
|
2214
|
-
this.value_expr();
|
|
2215
|
-
}
|
|
2216
|
-
}
|
|
2217
|
-
this.state = 395;
|
|
2218
|
-
this._errHandler.sync(this);
|
|
2219
|
-
_la = this._input.LA(1);
|
|
2220
|
-
}
|
|
2221
|
-
}
|
|
2222
|
-
break;
|
|
2223
|
-
case 2:
|
|
2224
|
-
this.enterOuterAlt(localctx, 2);
|
|
2225
|
-
{
|
|
2226
|
-
this.state = 396;
|
|
2227
|
-
this.match(CircuitScriptParser.ID);
|
|
2228
|
-
this.state = 397;
|
|
2229
|
-
this.match(CircuitScriptParser.T__2);
|
|
2230
|
-
this.state = 398;
|
|
2231
|
-
this.value_expr();
|
|
2232
|
-
this.state = 405;
|
|
2233
|
-
this._errHandler.sync(this);
|
|
2234
|
-
_la = this._input.LA(1);
|
|
2235
|
-
while (_la === 2) {
|
|
2236
|
-
{
|
|
2237
|
-
{
|
|
2238
|
-
this.state = 399;
|
|
2239
|
-
this.match(CircuitScriptParser.T__1);
|
|
2240
|
-
this.state = 400;
|
|
2241
|
-
this.match(CircuitScriptParser.ID);
|
|
2242
|
-
this.state = 401;
|
|
2243
|
-
this.match(CircuitScriptParser.T__2);
|
|
2244
|
-
this.state = 402;
|
|
2245
|
-
this.value_expr();
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
this.state = 407;
|
|
2249
|
-
this._errHandler.sync(this);
|
|
2250
|
-
_la = this._input.LA(1);
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
break;
|
|
2254
|
-
}
|
|
2255
|
-
}
|
|
2256
|
-
catch (re) {
|
|
2257
|
-
if (re instanceof RecognitionException) {
|
|
2258
|
-
localctx.exception = re;
|
|
2259
|
-
this._errHandler.reportError(this, re);
|
|
2260
|
-
this._errHandler.recover(this, re);
|
|
2261
|
-
}
|
|
2262
|
-
else {
|
|
2263
|
-
throw re;
|
|
2264
|
-
}
|
|
2265
|
-
}
|
|
2266
|
-
finally {
|
|
2267
|
-
this.exitRule();
|
|
2268
|
-
}
|
|
2269
|
-
return localctx;
|
|
2270
|
-
}
|
|
2271
|
-
atom_expr() {
|
|
2272
|
-
let localctx = new Atom_exprContext(this, this._ctx, this.state);
|
|
2273
|
-
this.enterRule(localctx, 68, CircuitScriptParser.RULE_atom_expr);
|
|
2274
|
-
let _la;
|
|
2275
|
-
try {
|
|
2276
|
-
let _alt;
|
|
2277
|
-
this.enterOuterAlt(localctx, 1);
|
|
2278
|
-
{
|
|
2279
|
-
this.state = 411;
|
|
2280
|
-
this._errHandler.sync(this);
|
|
2281
|
-
_la = this._input.LA(1);
|
|
2282
|
-
if (_la === 29 || _la === 31) {
|
|
2283
|
-
{
|
|
2284
|
-
this.state = 410;
|
|
2285
|
-
this.net_namespace_expr();
|
|
2286
|
-
}
|
|
2287
|
-
}
|
|
2288
|
-
this.state = 413;
|
|
2289
|
-
this.match(CircuitScriptParser.ID);
|
|
2290
|
-
this.state = 417;
|
|
2291
|
-
this._errHandler.sync(this);
|
|
2292
|
-
_alt = this._interp.adaptivePredict(this._input, 47, this._ctx);
|
|
2293
|
-
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
|
|
2294
|
-
if (_alt === 1) {
|
|
2295
|
-
{
|
|
2296
|
-
{
|
|
2297
|
-
this.state = 414;
|
|
2298
|
-
this.trailer_expr();
|
|
2299
|
-
}
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
this.state = 419;
|
|
2303
|
-
this._errHandler.sync(this);
|
|
2304
|
-
_alt = this._interp.adaptivePredict(this._input, 47, this._ctx);
|
|
2305
|
-
}
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
catch (re) {
|
|
2309
|
-
if (re instanceof RecognitionException) {
|
|
2310
|
-
localctx.exception = re;
|
|
2311
|
-
this._errHandler.reportError(this, re);
|
|
2312
|
-
this._errHandler.recover(this, re);
|
|
2313
|
-
}
|
|
2314
|
-
else {
|
|
2315
|
-
throw re;
|
|
2316
|
-
}
|
|
2317
|
-
}
|
|
2318
|
-
finally {
|
|
2319
|
-
this.exitRule();
|
|
2320
|
-
}
|
|
2321
|
-
return localctx;
|
|
2322
|
-
}
|
|
2323
|
-
trailer_expr() {
|
|
2324
|
-
let localctx = new Trailer_exprContext(this, this._ctx, this.state);
|
|
2325
|
-
this.enterRule(localctx, 70, CircuitScriptParser.RULE_trailer_expr);
|
|
2326
|
-
let _la;
|
|
2327
|
-
try {
|
|
2328
|
-
this.state = 427;
|
|
2329
|
-
this._errHandler.sync(this);
|
|
2330
|
-
switch (this._input.LA(1)) {
|
|
2331
|
-
case 33:
|
|
2332
|
-
this.enterOuterAlt(localctx, 1);
|
|
2333
|
-
{
|
|
2334
|
-
this.state = 420;
|
|
2335
|
-
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2336
|
-
this.state = 422;
|
|
2337
|
-
this._errHandler.sync(this);
|
|
2338
|
-
_la = this._input.LA(1);
|
|
2339
|
-
if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 3825207360) !== 0) || ((((_la - 33)) & ~0x1F) === 0 && ((1 << (_la - 33)) & 1017) !== 0)) {
|
|
2340
|
-
{
|
|
2341
|
-
this.state = 421;
|
|
2342
|
-
this.parameters();
|
|
2343
|
-
}
|
|
2344
|
-
}
|
|
2345
|
-
this.state = 424;
|
|
2346
|
-
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2347
|
-
}
|
|
2348
|
-
break;
|
|
2349
|
-
case 5:
|
|
2350
|
-
this.enterOuterAlt(localctx, 2);
|
|
2351
|
-
{
|
|
2352
|
-
this.state = 425;
|
|
2353
|
-
this.match(CircuitScriptParser.T__4);
|
|
2354
|
-
this.state = 426;
|
|
2355
|
-
this.match(CircuitScriptParser.ID);
|
|
2356
|
-
}
|
|
2357
|
-
break;
|
|
2358
|
-
default:
|
|
2359
|
-
throw new NoViableAltException(this);
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
catch (re) {
|
|
2363
|
-
if (re instanceof RecognitionException) {
|
|
2364
|
-
localctx.exception = re;
|
|
2365
|
-
this._errHandler.reportError(this, re);
|
|
2366
|
-
this._errHandler.recover(this, re);
|
|
2367
|
-
}
|
|
2368
|
-
else {
|
|
2369
|
-
throw re;
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
finally {
|
|
2373
|
-
this.exitRule();
|
|
2374
|
-
}
|
|
2375
|
-
return localctx;
|
|
2376
|
-
}
|
|
2377
|
-
net_namespace_expr() {
|
|
2378
|
-
let localctx = new Net_namespace_exprContext(this, this._ctx, this.state);
|
|
2379
|
-
this.enterRule(localctx, 72, CircuitScriptParser.RULE_net_namespace_expr);
|
|
2380
|
-
let _la;
|
|
2381
|
-
try {
|
|
2382
|
-
this.enterOuterAlt(localctx, 1);
|
|
2383
|
-
{
|
|
2384
|
-
this.state = 430;
|
|
2385
|
-
this._errHandler.sync(this);
|
|
2386
|
-
_la = this._input.LA(1);
|
|
2387
|
-
if (_la === 29) {
|
|
2388
|
-
{
|
|
2389
|
-
this.state = 429;
|
|
2390
|
-
this.match(CircuitScriptParser.Addition);
|
|
2391
|
-
}
|
|
2392
|
-
}
|
|
2393
|
-
this.state = 432;
|
|
2394
|
-
this.match(CircuitScriptParser.Divide);
|
|
2395
|
-
this.state = 434;
|
|
2396
|
-
this._errHandler.sync(this);
|
|
2397
|
-
switch (this._interp.adaptivePredict(this._input, 51, this._ctx)) {
|
|
2398
|
-
case 1:
|
|
2399
|
-
{
|
|
2400
|
-
this.state = 433;
|
|
2401
|
-
this.data_expr(0);
|
|
2402
|
-
}
|
|
2403
|
-
break;
|
|
2404
|
-
}
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
catch (re) {
|
|
2408
|
-
if (re instanceof RecognitionException) {
|
|
2409
|
-
localctx.exception = re;
|
|
2410
|
-
this._errHandler.reportError(this, re);
|
|
2411
|
-
this._errHandler.recover(this, re);
|
|
2412
|
-
}
|
|
2413
|
-
else {
|
|
2414
|
-
throw re;
|
|
2415
|
-
}
|
|
2416
|
-
}
|
|
2417
|
-
finally {
|
|
2418
|
-
this.exitRule();
|
|
2419
|
-
}
|
|
2420
|
-
return localctx;
|
|
2421
|
-
}
|
|
2422
|
-
function_return_expr() {
|
|
2423
|
-
let localctx = new Function_return_exprContext(this, this._ctx, this.state);
|
|
2424
|
-
this.enterRule(localctx, 74, CircuitScriptParser.RULE_function_return_expr);
|
|
2425
|
-
try {
|
|
2426
|
-
this.enterOuterAlt(localctx, 1);
|
|
2427
|
-
{
|
|
2428
|
-
this.state = 436;
|
|
2429
|
-
this.match(CircuitScriptParser.Return);
|
|
2430
|
-
this.state = 437;
|
|
2431
|
-
this.data_expr(0);
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
catch (re) {
|
|
2435
|
-
if (re instanceof RecognitionException) {
|
|
2436
|
-
localctx.exception = re;
|
|
2437
|
-
this._errHandler.reportError(this, re);
|
|
2438
|
-
this._errHandler.recover(this, re);
|
|
2439
|
-
}
|
|
2440
|
-
else {
|
|
2441
|
-
throw re;
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
finally {
|
|
2445
|
-
this.exitRule();
|
|
2446
|
-
}
|
|
2447
|
-
return localctx;
|
|
2448
|
-
}
|
|
2449
|
-
create_component_expr() {
|
|
2450
|
-
let localctx = new Create_component_exprContext(this, this._ctx, this.state);
|
|
2451
|
-
this.enterRule(localctx, 76, CircuitScriptParser.RULE_create_component_expr);
|
|
2452
|
-
let _la;
|
|
2453
|
-
try {
|
|
2454
|
-
this.enterOuterAlt(localctx, 1);
|
|
2455
|
-
{
|
|
2456
|
-
this.state = 439;
|
|
2457
|
-
this.match(CircuitScriptParser.Create);
|
|
2458
|
-
this.state = 440;
|
|
2459
|
-
this.match(CircuitScriptParser.Component);
|
|
2460
|
-
this.state = 441;
|
|
2461
|
-
this.match(CircuitScriptParser.T__0);
|
|
2462
|
-
this.state = 442;
|
|
2463
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2464
|
-
this.state = 443;
|
|
2465
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2466
|
-
this.state = 446;
|
|
2467
|
-
this._errHandler.sync(this);
|
|
2468
|
-
_la = this._input.LA(1);
|
|
2469
|
-
do {
|
|
2470
|
-
{
|
|
2471
|
-
this.state = 446;
|
|
2472
|
-
this._errHandler.sync(this);
|
|
2473
|
-
switch (this._input.LA(1)) {
|
|
2474
|
-
case 45:
|
|
2475
|
-
{
|
|
2476
|
-
this.state = 444;
|
|
2477
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2478
|
-
}
|
|
2479
|
-
break;
|
|
2480
|
-
case 37:
|
|
2481
|
-
case 38:
|
|
2482
|
-
case 41:
|
|
2483
|
-
{
|
|
2484
|
-
this.state = 445;
|
|
2485
|
-
this.property_expr();
|
|
2486
|
-
}
|
|
2487
|
-
break;
|
|
2488
|
-
default:
|
|
2489
|
-
throw new NoViableAltException(this);
|
|
2490
|
-
}
|
|
2491
|
-
}
|
|
2492
|
-
this.state = 448;
|
|
2493
|
-
this._errHandler.sync(this);
|
|
2494
|
-
_la = this._input.LA(1);
|
|
2495
|
-
} while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 275) !== 0));
|
|
2496
|
-
this.state = 450;
|
|
2497
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
catch (re) {
|
|
2501
|
-
if (re instanceof RecognitionException) {
|
|
2502
|
-
localctx.exception = re;
|
|
2503
|
-
this._errHandler.reportError(this, re);
|
|
2504
|
-
this._errHandler.recover(this, re);
|
|
2505
|
-
}
|
|
2506
|
-
else {
|
|
2507
|
-
throw re;
|
|
2508
|
-
}
|
|
2509
|
-
}
|
|
2510
|
-
finally {
|
|
2511
|
-
this.exitRule();
|
|
2512
|
-
}
|
|
2513
|
-
return localctx;
|
|
2514
|
-
}
|
|
2515
|
-
create_graphic_expr() {
|
|
2516
|
-
let localctx = new Create_graphic_exprContext(this, this._ctx, this.state);
|
|
2517
|
-
this.enterRule(localctx, 78, CircuitScriptParser.RULE_create_graphic_expr);
|
|
2518
|
-
let _la;
|
|
2519
|
-
try {
|
|
2520
|
-
this.enterOuterAlt(localctx, 1);
|
|
2521
|
-
{
|
|
2522
|
-
this.state = 452;
|
|
2523
|
-
this.match(CircuitScriptParser.Create);
|
|
2524
|
-
this.state = 453;
|
|
2525
|
-
this.match(CircuitScriptParser.Graphic);
|
|
2526
|
-
this.state = 454;
|
|
2527
|
-
this.match(CircuitScriptParser.T__0);
|
|
2528
|
-
this.state = 455;
|
|
2529
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2530
|
-
this.state = 456;
|
|
2531
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2532
|
-
this.state = 459;
|
|
2533
|
-
this._errHandler.sync(this);
|
|
2534
|
-
_la = this._input.LA(1);
|
|
2535
|
-
do {
|
|
2536
|
-
{
|
|
2537
|
-
this.state = 459;
|
|
2538
|
-
this._errHandler.sync(this);
|
|
2539
|
-
switch (this._input.LA(1)) {
|
|
2540
|
-
case 45:
|
|
2541
|
-
{
|
|
2542
|
-
this.state = 457;
|
|
2543
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2544
|
-
}
|
|
2545
|
-
break;
|
|
2546
|
-
case 15:
|
|
2547
|
-
case 37:
|
|
2548
|
-
{
|
|
2549
|
-
this.state = 458;
|
|
2550
|
-
this.sub_expr();
|
|
2551
|
-
}
|
|
2552
|
-
break;
|
|
2553
|
-
default:
|
|
2554
|
-
throw new NoViableAltException(this);
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
this.state = 461;
|
|
2558
|
-
this._errHandler.sync(this);
|
|
2559
|
-
_la = this._input.LA(1);
|
|
2560
|
-
} while (((((_la - 15)) & ~0x1F) === 0 && ((1 << (_la - 15)) & 1077936129) !== 0));
|
|
2561
|
-
this.state = 463;
|
|
2562
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2563
|
-
}
|
|
2564
|
-
}
|
|
2565
|
-
catch (re) {
|
|
2566
|
-
if (re instanceof RecognitionException) {
|
|
2567
|
-
localctx.exception = re;
|
|
2568
|
-
this._errHandler.reportError(this, re);
|
|
2569
|
-
this._errHandler.recover(this, re);
|
|
2570
|
-
}
|
|
2571
|
-
else {
|
|
2572
|
-
throw re;
|
|
2573
|
-
}
|
|
2574
|
-
}
|
|
2575
|
-
finally {
|
|
2576
|
-
this.exitRule();
|
|
2577
|
-
}
|
|
2578
|
-
return localctx;
|
|
2579
|
-
}
|
|
2580
|
-
sub_expr() {
|
|
2581
|
-
let localctx = new Sub_exprContext(this, this._ctx, this.state);
|
|
2582
|
-
this.enterRule(localctx, 80, CircuitScriptParser.RULE_sub_expr);
|
|
2583
|
-
let _la;
|
|
2584
|
-
try {
|
|
2585
|
-
this.enterOuterAlt(localctx, 1);
|
|
2586
|
-
{
|
|
2587
|
-
this.state = 465;
|
|
2588
|
-
_la = this._input.LA(1);
|
|
2589
|
-
if (!(_la === 15 || _la === 37)) {
|
|
2590
|
-
this._errHandler.recoverInline(this);
|
|
2591
|
-
}
|
|
2592
|
-
else {
|
|
2593
|
-
this._errHandler.reportMatch(this);
|
|
2594
|
-
this.consume();
|
|
2595
|
-
}
|
|
2596
|
-
this.state = 466;
|
|
2597
|
-
this.match(CircuitScriptParser.T__0);
|
|
2598
|
-
this.state = 472;
|
|
2599
|
-
this._errHandler.sync(this);
|
|
2600
|
-
switch (this._interp.adaptivePredict(this._input, 56, this._ctx)) {
|
|
2601
|
-
case 1:
|
|
2602
|
-
{
|
|
2603
|
-
this.state = 467;
|
|
2604
|
-
this.parameters();
|
|
2605
|
-
}
|
|
2606
|
-
break;
|
|
2607
|
-
case 2:
|
|
2608
|
-
{
|
|
2609
|
-
this.state = 468;
|
|
2610
|
-
this.match(CircuitScriptParser.OPEN_PAREN);
|
|
2611
|
-
this.state = 469;
|
|
2612
|
-
this.parameters();
|
|
2613
|
-
this.state = 470;
|
|
2614
|
-
this.match(CircuitScriptParser.CLOSE_PAREN);
|
|
2615
|
-
}
|
|
2616
|
-
break;
|
|
2617
|
-
}
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
catch (re) {
|
|
2621
|
-
if (re instanceof RecognitionException) {
|
|
2622
|
-
localctx.exception = re;
|
|
2623
|
-
this._errHandler.reportError(this, re);
|
|
2624
|
-
this._errHandler.recover(this, re);
|
|
2625
|
-
}
|
|
2626
|
-
else {
|
|
2627
|
-
throw re;
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
finally {
|
|
2631
|
-
this.exitRule();
|
|
2632
|
-
}
|
|
2633
|
-
return localctx;
|
|
2634
|
-
}
|
|
2635
|
-
property_expr() {
|
|
2636
|
-
let localctx = new Property_exprContext(this, this._ctx, this.state);
|
|
2637
|
-
this.enterRule(localctx, 82, CircuitScriptParser.RULE_property_expr);
|
|
2638
|
-
try {
|
|
2639
|
-
this.enterOuterAlt(localctx, 1);
|
|
2640
|
-
{
|
|
2641
|
-
this.state = 474;
|
|
2642
|
-
this.property_key_expr();
|
|
2643
|
-
this.state = 475;
|
|
2644
|
-
this.match(CircuitScriptParser.T__0);
|
|
2645
|
-
this.state = 476;
|
|
2646
|
-
this.property_value_expr();
|
|
2647
|
-
}
|
|
2648
|
-
}
|
|
2649
|
-
catch (re) {
|
|
2650
|
-
if (re instanceof RecognitionException) {
|
|
2651
|
-
localctx.exception = re;
|
|
2652
|
-
this._errHandler.reportError(this, re);
|
|
2653
|
-
this._errHandler.recover(this, re);
|
|
2654
|
-
}
|
|
2655
|
-
else {
|
|
2656
|
-
throw re;
|
|
2657
|
-
}
|
|
2658
|
-
}
|
|
2659
|
-
finally {
|
|
2660
|
-
this.exitRule();
|
|
2661
|
-
}
|
|
2662
|
-
return localctx;
|
|
2663
|
-
}
|
|
2664
|
-
property_key_expr() {
|
|
2665
|
-
let localctx = new Property_key_exprContext(this, this._ctx, this.state);
|
|
2666
|
-
this.enterRule(localctx, 84, CircuitScriptParser.RULE_property_key_expr);
|
|
2667
|
-
let _la;
|
|
2668
|
-
try {
|
|
2669
|
-
this.enterOuterAlt(localctx, 1);
|
|
2670
|
-
{
|
|
2671
|
-
this.state = 478;
|
|
2672
|
-
_la = this._input.LA(1);
|
|
2673
|
-
if (!(((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 19) !== 0))) {
|
|
2674
|
-
this._errHandler.recoverInline(this);
|
|
2675
|
-
}
|
|
2676
|
-
else {
|
|
2677
|
-
this._errHandler.reportMatch(this);
|
|
2678
|
-
this.consume();
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
}
|
|
2682
|
-
catch (re) {
|
|
2683
|
-
if (re instanceof RecognitionException) {
|
|
2684
|
-
localctx.exception = re;
|
|
2685
|
-
this._errHandler.reportError(this, re);
|
|
2686
|
-
this._errHandler.recover(this, re);
|
|
2687
|
-
}
|
|
2688
|
-
else {
|
|
2689
|
-
throw re;
|
|
2690
|
-
}
|
|
2691
|
-
}
|
|
2692
|
-
finally {
|
|
2693
|
-
this.exitRule();
|
|
2694
|
-
}
|
|
2695
|
-
return localctx;
|
|
2696
|
-
}
|
|
2697
|
-
property_value_expr() {
|
|
2698
|
-
let localctx = new Property_value_exprContext(this, this._ctx, this.state);
|
|
2699
|
-
this.enterRule(localctx, 86, CircuitScriptParser.RULE_property_value_expr);
|
|
2700
|
-
let _la;
|
|
2701
|
-
try {
|
|
2702
|
-
this.state = 497;
|
|
2703
|
-
this._errHandler.sync(this);
|
|
2704
|
-
switch (this._input.LA(1)) {
|
|
2705
|
-
case 45:
|
|
2706
|
-
localctx = new Nested_propertiesContext(this, localctx);
|
|
2707
|
-
this.enterOuterAlt(localctx, 1);
|
|
2708
|
-
{
|
|
2709
|
-
this.state = 480;
|
|
2710
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2711
|
-
this.state = 481;
|
|
2712
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2713
|
-
this.state = 484;
|
|
2714
|
-
this._errHandler.sync(this);
|
|
2715
|
-
_la = this._input.LA(1);
|
|
2716
|
-
do {
|
|
2717
|
-
{
|
|
2718
|
-
this.state = 484;
|
|
2719
|
-
this._errHandler.sync(this);
|
|
2720
|
-
switch (this._input.LA(1)) {
|
|
2721
|
-
case 45:
|
|
2722
|
-
{
|
|
2723
|
-
this.state = 482;
|
|
2724
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2725
|
-
}
|
|
2726
|
-
break;
|
|
2727
|
-
case 37:
|
|
2728
|
-
case 38:
|
|
2729
|
-
case 41:
|
|
2730
|
-
{
|
|
2731
|
-
this.state = 483;
|
|
2732
|
-
this.property_expr();
|
|
2733
|
-
}
|
|
2734
|
-
break;
|
|
2735
|
-
default:
|
|
2736
|
-
throw new NoViableAltException(this);
|
|
2737
|
-
}
|
|
2738
|
-
}
|
|
2739
|
-
this.state = 486;
|
|
2740
|
-
this._errHandler.sync(this);
|
|
2741
|
-
_la = this._input.LA(1);
|
|
2742
|
-
} while (((((_la - 37)) & ~0x1F) === 0 && ((1 << (_la - 37)) & 275) !== 0));
|
|
2743
|
-
this.state = 488;
|
|
2744
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2745
|
-
}
|
|
2746
|
-
break;
|
|
2747
|
-
case 6:
|
|
2748
|
-
case 11:
|
|
2749
|
-
case 26:
|
|
2750
|
-
case 29:
|
|
2751
|
-
case 30:
|
|
2752
|
-
case 31:
|
|
2753
|
-
case 33:
|
|
2754
|
-
case 36:
|
|
2755
|
-
case 37:
|
|
2756
|
-
case 38:
|
|
2757
|
-
case 39:
|
|
2758
|
-
case 40:
|
|
2759
|
-
case 41:
|
|
2760
|
-
case 42:
|
|
2761
|
-
localctx = new Single_line_propertyContext(this, localctx);
|
|
2762
|
-
this.enterOuterAlt(localctx, 2);
|
|
2763
|
-
{
|
|
2764
|
-
this.state = 489;
|
|
2765
|
-
this.data_expr(0);
|
|
2766
|
-
this.state = 494;
|
|
2767
|
-
this._errHandler.sync(this);
|
|
2768
|
-
_la = this._input.LA(1);
|
|
2769
|
-
while (_la === 2) {
|
|
2770
|
-
{
|
|
2771
|
-
{
|
|
2772
|
-
this.state = 490;
|
|
2773
|
-
this.match(CircuitScriptParser.T__1);
|
|
2774
|
-
this.state = 491;
|
|
2775
|
-
this.data_expr(0);
|
|
2776
|
-
}
|
|
2777
|
-
}
|
|
2778
|
-
this.state = 496;
|
|
2779
|
-
this._errHandler.sync(this);
|
|
2780
|
-
_la = this._input.LA(1);
|
|
2781
|
-
}
|
|
2782
|
-
}
|
|
2783
|
-
break;
|
|
2784
|
-
default:
|
|
2785
|
-
throw new NoViableAltException(this);
|
|
2786
|
-
}
|
|
2787
|
-
}
|
|
2788
|
-
catch (re) {
|
|
2789
|
-
if (re instanceof RecognitionException) {
|
|
2790
|
-
localctx.exception = re;
|
|
2791
|
-
this._errHandler.reportError(this, re);
|
|
2792
|
-
this._errHandler.recover(this, re);
|
|
2793
|
-
}
|
|
2794
|
-
else {
|
|
2795
|
-
throw re;
|
|
2796
|
-
}
|
|
2797
|
-
}
|
|
2798
|
-
finally {
|
|
2799
|
-
this.exitRule();
|
|
2800
|
-
}
|
|
2801
|
-
return localctx;
|
|
2802
|
-
}
|
|
2803
|
-
blank_expr() {
|
|
2804
|
-
let localctx = new Blank_exprContext(this, this._ctx, this.state);
|
|
2805
|
-
this.enterRule(localctx, 88, CircuitScriptParser.RULE_blank_expr);
|
|
2806
|
-
try {
|
|
2807
|
-
this.enterOuterAlt(localctx, 1);
|
|
2808
|
-
{
|
|
2809
|
-
this.state = 499;
|
|
2810
|
-
this.match(CircuitScriptParser.T__5);
|
|
2811
|
-
this.state = 500;
|
|
2812
|
-
this.match(CircuitScriptParser.INTEGER_VALUE);
|
|
2813
|
-
this.state = 501;
|
|
2814
|
-
this.match(CircuitScriptParser.T__6);
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
catch (re) {
|
|
2818
|
-
if (re instanceof RecognitionException) {
|
|
2819
|
-
localctx.exception = re;
|
|
2820
|
-
this._errHandler.reportError(this, re);
|
|
2821
|
-
this._errHandler.recover(this, re);
|
|
2822
|
-
}
|
|
2823
|
-
else {
|
|
2824
|
-
throw re;
|
|
2825
|
-
}
|
|
2826
|
-
}
|
|
2827
|
-
finally {
|
|
2828
|
-
this.exitRule();
|
|
2829
|
-
}
|
|
2830
|
-
return localctx;
|
|
2831
|
-
}
|
|
2832
|
-
wire_expr() {
|
|
2833
|
-
let localctx = new Wire_exprContext(this, this._ctx, this.state);
|
|
2834
|
-
this.enterRule(localctx, 90, CircuitScriptParser.RULE_wire_expr);
|
|
2835
|
-
let _la;
|
|
2836
|
-
try {
|
|
2837
|
-
let _alt;
|
|
2838
|
-
this.enterOuterAlt(localctx, 1);
|
|
2839
|
-
{
|
|
2840
|
-
this.state = 503;
|
|
2841
|
-
this.match(CircuitScriptParser.Wire);
|
|
2842
|
-
this.state = 504;
|
|
2843
|
-
this.match(CircuitScriptParser.ID);
|
|
2844
|
-
this.state = 508;
|
|
2845
|
-
this._errHandler.sync(this);
|
|
2846
|
-
_alt = this._interp.adaptivePredict(this._input, 61, this._ctx);
|
|
2847
|
-
while (_alt !== 2 && _alt !== ATN.INVALID_ALT_NUMBER) {
|
|
2848
|
-
if (_alt === 1) {
|
|
2849
|
-
{
|
|
2850
|
-
{
|
|
2851
|
-
this.state = 505;
|
|
2852
|
-
_la = this._input.LA(1);
|
|
2853
|
-
if (!(_la === 37 || _la === 38)) {
|
|
2854
|
-
this._errHandler.recoverInline(this);
|
|
2855
|
-
}
|
|
2856
|
-
else {
|
|
2857
|
-
this._errHandler.reportMatch(this);
|
|
2858
|
-
this.consume();
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
}
|
|
2862
|
-
}
|
|
2863
|
-
this.state = 510;
|
|
2864
|
-
this._errHandler.sync(this);
|
|
2865
|
-
_alt = this._interp.adaptivePredict(this._input, 61, this._ctx);
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
}
|
|
2869
|
-
catch (re) {
|
|
2870
|
-
if (re instanceof RecognitionException) {
|
|
2871
|
-
localctx.exception = re;
|
|
2872
|
-
this._errHandler.reportError(this, re);
|
|
2873
|
-
this._errHandler.recover(this, re);
|
|
2874
|
-
}
|
|
2875
|
-
else {
|
|
2876
|
-
throw re;
|
|
2877
|
-
}
|
|
2878
|
-
}
|
|
2879
|
-
finally {
|
|
2880
|
-
this.exitRule();
|
|
2881
|
-
}
|
|
2882
|
-
return localctx;
|
|
2883
|
-
}
|
|
2884
|
-
point_expr() {
|
|
2885
|
-
let localctx = new Point_exprContext(this, this._ctx, this.state);
|
|
2886
|
-
this.enterRule(localctx, 92, CircuitScriptParser.RULE_point_expr);
|
|
2887
|
-
try {
|
|
2888
|
-
this.enterOuterAlt(localctx, 1);
|
|
2889
|
-
{
|
|
2890
|
-
this.state = 511;
|
|
2891
|
-
this.match(CircuitScriptParser.Point);
|
|
2892
|
-
this.state = 512;
|
|
2893
|
-
this.match(CircuitScriptParser.ID);
|
|
2894
|
-
}
|
|
2895
|
-
}
|
|
2896
|
-
catch (re) {
|
|
2897
|
-
if (re instanceof RecognitionException) {
|
|
2898
|
-
localctx.exception = re;
|
|
2899
|
-
this._errHandler.reportError(this, re);
|
|
2900
|
-
this._errHandler.recover(this, re);
|
|
2901
|
-
}
|
|
2902
|
-
else {
|
|
2903
|
-
throw re;
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
finally {
|
|
2907
|
-
this.exitRule();
|
|
2908
|
-
}
|
|
2909
|
-
return localctx;
|
|
2910
|
-
}
|
|
2911
|
-
import_expr() {
|
|
2912
|
-
let localctx = new Import_exprContext(this, this._ctx, this.state);
|
|
2913
|
-
this.enterRule(localctx, 94, CircuitScriptParser.RULE_import_expr);
|
|
2914
|
-
try {
|
|
2915
|
-
this.enterOuterAlt(localctx, 1);
|
|
2916
|
-
{
|
|
2917
|
-
this.state = 514;
|
|
2918
|
-
this.match(CircuitScriptParser.Import);
|
|
2919
|
-
this.state = 515;
|
|
2920
|
-
this.match(CircuitScriptParser.ID);
|
|
2921
|
-
}
|
|
2922
|
-
}
|
|
2923
|
-
catch (re) {
|
|
2924
|
-
if (re instanceof RecognitionException) {
|
|
2925
|
-
localctx.exception = re;
|
|
2926
|
-
this._errHandler.reportError(this, re);
|
|
2927
|
-
this._errHandler.recover(this, re);
|
|
2928
|
-
}
|
|
2929
|
-
else {
|
|
2930
|
-
throw re;
|
|
2931
|
-
}
|
|
2932
|
-
}
|
|
2933
|
-
finally {
|
|
2934
|
-
this.exitRule();
|
|
2935
|
-
}
|
|
2936
|
-
return localctx;
|
|
2937
|
-
}
|
|
2938
|
-
frame_expr() {
|
|
2939
|
-
let localctx = new Frame_exprContext(this, this._ctx, this.state);
|
|
2940
|
-
this.enterRule(localctx, 96, CircuitScriptParser.RULE_frame_expr);
|
|
2941
|
-
let _la;
|
|
2942
|
-
try {
|
|
2943
|
-
this.enterOuterAlt(localctx, 1);
|
|
2944
|
-
{
|
|
2945
|
-
this.state = 517;
|
|
2946
|
-
this.match(CircuitScriptParser.T__7);
|
|
2947
|
-
this.state = 518;
|
|
2948
|
-
this.match(CircuitScriptParser.T__0);
|
|
2949
|
-
this.state = 519;
|
|
2950
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2951
|
-
this.state = 520;
|
|
2952
|
-
this.match(CircuitScriptParser.INDENT);
|
|
2953
|
-
this.state = 523;
|
|
2954
|
-
this._errHandler.sync(this);
|
|
2955
|
-
_la = this._input.LA(1);
|
|
2956
|
-
do {
|
|
2957
|
-
{
|
|
2958
|
-
this.state = 523;
|
|
2959
|
-
this._errHandler.sync(this);
|
|
2960
|
-
switch (this._input.LA(1)) {
|
|
2961
|
-
case 45:
|
|
2962
|
-
{
|
|
2963
|
-
this.state = 521;
|
|
2964
|
-
this.match(CircuitScriptParser.NEWLINE);
|
|
2965
|
-
}
|
|
2966
|
-
break;
|
|
2967
|
-
case 4:
|
|
2968
|
-
case 8:
|
|
2969
|
-
case 9:
|
|
2970
|
-
case 10:
|
|
2971
|
-
case 14:
|
|
2972
|
-
case 16:
|
|
2973
|
-
case 17:
|
|
2974
|
-
case 18:
|
|
2975
|
-
case 19:
|
|
2976
|
-
case 20:
|
|
2977
|
-
case 21:
|
|
2978
|
-
case 23:
|
|
2979
|
-
case 24:
|
|
2980
|
-
case 29:
|
|
2981
|
-
case 31:
|
|
2982
|
-
case 37:
|
|
2983
|
-
{
|
|
2984
|
-
this.state = 522;
|
|
2985
|
-
this.expression();
|
|
2986
|
-
}
|
|
2987
|
-
break;
|
|
2988
|
-
default:
|
|
2989
|
-
throw new NoViableAltException(this);
|
|
2990
|
-
}
|
|
2991
|
-
}
|
|
2992
|
-
this.state = 525;
|
|
2993
|
-
this._errHandler.sync(this);
|
|
2994
|
-
_la = this._input.LA(1);
|
|
2995
|
-
} while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 2713667344) !== 0) || _la === 37 || _la === 45);
|
|
2996
|
-
this.state = 527;
|
|
2997
|
-
this.match(CircuitScriptParser.DEDENT);
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
catch (re) {
|
|
3001
|
-
if (re instanceof RecognitionException) {
|
|
3002
|
-
localctx.exception = re;
|
|
3003
|
-
this._errHandler.reportError(this, re);
|
|
3004
|
-
this._errHandler.recover(this, re);
|
|
3005
|
-
}
|
|
3006
|
-
else {
|
|
3007
|
-
throw re;
|
|
3008
|
-
}
|
|
3009
|
-
}
|
|
3010
|
-
finally {
|
|
3011
|
-
this.exitRule();
|
|
3012
|
-
}
|
|
3013
|
-
return localctx;
|
|
3014
|
-
}
|
|
3015
|
-
sempred(localctx, ruleIndex, predIndex) {
|
|
3016
|
-
switch (ruleIndex) {
|
|
3017
|
-
case 27:
|
|
3018
|
-
return this.data_expr_sempred(localctx, predIndex);
|
|
3019
|
-
}
|
|
3020
|
-
return true;
|
|
3021
|
-
}
|
|
3022
|
-
data_expr_sempred(localctx, predIndex) {
|
|
3023
|
-
switch (predIndex) {
|
|
3024
|
-
case 0:
|
|
3025
|
-
return this.precpred(this._ctx, 5);
|
|
3026
|
-
case 1:
|
|
3027
|
-
return this.precpred(this._ctx, 4);
|
|
3028
|
-
case 2:
|
|
3029
|
-
return this.precpred(this._ctx, 3);
|
|
3030
|
-
}
|
|
3031
|
-
return true;
|
|
3032
|
-
}
|
|
3033
|
-
static _serializedATN = [4, 1, 48, 530, 2, 0, 7, 0, 2,
|
|
3034
|
-
1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2,
|
|
3035
|
-
10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17,
|
|
3036
|
-
7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7,
|
|
3037
|
-
24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31,
|
|
3038
|
-
2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2,
|
|
3039
|
-
39, 7, 39, 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,
|
|
3040
|
-
7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 1, 0, 1, 0, 4, 0, 101, 8, 0, 11, 0, 12, 0, 102, 1, 0, 1, 0, 1, 1,
|
|
3041
|
-
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, 1, 1, 3, 1, 123, 8, 1,
|
|
3042
|
-
1, 2, 4, 2, 126, 8, 2, 11, 2, 12, 2, 127, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 4, 3, 136, 8, 3, 11, 3,
|
|
3043
|
-
12, 3, 137, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 4, 4, 148, 8, 4, 11, 4, 12, 4, 149, 1, 4,
|
|
3044
|
-
1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 3, 6, 160, 8, 6, 1, 6, 3, 6, 163, 8, 6, 1, 7, 1, 7, 1, 7, 3, 7,
|
|
3045
|
-
168, 8, 7, 1, 8, 1, 8, 3, 8, 172, 8, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 3, 11, 182,
|
|
3046
|
-
8, 11, 1, 11, 3, 11, 185, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 191, 8, 12, 10, 12, 12, 12, 194,
|
|
3047
|
-
9, 12, 1, 12, 3, 12, 197, 8, 12, 1, 12, 3, 12, 200, 8, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13,
|
|
3048
|
-
5, 13, 208, 8, 13, 10, 13, 12, 13, 211, 9, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 4, 13, 218, 8,
|
|
3049
|
-
13, 11, 13, 12, 13, 219, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 229, 8, 14, 10,
|
|
3050
|
-
14, 12, 14, 232, 9, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 4, 16, 242, 8, 16,
|
|
3051
|
-
11, 16, 12, 16, 243, 1, 16, 1, 16, 1, 17, 1, 17, 3, 17, 250, 8, 17, 1, 18, 1, 18, 1, 18, 1, 18, 3,
|
|
3052
|
-
18, 256, 8, 18, 1, 19, 1, 19, 3, 19, 260, 8, 19, 1, 20, 1, 20, 1, 20, 1, 20, 4, 20, 266, 8, 20, 11,
|
|
3053
|
-
20, 12, 20, 267, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23,
|
|
3054
|
-
1, 24, 1, 24, 1, 24, 5, 24, 285, 8, 24, 10, 24, 12, 24, 288, 9, 24, 1, 24, 1, 24, 5, 24, 292, 8,
|
|
3055
|
-
24, 10, 24, 12, 24, 295, 9, 24, 1, 24, 1, 24, 1, 24, 5, 24, 300, 8, 24, 10, 24, 12, 24, 303, 9,
|
|
3056
|
-
24, 3, 24, 305, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27,
|
|
3057
|
-
1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 323, 8, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 330,
|
|
3058
|
-
8, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 342, 8, 27, 10,
|
|
3059
|
-
27, 12, 27, 345, 9, 27, 1, 28, 1, 28, 1, 29, 1, 29, 1, 30, 3, 30, 352, 8, 30, 1, 30, 1, 30, 3, 30,
|
|
3060
|
-
356, 8, 30, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 362, 8, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31,
|
|
3061
|
-
4, 31, 370, 8, 31, 11, 31, 12, 31, 371, 1, 31, 1, 31, 1, 32, 1, 32, 3, 32, 378, 8, 32, 1, 33, 1,
|
|
3062
|
-
33, 1, 33, 5, 33, 383, 8, 33, 10, 33, 12, 33, 386, 9, 33, 1, 33, 1, 33, 1, 33, 1, 33, 5, 33, 392,
|
|
3063
|
-
8, 33, 10, 33, 12, 33, 395, 9, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 5, 33, 404, 8,
|
|
3064
|
-
33, 10, 33, 12, 33, 407, 9, 33, 3, 33, 409, 8, 33, 1, 34, 3, 34, 412, 8, 34, 1, 34, 1, 34, 5, 34,
|
|
3065
|
-
416, 8, 34, 10, 34, 12, 34, 419, 9, 34, 1, 35, 1, 35, 3, 35, 423, 8, 35, 1, 35, 1, 35, 1, 35, 3,
|
|
3066
|
-
35, 428, 8, 35, 1, 36, 3, 36, 431, 8, 36, 1, 36, 1, 36, 3, 36, 435, 8, 36, 1, 37, 1, 37, 1, 37, 1,
|
|
3067
|
-
38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 4, 38, 447, 8, 38, 11, 38, 12, 38, 448, 1, 38, 1, 38,
|
|
3068
|
-
1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 4, 39, 460, 8, 39, 11, 39, 12, 39, 461, 1, 39, 1,
|
|
3069
|
-
39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 473, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41,
|
|
3070
|
-
1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 4, 43, 485, 8, 43, 11, 43, 12, 43, 486, 1, 43, 1, 43, 1,
|
|
3071
|
-
43, 1, 43, 5, 43, 493, 8, 43, 10, 43, 12, 43, 496, 9, 43, 3, 43, 498, 8, 43, 1, 44, 1, 44, 1, 44,
|
|
3072
|
-
1, 44, 1, 45, 1, 45, 1, 45, 5, 45, 507, 8, 45, 10, 45, 12, 45, 510, 9, 45, 1, 46, 1, 46, 1, 46, 1,
|
|
3073
|
-
47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 4, 48, 524, 8, 48, 11, 48, 12, 48, 525,
|
|
3074
|
-
1, 48, 1, 48, 1, 48, 0, 1, 54, 49, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32,
|
|
3075
|
-
34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80,
|
|
3076
|
-
82, 84, 86, 88, 90, 92, 94, 96, 0, 11, 2, 0, 10, 10, 19, 21, 1, 0, 37, 38, 2, 0, 38, 38, 41, 41,
|
|
3077
|
-
2, 0, 35, 35, 38, 38, 1, 0, 31, 32, 1, 0, 29, 30, 1, 0, 27, 28, 2, 0, 26, 26, 30, 30, 2, 0, 36, 36,
|
|
3078
|
-
38, 42, 2, 0, 15, 15, 37, 37, 2, 0, 37, 38, 41, 41, 562, 0, 100, 1, 0, 0, 0, 2, 122, 1, 0, 0, 0, 4,
|
|
3079
|
-
125, 1, 0, 0, 0, 6, 129, 1, 0, 0, 0, 8, 141, 1, 0, 0, 0, 10, 153, 1, 0, 0, 0, 12, 159, 1, 0, 0, 0, 14,
|
|
3080
|
-
164, 1, 0, 0, 0, 16, 171, 1, 0, 0, 0, 18, 173, 1, 0, 0, 0, 20, 176, 1, 0, 0, 0, 22, 178, 1, 0, 0, 0,
|
|
3081
|
-
24, 186, 1, 0, 0, 0, 26, 201, 1, 0, 0, 0, 28, 223, 1, 0, 0, 0, 30, 233, 1, 0, 0, 0, 32, 235, 1, 0,
|
|
3082
|
-
0, 0, 34, 249, 1, 0, 0, 0, 36, 251, 1, 0, 0, 0, 38, 259, 1, 0, 0, 0, 40, 261, 1, 0, 0, 0, 42, 271,
|
|
3083
|
-
1, 0, 0, 0, 44, 273, 1, 0, 0, 0, 46, 277, 1, 0, 0, 0, 48, 304, 1, 0, 0, 0, 50, 306, 1, 0, 0, 0, 52,
|
|
3084
|
-
310, 1, 0, 0, 0, 54, 329, 1, 0, 0, 0, 56, 346, 1, 0, 0, 0, 58, 348, 1, 0, 0, 0, 60, 355, 1, 0, 0, 0,
|
|
3085
|
-
62, 357, 1, 0, 0, 0, 64, 377, 1, 0, 0, 0, 66, 408, 1, 0, 0, 0, 68, 411, 1, 0, 0, 0, 70, 427, 1, 0,
|
|
3086
|
-
0, 0, 72, 430, 1, 0, 0, 0, 74, 436, 1, 0, 0, 0, 76, 439, 1, 0, 0, 0, 78, 452, 1, 0, 0, 0, 80, 465,
|
|
3087
|
-
1, 0, 0, 0, 82, 474, 1, 0, 0, 0, 84, 478, 1, 0, 0, 0, 86, 497, 1, 0, 0, 0, 88, 499, 1, 0, 0, 0, 90,
|
|
3088
|
-
503, 1, 0, 0, 0, 92, 511, 1, 0, 0, 0, 94, 514, 1, 0, 0, 0, 96, 517, 1, 0, 0, 0, 98, 101, 3, 2, 1, 0,
|
|
3089
|
-
99, 101, 5, 45, 0, 0, 100, 98, 1, 0, 0, 0, 100, 99, 1, 0, 0, 0, 101, 102, 1, 0, 0, 0, 102, 100, 1,
|
|
3090
|
-
0, 0, 0, 102, 103, 1, 0, 0, 0, 103, 104, 1, 0, 0, 0, 104, 105, 5, 0, 0, 1, 105, 1, 1, 0, 0, 0, 106,
|
|
3091
|
-
123, 3, 14, 7, 0, 107, 123, 3, 24, 12, 0, 108, 123, 3, 22, 11, 0, 109, 123, 3, 44, 22, 0, 110,
|
|
3092
|
-
123, 3, 50, 25, 0, 111, 123, 3, 8, 4, 0, 112, 123, 3, 52, 26, 0, 113, 123, 3, 42, 21, 0, 114, 123,
|
|
3093
|
-
3, 62, 31, 0, 115, 123, 3, 90, 45, 0, 116, 123, 3, 94, 47, 0, 117, 123, 3, 96, 48, 0, 118, 123,
|
|
3094
|
-
3, 68, 34, 0, 119, 123, 3, 32, 16, 0, 120, 123, 3, 4, 2, 0, 121, 123, 3, 92, 46, 0, 122, 106, 1,
|
|
3095
|
-
0, 0, 0, 122, 107, 1, 0, 0, 0, 122, 108, 1, 0, 0, 0, 122, 109, 1, 0, 0, 0, 122, 110, 1, 0, 0, 0, 122,
|
|
3096
|
-
111, 1, 0, 0, 0, 122, 112, 1, 0, 0, 0, 122, 113, 1, 0, 0, 0, 122, 114, 1, 0, 0, 0, 122, 115, 1, 0,
|
|
3097
|
-
0, 0, 122, 116, 1, 0, 0, 0, 122, 117, 1, 0, 0, 0, 122, 118, 1, 0, 0, 0, 122, 119, 1, 0, 0, 0, 122,
|
|
3098
|
-
120, 1, 0, 0, 0, 122, 121, 1, 0, 0, 0, 123, 3, 1, 0, 0, 0, 124, 126, 3, 6, 3, 0, 125, 124, 1, 0, 0,
|
|
3099
|
-
0, 126, 127, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 128, 1, 0, 0, 0, 128, 5, 1, 0, 0, 0, 129, 130,
|
|
3100
|
-
7, 0, 0, 0, 130, 131, 5, 1, 0, 0, 131, 132, 5, 45, 0, 0, 132, 135, 5, 47, 0, 0, 133, 136, 5, 45,
|
|
3101
|
-
0, 0, 134, 136, 3, 2, 1, 0, 135, 133, 1, 0, 0, 0, 135, 134, 1, 0, 0, 0, 136, 137, 1, 0, 0, 0, 137,
|
|
3102
|
-
135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 139, 1, 0, 0, 0, 139, 140, 5, 48, 0, 0, 140, 7, 1, 0,
|
|
3103
|
-
0, 0, 141, 142, 3, 68, 34, 0, 142, 143, 5, 1, 0, 0, 143, 144, 5, 45, 0, 0, 144, 147, 5, 47, 0, 0,
|
|
3104
|
-
145, 148, 5, 45, 0, 0, 146, 148, 3, 10, 5, 0, 147, 145, 1, 0, 0, 0, 147, 146, 1, 0, 0, 0, 148, 149,
|
|
3105
|
-
1, 0, 0, 0, 149, 147, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 151, 1, 0, 0, 0, 151, 152, 5, 48, 0,
|
|
3106
|
-
0, 152, 9, 1, 0, 0, 0, 153, 154, 7, 1, 0, 0, 154, 155, 5, 1, 0, 0, 155, 156, 3, 60, 30, 0, 156, 11,
|
|
3107
|
-
1, 0, 0, 0, 157, 160, 3, 54, 27, 0, 158, 160, 3, 44, 22, 0, 159, 157, 1, 0, 0, 0, 159, 158, 1, 0,
|
|
3108
|
-
0, 0, 160, 162, 1, 0, 0, 0, 161, 163, 3, 18, 9, 0, 162, 161, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163,
|
|
3109
|
-
13, 1, 0, 0, 0, 164, 165, 5, 16, 0, 0, 165, 167, 3, 12, 6, 0, 166, 168, 5, 37, 0, 0, 167, 166, 1,
|
|
3110
|
-
0, 0, 0, 167, 168, 1, 0, 0, 0, 168, 15, 1, 0, 0, 0, 169, 172, 3, 12, 6, 0, 170, 172, 3, 18, 9, 0,
|
|
3111
|
-
171, 169, 1, 0, 0, 0, 171, 170, 1, 0, 0, 0, 172, 17, 1, 0, 0, 0, 173, 174, 5, 15, 0, 0, 174, 175,
|
|
3112
|
-
7, 2, 0, 0, 175, 19, 1, 0, 0, 0, 176, 177, 7, 2, 0, 0, 177, 21, 1, 0, 0, 0, 178, 184, 5, 17, 0, 0,
|
|
3113
|
-
179, 181, 3, 16, 8, 0, 180, 182, 5, 37, 0, 0, 181, 180, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 185,
|
|
3114
|
-
1, 0, 0, 0, 183, 185, 5, 19, 0, 0, 184, 179, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 23, 1, 0, 0, 0,
|
|
3115
|
-
186, 199, 5, 18, 0, 0, 187, 192, 3, 16, 8, 0, 188, 189, 5, 2, 0, 0, 189, 191, 3, 16, 8, 0, 190,
|
|
3116
|
-
188, 1, 0, 0, 0, 191, 194, 1, 0, 0, 0, 192, 190, 1, 0, 0, 0, 192, 193, 1, 0, 0, 0, 193, 196, 1, 0,
|
|
3117
|
-
0, 0, 194, 192, 1, 0, 0, 0, 195, 197, 5, 37, 0, 0, 196, 195, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197,
|
|
3118
|
-
200, 1, 0, 0, 0, 198, 200, 5, 19, 0, 0, 199, 187, 1, 0, 0, 0, 199, 198, 1, 0, 0, 0, 200, 25, 1, 0,
|
|
3119
|
-
0, 0, 201, 202, 5, 17, 0, 0, 202, 203, 3, 16, 8, 0, 203, 204, 5, 18, 0, 0, 204, 209, 3, 16, 8, 0,
|
|
3120
|
-
205, 206, 5, 2, 0, 0, 206, 208, 3, 16, 8, 0, 207, 205, 1, 0, 0, 0, 208, 211, 1, 0, 0, 0, 209, 207,
|
|
3121
|
-
1, 0, 0, 0, 209, 210, 1, 0, 0, 0, 210, 212, 1, 0, 0, 0, 211, 209, 1, 0, 0, 0, 212, 213, 5, 1, 0, 0,
|
|
3122
|
-
213, 214, 5, 45, 0, 0, 214, 217, 5, 47, 0, 0, 215, 218, 5, 45, 0, 0, 216, 218, 3, 28, 14, 0, 217,
|
|
3123
|
-
215, 1, 0, 0, 0, 217, 216, 1, 0, 0, 0, 218, 219, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0,
|
|
3124
|
-
0, 0, 220, 221, 1, 0, 0, 0, 221, 222, 5, 48, 0, 0, 222, 27, 1, 0, 0, 0, 223, 224, 3, 20, 10, 0, 224,
|
|
3125
|
-
225, 5, 1, 0, 0, 225, 230, 3, 30, 15, 0, 226, 227, 5, 2, 0, 0, 227, 229, 3, 30, 15, 0, 228, 226,
|
|
3126
|
-
1, 0, 0, 0, 229, 232, 1, 0, 0, 0, 230, 228, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 29, 1, 0, 0, 0,
|
|
3127
|
-
232, 230, 1, 0, 0, 0, 233, 234, 7, 3, 0, 0, 234, 31, 1, 0, 0, 0, 235, 236, 3, 22, 11, 0, 236, 237,
|
|
3128
|
-
5, 1, 0, 0, 237, 238, 5, 45, 0, 0, 238, 241, 5, 47, 0, 0, 239, 242, 5, 45, 0, 0, 240, 242, 3, 34,
|
|
3129
|
-
17, 0, 241, 239, 1, 0, 0, 0, 241, 240, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 243,
|
|
3130
|
-
244, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 5, 48, 0, 0, 246, 33, 1, 0, 0, 0, 247, 250, 3, 2,
|
|
3131
|
-
1, 0, 248, 250, 3, 36, 18, 0, 249, 247, 1, 0, 0, 0, 249, 248, 1, 0, 0, 0, 250, 35, 1, 0, 0, 0, 251,
|
|
3132
|
-
252, 3, 20, 10, 0, 252, 255, 5, 1, 0, 0, 253, 256, 3, 38, 19, 0, 254, 256, 3, 40, 20, 0, 255, 253,
|
|
3133
|
-
1, 0, 0, 0, 255, 254, 1, 0, 0, 0, 256, 37, 1, 0, 0, 0, 257, 260, 3, 2, 1, 0, 258, 260, 5, 35, 0, 0,
|
|
3134
|
-
259, 257, 1, 0, 0, 0, 259, 258, 1, 0, 0, 0, 260, 39, 1, 0, 0, 0, 261, 262, 5, 45, 0, 0, 262, 265,
|
|
3135
|
-
5, 47, 0, 0, 263, 266, 5, 45, 0, 0, 264, 266, 3, 2, 1, 0, 265, 263, 1, 0, 0, 0, 265, 264, 1, 0, 0,
|
|
3136
|
-
0, 266, 267, 1, 0, 0, 0, 267, 265, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 269, 1, 0, 0, 0, 269, 270,
|
|
3137
|
-
5, 48, 0, 0, 270, 41, 1, 0, 0, 0, 271, 272, 5, 9, 0, 0, 272, 43, 1, 0, 0, 0, 273, 274, 3, 68, 34,
|
|
3138
|
-
0, 274, 275, 5, 3, 0, 0, 275, 276, 3, 54, 27, 0, 276, 45, 1, 0, 0, 0, 277, 278, 5, 37, 0, 0, 278,
|
|
3139
|
-
279, 5, 3, 0, 0, 279, 280, 3, 54, 27, 0, 280, 47, 1, 0, 0, 0, 281, 286, 3, 54, 27, 0, 282, 283,
|
|
3140
|
-
5, 2, 0, 0, 283, 285, 3, 54, 27, 0, 284, 282, 1, 0, 0, 0, 285, 288, 1, 0, 0, 0, 286, 284, 1, 0, 0,
|
|
3141
|
-
0, 286, 287, 1, 0, 0, 0, 287, 293, 1, 0, 0, 0, 288, 286, 1, 0, 0, 0, 289, 290, 5, 2, 0, 0, 290, 292,
|
|
3142
|
-
3, 46, 23, 0, 291, 289, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0, 293, 294, 1, 0, 0,
|
|
3143
|
-
0, 294, 305, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 296, 301, 3, 46, 23, 0, 297, 298, 5, 2, 0, 0, 298,
|
|
3144
|
-
300, 3, 46, 23, 0, 299, 297, 1, 0, 0, 0, 300, 303, 1, 0, 0, 0, 301, 299, 1, 0, 0, 0, 301, 302, 1,
|
|
3145
|
-
0, 0, 0, 302, 305, 1, 0, 0, 0, 303, 301, 1, 0, 0, 0, 304, 281, 1, 0, 0, 0, 304, 296, 1, 0, 0, 0, 305,
|
|
3146
|
-
49, 1, 0, 0, 0, 306, 307, 3, 68, 34, 0, 307, 308, 5, 3, 0, 0, 308, 309, 3, 54, 27, 0, 309, 51, 1,
|
|
3147
|
-
0, 0, 0, 310, 311, 5, 4, 0, 0, 311, 312, 5, 37, 0, 0, 312, 313, 5, 3, 0, 0, 313, 314, 3, 54, 27,
|
|
3148
|
-
0, 314, 53, 1, 0, 0, 0, 315, 316, 6, 27, -1, 0, 316, 317, 5, 33, 0, 0, 317, 318, 3, 54, 27, 0, 318,
|
|
3149
|
-
319, 5, 34, 0, 0, 319, 330, 1, 0, 0, 0, 320, 323, 3, 60, 30, 0, 321, 323, 3, 68, 34, 0, 322, 320,
|
|
3150
|
-
1, 0, 0, 0, 322, 321, 1, 0, 0, 0, 323, 330, 1, 0, 0, 0, 324, 325, 3, 58, 29, 0, 325, 326, 3, 54,
|
|
3151
|
-
27, 6, 326, 330, 1, 0, 0, 0, 327, 330, 3, 76, 38, 0, 328, 330, 3, 78, 39, 0, 329, 315, 1, 0, 0,
|
|
3152
|
-
0, 329, 322, 1, 0, 0, 0, 329, 324, 1, 0, 0, 0, 329, 327, 1, 0, 0, 0, 329, 328, 1, 0, 0, 0, 330, 343,
|
|
3153
|
-
1, 0, 0, 0, 331, 332, 10, 5, 0, 0, 332, 333, 7, 4, 0, 0, 333, 342, 3, 54, 27, 6, 334, 335, 10, 4,
|
|
3154
|
-
0, 0, 335, 336, 7, 5, 0, 0, 336, 342, 3, 54, 27, 5, 337, 338, 10, 3, 0, 0, 338, 339, 3, 56, 28,
|
|
3155
|
-
0, 339, 340, 3, 54, 27, 4, 340, 342, 1, 0, 0, 0, 341, 331, 1, 0, 0, 0, 341, 334, 1, 0, 0, 0, 341,
|
|
3156
|
-
337, 1, 0, 0, 0, 342, 345, 1, 0, 0, 0, 343, 341, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 55, 1, 0,
|
|
3157
|
-
0, 0, 345, 343, 1, 0, 0, 0, 346, 347, 7, 6, 0, 0, 347, 57, 1, 0, 0, 0, 348, 349, 7, 7, 0, 0, 349,
|
|
3158
|
-
59, 1, 0, 0, 0, 350, 352, 5, 30, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 353, 1, 0,
|
|
3159
|
-
0, 0, 353, 356, 7, 8, 0, 0, 354, 356, 3, 88, 44, 0, 355, 351, 1, 0, 0, 0, 355, 354, 1, 0, 0, 0, 356,
|
|
3160
|
-
61, 1, 0, 0, 0, 357, 358, 5, 23, 0, 0, 358, 359, 5, 37, 0, 0, 359, 361, 5, 33, 0, 0, 360, 362, 3,
|
|
3161
|
-
66, 33, 0, 361, 360, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 364, 5, 34, 0,
|
|
3162
|
-
0, 364, 365, 5, 1, 0, 0, 365, 366, 5, 45, 0, 0, 366, 369, 5, 47, 0, 0, 367, 370, 5, 45, 0, 0, 368,
|
|
3163
|
-
370, 3, 64, 32, 0, 369, 367, 1, 0, 0, 0, 369, 368, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 369, 1,
|
|
3164
|
-
0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 373, 1, 0, 0, 0, 373, 374, 5, 48, 0, 0, 374, 63, 1, 0, 0, 0, 375,
|
|
3165
|
-
378, 3, 2, 1, 0, 376, 378, 3, 74, 37, 0, 377, 375, 1, 0, 0, 0, 377, 376, 1, 0, 0, 0, 378, 65, 1,
|
|
3166
|
-
0, 0, 0, 379, 384, 5, 37, 0, 0, 380, 381, 5, 2, 0, 0, 381, 383, 5, 37, 0, 0, 382, 380, 1, 0, 0, 0,
|
|
3167
|
-
383, 386, 1, 0, 0, 0, 384, 382, 1, 0, 0, 0, 384, 385, 1, 0, 0, 0, 385, 393, 1, 0, 0, 0, 386, 384,
|
|
3168
|
-
1, 0, 0, 0, 387, 388, 5, 2, 0, 0, 388, 389, 5, 37, 0, 0, 389, 390, 5, 3, 0, 0, 390, 392, 3, 60, 30,
|
|
3169
|
-
0, 391, 387, 1, 0, 0, 0, 392, 395, 1, 0, 0, 0, 393, 391, 1, 0, 0, 0, 393, 394, 1, 0, 0, 0, 394, 409,
|
|
3170
|
-
1, 0, 0, 0, 395, 393, 1, 0, 0, 0, 396, 397, 5, 37, 0, 0, 397, 398, 5, 3, 0, 0, 398, 405, 3, 60, 30,
|
|
3171
|
-
0, 399, 400, 5, 2, 0, 0, 400, 401, 5, 37, 0, 0, 401, 402, 5, 3, 0, 0, 402, 404, 3, 60, 30, 0, 403,
|
|
3172
|
-
399, 1, 0, 0, 0, 404, 407, 1, 0, 0, 0, 405, 403, 1, 0, 0, 0, 405, 406, 1, 0, 0, 0, 406, 409, 1, 0,
|
|
3173
|
-
0, 0, 407, 405, 1, 0, 0, 0, 408, 379, 1, 0, 0, 0, 408, 396, 1, 0, 0, 0, 409, 67, 1, 0, 0, 0, 410,
|
|
3174
|
-
412, 3, 72, 36, 0, 411, 410, 1, 0, 0, 0, 411, 412, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 417, 5,
|
|
3175
|
-
37, 0, 0, 414, 416, 3, 70, 35, 0, 415, 414, 1, 0, 0, 0, 416, 419, 1, 0, 0, 0, 417, 415, 1, 0, 0,
|
|
3176
|
-
0, 417, 418, 1, 0, 0, 0, 418, 69, 1, 0, 0, 0, 419, 417, 1, 0, 0, 0, 420, 422, 5, 33, 0, 0, 421, 423,
|
|
3177
|
-
3, 48, 24, 0, 422, 421, 1, 0, 0, 0, 422, 423, 1, 0, 0, 0, 423, 424, 1, 0, 0, 0, 424, 428, 5, 34,
|
|
3178
|
-
0, 0, 425, 426, 5, 5, 0, 0, 426, 428, 5, 37, 0, 0, 427, 420, 1, 0, 0, 0, 427, 425, 1, 0, 0, 0, 428,
|
|
3179
|
-
71, 1, 0, 0, 0, 429, 431, 5, 29, 0, 0, 430, 429, 1, 0, 0, 0, 430, 431, 1, 0, 0, 0, 431, 432, 1, 0,
|
|
3180
|
-
0, 0, 432, 434, 5, 31, 0, 0, 433, 435, 3, 54, 27, 0, 434, 433, 1, 0, 0, 0, 434, 435, 1, 0, 0, 0,
|
|
3181
|
-
435, 73, 1, 0, 0, 0, 436, 437, 5, 22, 0, 0, 437, 438, 3, 54, 27, 0, 438, 75, 1, 0, 0, 0, 439, 440,
|
|
3182
|
-
5, 11, 0, 0, 440, 441, 5, 12, 0, 0, 441, 442, 5, 1, 0, 0, 442, 443, 5, 45, 0, 0, 443, 446, 5, 47,
|
|
3183
|
-
0, 0, 444, 447, 5, 45, 0, 0, 445, 447, 3, 82, 41, 0, 446, 444, 1, 0, 0, 0, 446, 445, 1, 0, 0, 0,
|
|
3184
|
-
447, 448, 1, 0, 0, 0, 448, 446, 1, 0, 0, 0, 448, 449, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 451,
|
|
3185
|
-
5, 48, 0, 0, 451, 77, 1, 0, 0, 0, 452, 453, 5, 11, 0, 0, 453, 454, 5, 13, 0, 0, 454, 455, 5, 1, 0,
|
|
3186
|
-
0, 455, 456, 5, 45, 0, 0, 456, 459, 5, 47, 0, 0, 457, 460, 5, 45, 0, 0, 458, 460, 3, 80, 40, 0,
|
|
3187
|
-
459, 457, 1, 0, 0, 0, 459, 458, 1, 0, 0, 0, 460, 461, 1, 0, 0, 0, 461, 459, 1, 0, 0, 0, 461, 462,
|
|
3188
|
-
1, 0, 0, 0, 462, 463, 1, 0, 0, 0, 463, 464, 5, 48, 0, 0, 464, 79, 1, 0, 0, 0, 465, 466, 7, 9, 0, 0,
|
|
3189
|
-
466, 472, 5, 1, 0, 0, 467, 473, 3, 48, 24, 0, 468, 469, 5, 33, 0, 0, 469, 470, 3, 48, 24, 0, 470,
|
|
3190
|
-
471, 5, 34, 0, 0, 471, 473, 1, 0, 0, 0, 472, 467, 1, 0, 0, 0, 472, 468, 1, 0, 0, 0, 473, 81, 1, 0,
|
|
3191
|
-
0, 0, 474, 475, 3, 84, 42, 0, 475, 476, 5, 1, 0, 0, 476, 477, 3, 86, 43, 0, 477, 83, 1, 0, 0, 0,
|
|
3192
|
-
478, 479, 7, 10, 0, 0, 479, 85, 1, 0, 0, 0, 480, 481, 5, 45, 0, 0, 481, 484, 5, 47, 0, 0, 482, 485,
|
|
3193
|
-
5, 45, 0, 0, 483, 485, 3, 82, 41, 0, 484, 482, 1, 0, 0, 0, 484, 483, 1, 0, 0, 0, 485, 486, 1, 0,
|
|
3194
|
-
0, 0, 486, 484, 1, 0, 0, 0, 486, 487, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 488, 498, 5, 48, 0, 0, 489,
|
|
3195
|
-
494, 3, 54, 27, 0, 490, 491, 5, 2, 0, 0, 491, 493, 3, 54, 27, 0, 492, 490, 1, 0, 0, 0, 493, 496,
|
|
3196
|
-
1, 0, 0, 0, 494, 492, 1, 0, 0, 0, 494, 495, 1, 0, 0, 0, 495, 498, 1, 0, 0, 0, 496, 494, 1, 0, 0, 0,
|
|
3197
|
-
497, 480, 1, 0, 0, 0, 497, 489, 1, 0, 0, 0, 498, 87, 1, 0, 0, 0, 499, 500, 5, 6, 0, 0, 500, 501,
|
|
3198
|
-
5, 38, 0, 0, 501, 502, 5, 7, 0, 0, 502, 89, 1, 0, 0, 0, 503, 504, 5, 14, 0, 0, 504, 508, 5, 37, 0,
|
|
3199
|
-
0, 505, 507, 7, 1, 0, 0, 506, 505, 1, 0, 0, 0, 507, 510, 1, 0, 0, 0, 508, 506, 1, 0, 0, 0, 508, 509,
|
|
3200
|
-
1, 0, 0, 0, 509, 91, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 511, 512, 5, 19, 0, 0, 512, 513, 5, 37, 0,
|
|
3201
|
-
0, 513, 93, 1, 0, 0, 0, 514, 515, 5, 24, 0, 0, 515, 516, 5, 37, 0, 0, 516, 95, 1, 0, 0, 0, 517, 518,
|
|
3202
|
-
5, 8, 0, 0, 518, 519, 5, 1, 0, 0, 519, 520, 5, 45, 0, 0, 520, 523, 5, 47, 0, 0, 521, 524, 5, 45,
|
|
3203
|
-
0, 0, 522, 524, 3, 2, 1, 0, 523, 521, 1, 0, 0, 0, 523, 522, 1, 0, 0, 0, 524, 525, 1, 0, 0, 0, 525,
|
|
3204
|
-
523, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 528, 5, 48, 0, 0, 528, 97, 1, 0,
|
|
3205
|
-
0, 0, 64, 100, 102, 122, 127, 135, 137, 147, 149, 159, 162, 167, 171, 181, 184, 192, 196,
|
|
3206
|
-
199, 209, 217, 219, 230, 241, 243, 249, 255, 259, 265, 267, 286, 293, 301, 304, 322, 329,
|
|
3207
|
-
341, 343, 351, 355, 361, 369, 371, 377, 384, 393, 405, 408, 411, 417, 422, 427, 430, 434,
|
|
3208
|
-
446, 448, 459, 461, 472, 484, 486, 494, 497, 508, 523, 525];
|
|
3209
|
-
static __ATN;
|
|
3210
|
-
static get _ATN() {
|
|
3211
|
-
if (!CircuitScriptParser.__ATN) {
|
|
3212
|
-
CircuitScriptParser.__ATN = new ATNDeserializer().deserialize(CircuitScriptParser._serializedATN);
|
|
3213
|
-
}
|
|
3214
|
-
return CircuitScriptParser.__ATN;
|
|
3215
|
-
}
|
|
3216
|
-
static DecisionsToDFA = CircuitScriptParser._ATN.decisionToState.map((ds, index) => new DFA(ds, index));
|
|
3217
|
-
}
|
|
3218
|
-
export class ScriptContext extends ParserRuleContext {
|
|
3219
|
-
constructor(parser, parent, invokingState) {
|
|
3220
|
-
super(parent, invokingState);
|
|
3221
|
-
this.parser = parser;
|
|
3222
|
-
}
|
|
3223
|
-
EOF() {
|
|
3224
|
-
return this.getToken(CircuitScriptParser.EOF, 0);
|
|
3225
|
-
}
|
|
3226
|
-
expression_list() {
|
|
3227
|
-
return this.getTypedRuleContexts(ExpressionContext);
|
|
3228
|
-
}
|
|
3229
|
-
expression(i) {
|
|
3230
|
-
return this.getTypedRuleContext(ExpressionContext, i);
|
|
3231
|
-
}
|
|
3232
|
-
NEWLINE_list() {
|
|
3233
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3234
|
-
}
|
|
3235
|
-
NEWLINE(i) {
|
|
3236
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3237
|
-
}
|
|
3238
|
-
get ruleIndex() {
|
|
3239
|
-
return CircuitScriptParser.RULE_script;
|
|
3240
|
-
}
|
|
3241
|
-
accept(visitor) {
|
|
3242
|
-
if (visitor.visitScript) {
|
|
3243
|
-
return visitor.visitScript(this);
|
|
3244
|
-
}
|
|
3245
|
-
else {
|
|
3246
|
-
return visitor.visitChildren(this);
|
|
3247
|
-
}
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
export class ExpressionContext extends ParserRuleContext {
|
|
3251
|
-
constructor(parser, parent, invokingState) {
|
|
3252
|
-
super(parent, invokingState);
|
|
3253
|
-
this.parser = parser;
|
|
3254
|
-
}
|
|
3255
|
-
add_component_expr() {
|
|
3256
|
-
return this.getTypedRuleContext(Add_component_exprContext, 0);
|
|
3257
|
-
}
|
|
3258
|
-
to_component_expr() {
|
|
3259
|
-
return this.getTypedRuleContext(To_component_exprContext, 0);
|
|
3260
|
-
}
|
|
3261
|
-
at_component_expr() {
|
|
3262
|
-
return this.getTypedRuleContext(At_component_exprContext, 0);
|
|
3263
|
-
}
|
|
3264
|
-
assignment_expr() {
|
|
3265
|
-
return this.getTypedRuleContext(Assignment_exprContext, 0);
|
|
3266
|
-
}
|
|
3267
|
-
property_set_expr() {
|
|
3268
|
-
return this.getTypedRuleContext(Property_set_exprContext, 0);
|
|
3269
|
-
}
|
|
3270
|
-
property_set_expr2() {
|
|
3271
|
-
return this.getTypedRuleContext(Property_set_expr2Context, 0);
|
|
3272
|
-
}
|
|
3273
|
-
double_dot_property_set_expr() {
|
|
3274
|
-
return this.getTypedRuleContext(Double_dot_property_set_exprContext, 0);
|
|
3275
|
-
}
|
|
3276
|
-
break_keyword() {
|
|
3277
|
-
return this.getTypedRuleContext(Break_keywordContext, 0);
|
|
3278
|
-
}
|
|
3279
|
-
function_def_expr() {
|
|
3280
|
-
return this.getTypedRuleContext(Function_def_exprContext, 0);
|
|
3281
|
-
}
|
|
3282
|
-
wire_expr() {
|
|
3283
|
-
return this.getTypedRuleContext(Wire_exprContext, 0);
|
|
3284
|
-
}
|
|
3285
|
-
import_expr() {
|
|
3286
|
-
return this.getTypedRuleContext(Import_exprContext, 0);
|
|
3287
|
-
}
|
|
3288
|
-
frame_expr() {
|
|
3289
|
-
return this.getTypedRuleContext(Frame_exprContext, 0);
|
|
3290
|
-
}
|
|
3291
|
-
atom_expr() {
|
|
3292
|
-
return this.getTypedRuleContext(Atom_exprContext, 0);
|
|
3293
|
-
}
|
|
3294
|
-
at_block() {
|
|
3295
|
-
return this.getTypedRuleContext(At_blockContext, 0);
|
|
3296
|
-
}
|
|
3297
|
-
path_blocks() {
|
|
3298
|
-
return this.getTypedRuleContext(Path_blocksContext, 0);
|
|
3299
|
-
}
|
|
3300
|
-
point_expr() {
|
|
3301
|
-
return this.getTypedRuleContext(Point_exprContext, 0);
|
|
3302
|
-
}
|
|
3303
|
-
get ruleIndex() {
|
|
3304
|
-
return CircuitScriptParser.RULE_expression;
|
|
3305
|
-
}
|
|
3306
|
-
accept(visitor) {
|
|
3307
|
-
if (visitor.visitExpression) {
|
|
3308
|
-
return visitor.visitExpression(this);
|
|
3309
|
-
}
|
|
3310
|
-
else {
|
|
3311
|
-
return visitor.visitChildren(this);
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
}
|
|
3315
|
-
export class Path_blocksContext extends ParserRuleContext {
|
|
3316
|
-
constructor(parser, parent, invokingState) {
|
|
3317
|
-
super(parent, invokingState);
|
|
3318
|
-
this.parser = parser;
|
|
3319
|
-
}
|
|
3320
|
-
path_block_inner_list() {
|
|
3321
|
-
return this.getTypedRuleContexts(Path_block_innerContext);
|
|
3322
|
-
}
|
|
3323
|
-
path_block_inner(i) {
|
|
3324
|
-
return this.getTypedRuleContext(Path_block_innerContext, i);
|
|
3325
|
-
}
|
|
3326
|
-
get ruleIndex() {
|
|
3327
|
-
return CircuitScriptParser.RULE_path_blocks;
|
|
3328
|
-
}
|
|
3329
|
-
accept(visitor) {
|
|
3330
|
-
if (visitor.visitPath_blocks) {
|
|
3331
|
-
return visitor.visitPath_blocks(this);
|
|
3332
|
-
}
|
|
3333
|
-
else {
|
|
3334
|
-
return visitor.visitChildren(this);
|
|
3335
|
-
}
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
export class Path_block_innerContext extends ParserRuleContext {
|
|
3339
|
-
constructor(parser, parent, invokingState) {
|
|
3340
|
-
super(parent, invokingState);
|
|
3341
|
-
this.parser = parser;
|
|
3342
|
-
}
|
|
3343
|
-
NEWLINE_list() {
|
|
3344
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3345
|
-
}
|
|
3346
|
-
NEWLINE(i) {
|
|
3347
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3348
|
-
}
|
|
3349
|
-
INDENT() {
|
|
3350
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
3351
|
-
}
|
|
3352
|
-
DEDENT() {
|
|
3353
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
3354
|
-
}
|
|
3355
|
-
Branch() {
|
|
3356
|
-
return this.getToken(CircuitScriptParser.Branch, 0);
|
|
3357
|
-
}
|
|
3358
|
-
Join() {
|
|
3359
|
-
return this.getToken(CircuitScriptParser.Join, 0);
|
|
3360
|
-
}
|
|
3361
|
-
Parallel() {
|
|
3362
|
-
return this.getToken(CircuitScriptParser.Parallel, 0);
|
|
3363
|
-
}
|
|
3364
|
-
Point() {
|
|
3365
|
-
return this.getToken(CircuitScriptParser.Point, 0);
|
|
3366
|
-
}
|
|
3367
|
-
expression_list() {
|
|
3368
|
-
return this.getTypedRuleContexts(ExpressionContext);
|
|
3369
|
-
}
|
|
3370
|
-
expression(i) {
|
|
3371
|
-
return this.getTypedRuleContext(ExpressionContext, i);
|
|
3372
|
-
}
|
|
3373
|
-
get ruleIndex() {
|
|
3374
|
-
return CircuitScriptParser.RULE_path_block_inner;
|
|
3375
|
-
}
|
|
3376
|
-
accept(visitor) {
|
|
3377
|
-
if (visitor.visitPath_block_inner) {
|
|
3378
|
-
return visitor.visitPath_block_inner(this);
|
|
3379
|
-
}
|
|
3380
|
-
else {
|
|
3381
|
-
return visitor.visitChildren(this);
|
|
3382
|
-
}
|
|
3383
|
-
}
|
|
3384
|
-
}
|
|
3385
|
-
export class Property_set_expr2Context extends ParserRuleContext {
|
|
3386
|
-
constructor(parser, parent, invokingState) {
|
|
3387
|
-
super(parent, invokingState);
|
|
3388
|
-
this.parser = parser;
|
|
3389
|
-
}
|
|
3390
|
-
atom_expr() {
|
|
3391
|
-
return this.getTypedRuleContext(Atom_exprContext, 0);
|
|
3392
|
-
}
|
|
3393
|
-
NEWLINE_list() {
|
|
3394
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3395
|
-
}
|
|
3396
|
-
NEWLINE(i) {
|
|
3397
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3398
|
-
}
|
|
3399
|
-
INDENT() {
|
|
3400
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
3401
|
-
}
|
|
3402
|
-
DEDENT() {
|
|
3403
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
3404
|
-
}
|
|
3405
|
-
assignment_expr2_list() {
|
|
3406
|
-
return this.getTypedRuleContexts(Assignment_expr2Context);
|
|
3407
|
-
}
|
|
3408
|
-
assignment_expr2(i) {
|
|
3409
|
-
return this.getTypedRuleContext(Assignment_expr2Context, i);
|
|
3410
|
-
}
|
|
3411
|
-
get ruleIndex() {
|
|
3412
|
-
return CircuitScriptParser.RULE_property_set_expr2;
|
|
3413
|
-
}
|
|
3414
|
-
accept(visitor) {
|
|
3415
|
-
if (visitor.visitProperty_set_expr2) {
|
|
3416
|
-
return visitor.visitProperty_set_expr2(this);
|
|
3417
|
-
}
|
|
3418
|
-
else {
|
|
3419
|
-
return visitor.visitChildren(this);
|
|
3420
|
-
}
|
|
3421
|
-
}
|
|
3422
|
-
}
|
|
3423
|
-
export class Assignment_expr2Context extends ParserRuleContext {
|
|
3424
|
-
constructor(parser, parent, invokingState) {
|
|
3425
|
-
super(parent, invokingState);
|
|
3426
|
-
this.parser = parser;
|
|
3427
|
-
}
|
|
3428
|
-
value_expr() {
|
|
3429
|
-
return this.getTypedRuleContext(Value_exprContext, 0);
|
|
3430
|
-
}
|
|
3431
|
-
ID() {
|
|
3432
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
3433
|
-
}
|
|
3434
|
-
INTEGER_VALUE() {
|
|
3435
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
3436
|
-
}
|
|
3437
|
-
get ruleIndex() {
|
|
3438
|
-
return CircuitScriptParser.RULE_assignment_expr2;
|
|
3439
|
-
}
|
|
3440
|
-
accept(visitor) {
|
|
3441
|
-
if (visitor.visitAssignment_expr2) {
|
|
3442
|
-
return visitor.visitAssignment_expr2(this);
|
|
3443
|
-
}
|
|
3444
|
-
else {
|
|
3445
|
-
return visitor.visitChildren(this);
|
|
3446
|
-
}
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
export class Data_expr_with_assignmentContext extends ParserRuleContext {
|
|
3450
|
-
constructor(parser, parent, invokingState) {
|
|
3451
|
-
super(parent, invokingState);
|
|
3452
|
-
this.parser = parser;
|
|
3453
|
-
}
|
|
3454
|
-
data_expr() {
|
|
3455
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
3456
|
-
}
|
|
3457
|
-
assignment_expr() {
|
|
3458
|
-
return this.getTypedRuleContext(Assignment_exprContext, 0);
|
|
3459
|
-
}
|
|
3460
|
-
pin_select_expr() {
|
|
3461
|
-
return this.getTypedRuleContext(Pin_select_exprContext, 0);
|
|
3462
|
-
}
|
|
3463
|
-
get ruleIndex() {
|
|
3464
|
-
return CircuitScriptParser.RULE_data_expr_with_assignment;
|
|
3465
|
-
}
|
|
3466
|
-
accept(visitor) {
|
|
3467
|
-
if (visitor.visitData_expr_with_assignment) {
|
|
3468
|
-
return visitor.visitData_expr_with_assignment(this);
|
|
3469
|
-
}
|
|
3470
|
-
else {
|
|
3471
|
-
return visitor.visitChildren(this);
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
|
-
}
|
|
3475
|
-
export class Add_component_exprContext extends ParserRuleContext {
|
|
3476
|
-
constructor(parser, parent, invokingState) {
|
|
3477
|
-
super(parent, invokingState);
|
|
3478
|
-
this.parser = parser;
|
|
3479
|
-
}
|
|
3480
|
-
Add() {
|
|
3481
|
-
return this.getToken(CircuitScriptParser.Add, 0);
|
|
3482
|
-
}
|
|
3483
|
-
data_expr_with_assignment() {
|
|
3484
|
-
return this.getTypedRuleContext(Data_expr_with_assignmentContext, 0);
|
|
3485
|
-
}
|
|
3486
|
-
ID() {
|
|
3487
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
3488
|
-
}
|
|
3489
|
-
get ruleIndex() {
|
|
3490
|
-
return CircuitScriptParser.RULE_add_component_expr;
|
|
3491
|
-
}
|
|
3492
|
-
accept(visitor) {
|
|
3493
|
-
if (visitor.visitAdd_component_expr) {
|
|
3494
|
-
return visitor.visitAdd_component_expr(this);
|
|
3495
|
-
}
|
|
3496
|
-
else {
|
|
3497
|
-
return visitor.visitChildren(this);
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
}
|
|
3501
|
-
export class Component_select_exprContext extends ParserRuleContext {
|
|
3502
|
-
constructor(parser, parent, invokingState) {
|
|
3503
|
-
super(parent, invokingState);
|
|
3504
|
-
this.parser = parser;
|
|
3505
|
-
}
|
|
3506
|
-
data_expr_with_assignment() {
|
|
3507
|
-
return this.getTypedRuleContext(Data_expr_with_assignmentContext, 0);
|
|
3508
|
-
}
|
|
3509
|
-
pin_select_expr() {
|
|
3510
|
-
return this.getTypedRuleContext(Pin_select_exprContext, 0);
|
|
3511
|
-
}
|
|
3512
|
-
get ruleIndex() {
|
|
3513
|
-
return CircuitScriptParser.RULE_component_select_expr;
|
|
3514
|
-
}
|
|
3515
|
-
accept(visitor) {
|
|
3516
|
-
if (visitor.visitComponent_select_expr) {
|
|
3517
|
-
return visitor.visitComponent_select_expr(this);
|
|
3518
|
-
}
|
|
3519
|
-
else {
|
|
3520
|
-
return visitor.visitChildren(this);
|
|
3521
|
-
}
|
|
3522
|
-
}
|
|
3523
|
-
}
|
|
3524
|
-
export class Pin_select_exprContext extends ParserRuleContext {
|
|
3525
|
-
constructor(parser, parent, invokingState) {
|
|
3526
|
-
super(parent, invokingState);
|
|
3527
|
-
this.parser = parser;
|
|
3528
|
-
}
|
|
3529
|
-
Pin() {
|
|
3530
|
-
return this.getToken(CircuitScriptParser.Pin, 0);
|
|
3531
|
-
}
|
|
3532
|
-
INTEGER_VALUE() {
|
|
3533
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
3534
|
-
}
|
|
3535
|
-
STRING_VALUE() {
|
|
3536
|
-
return this.getToken(CircuitScriptParser.STRING_VALUE, 0);
|
|
3537
|
-
}
|
|
3538
|
-
get ruleIndex() {
|
|
3539
|
-
return CircuitScriptParser.RULE_pin_select_expr;
|
|
3540
|
-
}
|
|
3541
|
-
accept(visitor) {
|
|
3542
|
-
if (visitor.visitPin_select_expr) {
|
|
3543
|
-
return visitor.visitPin_select_expr(this);
|
|
3544
|
-
}
|
|
3545
|
-
else {
|
|
3546
|
-
return visitor.visitChildren(this);
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3549
|
-
}
|
|
3550
|
-
export class Pin_select_expr2Context extends ParserRuleContext {
|
|
3551
|
-
constructor(parser, parent, invokingState) {
|
|
3552
|
-
super(parent, invokingState);
|
|
3553
|
-
this.parser = parser;
|
|
3554
|
-
}
|
|
3555
|
-
INTEGER_VALUE() {
|
|
3556
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
3557
|
-
}
|
|
3558
|
-
STRING_VALUE() {
|
|
3559
|
-
return this.getToken(CircuitScriptParser.STRING_VALUE, 0);
|
|
3560
|
-
}
|
|
3561
|
-
get ruleIndex() {
|
|
3562
|
-
return CircuitScriptParser.RULE_pin_select_expr2;
|
|
3563
|
-
}
|
|
3564
|
-
accept(visitor) {
|
|
3565
|
-
if (visitor.visitPin_select_expr2) {
|
|
3566
|
-
return visitor.visitPin_select_expr2(this);
|
|
3567
|
-
}
|
|
3568
|
-
else {
|
|
3569
|
-
return visitor.visitChildren(this);
|
|
3570
|
-
}
|
|
3571
|
-
}
|
|
3572
|
-
}
|
|
3573
|
-
export class At_component_exprContext extends ParserRuleContext {
|
|
3574
|
-
constructor(parser, parent, invokingState) {
|
|
3575
|
-
super(parent, invokingState);
|
|
3576
|
-
this.parser = parser;
|
|
3577
|
-
}
|
|
3578
|
-
At() {
|
|
3579
|
-
return this.getToken(CircuitScriptParser.At, 0);
|
|
3580
|
-
}
|
|
3581
|
-
Point() {
|
|
3582
|
-
return this.getToken(CircuitScriptParser.Point, 0);
|
|
3583
|
-
}
|
|
3584
|
-
component_select_expr() {
|
|
3585
|
-
return this.getTypedRuleContext(Component_select_exprContext, 0);
|
|
3586
|
-
}
|
|
3587
|
-
ID() {
|
|
3588
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
3589
|
-
}
|
|
3590
|
-
get ruleIndex() {
|
|
3591
|
-
return CircuitScriptParser.RULE_at_component_expr;
|
|
3592
|
-
}
|
|
3593
|
-
accept(visitor) {
|
|
3594
|
-
if (visitor.visitAt_component_expr) {
|
|
3595
|
-
return visitor.visitAt_component_expr(this);
|
|
3596
|
-
}
|
|
3597
|
-
else {
|
|
3598
|
-
return visitor.visitChildren(this);
|
|
3599
|
-
}
|
|
3600
|
-
}
|
|
3601
|
-
}
|
|
3602
|
-
export class To_component_exprContext extends ParserRuleContext {
|
|
3603
|
-
constructor(parser, parent, invokingState) {
|
|
3604
|
-
super(parent, invokingState);
|
|
3605
|
-
this.parser = parser;
|
|
3606
|
-
}
|
|
3607
|
-
To() {
|
|
3608
|
-
return this.getToken(CircuitScriptParser.To, 0);
|
|
3609
|
-
}
|
|
3610
|
-
Point() {
|
|
3611
|
-
return this.getToken(CircuitScriptParser.Point, 0);
|
|
3612
|
-
}
|
|
3613
|
-
component_select_expr_list() {
|
|
3614
|
-
return this.getTypedRuleContexts(Component_select_exprContext);
|
|
3615
|
-
}
|
|
3616
|
-
component_select_expr(i) {
|
|
3617
|
-
return this.getTypedRuleContext(Component_select_exprContext, i);
|
|
3618
|
-
}
|
|
3619
|
-
ID() {
|
|
3620
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
3621
|
-
}
|
|
3622
|
-
get ruleIndex() {
|
|
3623
|
-
return CircuitScriptParser.RULE_to_component_expr;
|
|
3624
|
-
}
|
|
3625
|
-
accept(visitor) {
|
|
3626
|
-
if (visitor.visitTo_component_expr) {
|
|
3627
|
-
return visitor.visitTo_component_expr(this);
|
|
3628
|
-
}
|
|
3629
|
-
else {
|
|
3630
|
-
return visitor.visitChildren(this);
|
|
3631
|
-
}
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
export class At_to_multiple_exprContext extends ParserRuleContext {
|
|
3635
|
-
constructor(parser, parent, invokingState) {
|
|
3636
|
-
super(parent, invokingState);
|
|
3637
|
-
this.parser = parser;
|
|
3638
|
-
}
|
|
3639
|
-
At() {
|
|
3640
|
-
return this.getToken(CircuitScriptParser.At, 0);
|
|
3641
|
-
}
|
|
3642
|
-
component_select_expr_list() {
|
|
3643
|
-
return this.getTypedRuleContexts(Component_select_exprContext);
|
|
3644
|
-
}
|
|
3645
|
-
component_select_expr(i) {
|
|
3646
|
-
return this.getTypedRuleContext(Component_select_exprContext, i);
|
|
3647
|
-
}
|
|
3648
|
-
To() {
|
|
3649
|
-
return this.getToken(CircuitScriptParser.To, 0);
|
|
3650
|
-
}
|
|
3651
|
-
NEWLINE_list() {
|
|
3652
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3653
|
-
}
|
|
3654
|
-
NEWLINE(i) {
|
|
3655
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3656
|
-
}
|
|
3657
|
-
INDENT() {
|
|
3658
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
3659
|
-
}
|
|
3660
|
-
DEDENT() {
|
|
3661
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
3662
|
-
}
|
|
3663
|
-
at_to_multiple_line_expr_list() {
|
|
3664
|
-
return this.getTypedRuleContexts(At_to_multiple_line_exprContext);
|
|
3665
|
-
}
|
|
3666
|
-
at_to_multiple_line_expr(i) {
|
|
3667
|
-
return this.getTypedRuleContext(At_to_multiple_line_exprContext, i);
|
|
3668
|
-
}
|
|
3669
|
-
get ruleIndex() {
|
|
3670
|
-
return CircuitScriptParser.RULE_at_to_multiple_expr;
|
|
3671
|
-
}
|
|
3672
|
-
accept(visitor) {
|
|
3673
|
-
if (visitor.visitAt_to_multiple_expr) {
|
|
3674
|
-
return visitor.visitAt_to_multiple_expr(this);
|
|
3675
|
-
}
|
|
3676
|
-
else {
|
|
3677
|
-
return visitor.visitChildren(this);
|
|
3678
|
-
}
|
|
3679
|
-
}
|
|
3680
|
-
}
|
|
3681
|
-
export class At_to_multiple_line_exprContext extends ParserRuleContext {
|
|
3682
|
-
constructor(parser, parent, invokingState) {
|
|
3683
|
-
super(parent, invokingState);
|
|
3684
|
-
this.parser = parser;
|
|
3685
|
-
}
|
|
3686
|
-
pin_select_expr2() {
|
|
3687
|
-
return this.getTypedRuleContext(Pin_select_expr2Context, 0);
|
|
3688
|
-
}
|
|
3689
|
-
at_to_multiple_line_expr_to_pin_list() {
|
|
3690
|
-
return this.getTypedRuleContexts(At_to_multiple_line_expr_to_pinContext);
|
|
3691
|
-
}
|
|
3692
|
-
at_to_multiple_line_expr_to_pin(i) {
|
|
3693
|
-
return this.getTypedRuleContext(At_to_multiple_line_expr_to_pinContext, i);
|
|
3694
|
-
}
|
|
3695
|
-
get ruleIndex() {
|
|
3696
|
-
return CircuitScriptParser.RULE_at_to_multiple_line_expr;
|
|
3697
|
-
}
|
|
3698
|
-
accept(visitor) {
|
|
3699
|
-
if (visitor.visitAt_to_multiple_line_expr) {
|
|
3700
|
-
return visitor.visitAt_to_multiple_line_expr(this);
|
|
3701
|
-
}
|
|
3702
|
-
else {
|
|
3703
|
-
return visitor.visitChildren(this);
|
|
3704
|
-
}
|
|
3705
|
-
}
|
|
3706
|
-
}
|
|
3707
|
-
export class At_to_multiple_line_expr_to_pinContext extends ParserRuleContext {
|
|
3708
|
-
constructor(parser, parent, invokingState) {
|
|
3709
|
-
super(parent, invokingState);
|
|
3710
|
-
this.parser = parser;
|
|
3711
|
-
}
|
|
3712
|
-
INTEGER_VALUE() {
|
|
3713
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
3714
|
-
}
|
|
3715
|
-
NOT_CONNECTED() {
|
|
3716
|
-
return this.getToken(CircuitScriptParser.NOT_CONNECTED, 0);
|
|
3717
|
-
}
|
|
3718
|
-
get ruleIndex() {
|
|
3719
|
-
return CircuitScriptParser.RULE_at_to_multiple_line_expr_to_pin;
|
|
3720
|
-
}
|
|
3721
|
-
accept(visitor) {
|
|
3722
|
-
if (visitor.visitAt_to_multiple_line_expr_to_pin) {
|
|
3723
|
-
return visitor.visitAt_to_multiple_line_expr_to_pin(this);
|
|
3724
|
-
}
|
|
3725
|
-
else {
|
|
3726
|
-
return visitor.visitChildren(this);
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
}
|
|
3730
|
-
export class At_blockContext extends ParserRuleContext {
|
|
3731
|
-
constructor(parser, parent, invokingState) {
|
|
3732
|
-
super(parent, invokingState);
|
|
3733
|
-
this.parser = parser;
|
|
3734
|
-
}
|
|
3735
|
-
at_component_expr() {
|
|
3736
|
-
return this.getTypedRuleContext(At_component_exprContext, 0);
|
|
3737
|
-
}
|
|
3738
|
-
NEWLINE_list() {
|
|
3739
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3740
|
-
}
|
|
3741
|
-
NEWLINE(i) {
|
|
3742
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3743
|
-
}
|
|
3744
|
-
INDENT() {
|
|
3745
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
3746
|
-
}
|
|
3747
|
-
DEDENT() {
|
|
3748
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
3749
|
-
}
|
|
3750
|
-
at_block_expressions_list() {
|
|
3751
|
-
return this.getTypedRuleContexts(At_block_expressionsContext);
|
|
3752
|
-
}
|
|
3753
|
-
at_block_expressions(i) {
|
|
3754
|
-
return this.getTypedRuleContext(At_block_expressionsContext, i);
|
|
3755
|
-
}
|
|
3756
|
-
get ruleIndex() {
|
|
3757
|
-
return CircuitScriptParser.RULE_at_block;
|
|
3758
|
-
}
|
|
3759
|
-
accept(visitor) {
|
|
3760
|
-
if (visitor.visitAt_block) {
|
|
3761
|
-
return visitor.visitAt_block(this);
|
|
3762
|
-
}
|
|
3763
|
-
else {
|
|
3764
|
-
return visitor.visitChildren(this);
|
|
3765
|
-
}
|
|
3766
|
-
}
|
|
3767
|
-
}
|
|
3768
|
-
export class At_block_expressionsContext extends ParserRuleContext {
|
|
3769
|
-
constructor(parser, parent, invokingState) {
|
|
3770
|
-
super(parent, invokingState);
|
|
3771
|
-
this.parser = parser;
|
|
3772
|
-
}
|
|
3773
|
-
expression() {
|
|
3774
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
3775
|
-
}
|
|
3776
|
-
at_block_pin_expr() {
|
|
3777
|
-
return this.getTypedRuleContext(At_block_pin_exprContext, 0);
|
|
3778
|
-
}
|
|
3779
|
-
get ruleIndex() {
|
|
3780
|
-
return CircuitScriptParser.RULE_at_block_expressions;
|
|
3781
|
-
}
|
|
3782
|
-
accept(visitor) {
|
|
3783
|
-
if (visitor.visitAt_block_expressions) {
|
|
3784
|
-
return visitor.visitAt_block_expressions(this);
|
|
3785
|
-
}
|
|
3786
|
-
else {
|
|
3787
|
-
return visitor.visitChildren(this);
|
|
3788
|
-
}
|
|
3789
|
-
}
|
|
3790
|
-
}
|
|
3791
|
-
export class At_block_pin_exprContext extends ParserRuleContext {
|
|
3792
|
-
constructor(parser, parent, invokingState) {
|
|
3793
|
-
super(parent, invokingState);
|
|
3794
|
-
this.parser = parser;
|
|
3795
|
-
}
|
|
3796
|
-
pin_select_expr2() {
|
|
3797
|
-
return this.getTypedRuleContext(Pin_select_expr2Context, 0);
|
|
3798
|
-
}
|
|
3799
|
-
at_block_pin_expression_simple() {
|
|
3800
|
-
return this.getTypedRuleContext(At_block_pin_expression_simpleContext, 0);
|
|
3801
|
-
}
|
|
3802
|
-
at_block_pin_expression_complex() {
|
|
3803
|
-
return this.getTypedRuleContext(At_block_pin_expression_complexContext, 0);
|
|
3804
|
-
}
|
|
3805
|
-
get ruleIndex() {
|
|
3806
|
-
return CircuitScriptParser.RULE_at_block_pin_expr;
|
|
3807
|
-
}
|
|
3808
|
-
accept(visitor) {
|
|
3809
|
-
if (visitor.visitAt_block_pin_expr) {
|
|
3810
|
-
return visitor.visitAt_block_pin_expr(this);
|
|
3811
|
-
}
|
|
3812
|
-
else {
|
|
3813
|
-
return visitor.visitChildren(this);
|
|
3814
|
-
}
|
|
3815
|
-
}
|
|
3816
|
-
}
|
|
3817
|
-
export class At_block_pin_expression_simpleContext extends ParserRuleContext {
|
|
3818
|
-
constructor(parser, parent, invokingState) {
|
|
3819
|
-
super(parent, invokingState);
|
|
3820
|
-
this.parser = parser;
|
|
3821
|
-
}
|
|
3822
|
-
expression() {
|
|
3823
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
3824
|
-
}
|
|
3825
|
-
NOT_CONNECTED() {
|
|
3826
|
-
return this.getToken(CircuitScriptParser.NOT_CONNECTED, 0);
|
|
3827
|
-
}
|
|
3828
|
-
get ruleIndex() {
|
|
3829
|
-
return CircuitScriptParser.RULE_at_block_pin_expression_simple;
|
|
3830
|
-
}
|
|
3831
|
-
accept(visitor) {
|
|
3832
|
-
if (visitor.visitAt_block_pin_expression_simple) {
|
|
3833
|
-
return visitor.visitAt_block_pin_expression_simple(this);
|
|
3834
|
-
}
|
|
3835
|
-
else {
|
|
3836
|
-
return visitor.visitChildren(this);
|
|
3837
|
-
}
|
|
3838
|
-
}
|
|
3839
|
-
}
|
|
3840
|
-
export class At_block_pin_expression_complexContext extends ParserRuleContext {
|
|
3841
|
-
constructor(parser, parent, invokingState) {
|
|
3842
|
-
super(parent, invokingState);
|
|
3843
|
-
this.parser = parser;
|
|
3844
|
-
}
|
|
3845
|
-
NEWLINE_list() {
|
|
3846
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
3847
|
-
}
|
|
3848
|
-
NEWLINE(i) {
|
|
3849
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
3850
|
-
}
|
|
3851
|
-
INDENT() {
|
|
3852
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
3853
|
-
}
|
|
3854
|
-
DEDENT() {
|
|
3855
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
3856
|
-
}
|
|
3857
|
-
expression_list() {
|
|
3858
|
-
return this.getTypedRuleContexts(ExpressionContext);
|
|
3859
|
-
}
|
|
3860
|
-
expression(i) {
|
|
3861
|
-
return this.getTypedRuleContext(ExpressionContext, i);
|
|
3862
|
-
}
|
|
3863
|
-
get ruleIndex() {
|
|
3864
|
-
return CircuitScriptParser.RULE_at_block_pin_expression_complex;
|
|
3865
|
-
}
|
|
3866
|
-
accept(visitor) {
|
|
3867
|
-
if (visitor.visitAt_block_pin_expression_complex) {
|
|
3868
|
-
return visitor.visitAt_block_pin_expression_complex(this);
|
|
3869
|
-
}
|
|
3870
|
-
else {
|
|
3871
|
-
return visitor.visitChildren(this);
|
|
3872
|
-
}
|
|
3873
|
-
}
|
|
3874
|
-
}
|
|
3875
|
-
export class Break_keywordContext extends ParserRuleContext {
|
|
3876
|
-
constructor(parser, parent, invokingState) {
|
|
3877
|
-
super(parent, invokingState);
|
|
3878
|
-
this.parser = parser;
|
|
3879
|
-
}
|
|
3880
|
-
Break() {
|
|
3881
|
-
return this.getToken(CircuitScriptParser.Break, 0);
|
|
3882
|
-
}
|
|
3883
|
-
get ruleIndex() {
|
|
3884
|
-
return CircuitScriptParser.RULE_break_keyword;
|
|
3885
|
-
}
|
|
3886
|
-
accept(visitor) {
|
|
3887
|
-
if (visitor.visitBreak_keyword) {
|
|
3888
|
-
return visitor.visitBreak_keyword(this);
|
|
3889
|
-
}
|
|
3890
|
-
else {
|
|
3891
|
-
return visitor.visitChildren(this);
|
|
3892
|
-
}
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
export class Assignment_exprContext extends ParserRuleContext {
|
|
3896
|
-
constructor(parser, parent, invokingState) {
|
|
3897
|
-
super(parent, invokingState);
|
|
3898
|
-
this.parser = parser;
|
|
3899
|
-
}
|
|
3900
|
-
atom_expr() {
|
|
3901
|
-
return this.getTypedRuleContext(Atom_exprContext, 0);
|
|
3902
|
-
}
|
|
3903
|
-
data_expr() {
|
|
3904
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
3905
|
-
}
|
|
3906
|
-
get ruleIndex() {
|
|
3907
|
-
return CircuitScriptParser.RULE_assignment_expr;
|
|
3908
|
-
}
|
|
3909
|
-
accept(visitor) {
|
|
3910
|
-
if (visitor.visitAssignment_expr) {
|
|
3911
|
-
return visitor.visitAssignment_expr(this);
|
|
3912
|
-
}
|
|
3913
|
-
else {
|
|
3914
|
-
return visitor.visitChildren(this);
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
}
|
|
3918
|
-
export class Keyword_assignment_exprContext extends ParserRuleContext {
|
|
3919
|
-
constructor(parser, parent, invokingState) {
|
|
3920
|
-
super(parent, invokingState);
|
|
3921
|
-
this.parser = parser;
|
|
3922
|
-
}
|
|
3923
|
-
ID() {
|
|
3924
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
3925
|
-
}
|
|
3926
|
-
data_expr() {
|
|
3927
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
3928
|
-
}
|
|
3929
|
-
get ruleIndex() {
|
|
3930
|
-
return CircuitScriptParser.RULE_keyword_assignment_expr;
|
|
3931
|
-
}
|
|
3932
|
-
accept(visitor) {
|
|
3933
|
-
if (visitor.visitKeyword_assignment_expr) {
|
|
3934
|
-
return visitor.visitKeyword_assignment_expr(this);
|
|
3935
|
-
}
|
|
3936
|
-
else {
|
|
3937
|
-
return visitor.visitChildren(this);
|
|
3938
|
-
}
|
|
3939
|
-
}
|
|
3940
|
-
}
|
|
3941
|
-
export class ParametersContext extends ParserRuleContext {
|
|
3942
|
-
constructor(parser, parent, invokingState) {
|
|
3943
|
-
super(parent, invokingState);
|
|
3944
|
-
this.parser = parser;
|
|
3945
|
-
}
|
|
3946
|
-
data_expr_list() {
|
|
3947
|
-
return this.getTypedRuleContexts(Data_exprContext);
|
|
3948
|
-
}
|
|
3949
|
-
data_expr(i) {
|
|
3950
|
-
return this.getTypedRuleContext(Data_exprContext, i);
|
|
3951
|
-
}
|
|
3952
|
-
keyword_assignment_expr_list() {
|
|
3953
|
-
return this.getTypedRuleContexts(Keyword_assignment_exprContext);
|
|
3954
|
-
}
|
|
3955
|
-
keyword_assignment_expr(i) {
|
|
3956
|
-
return this.getTypedRuleContext(Keyword_assignment_exprContext, i);
|
|
3957
|
-
}
|
|
3958
|
-
get ruleIndex() {
|
|
3959
|
-
return CircuitScriptParser.RULE_parameters;
|
|
3960
|
-
}
|
|
3961
|
-
accept(visitor) {
|
|
3962
|
-
if (visitor.visitParameters) {
|
|
3963
|
-
return visitor.visitParameters(this);
|
|
3964
|
-
}
|
|
3965
|
-
else {
|
|
3966
|
-
return visitor.visitChildren(this);
|
|
3967
|
-
}
|
|
3968
|
-
}
|
|
3969
|
-
}
|
|
3970
|
-
export class Property_set_exprContext extends ParserRuleContext {
|
|
3971
|
-
constructor(parser, parent, invokingState) {
|
|
3972
|
-
super(parent, invokingState);
|
|
3973
|
-
this.parser = parser;
|
|
3974
|
-
}
|
|
3975
|
-
atom_expr() {
|
|
3976
|
-
return this.getTypedRuleContext(Atom_exprContext, 0);
|
|
3977
|
-
}
|
|
3978
|
-
data_expr() {
|
|
3979
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
3980
|
-
}
|
|
3981
|
-
get ruleIndex() {
|
|
3982
|
-
return CircuitScriptParser.RULE_property_set_expr;
|
|
3983
|
-
}
|
|
3984
|
-
accept(visitor) {
|
|
3985
|
-
if (visitor.visitProperty_set_expr) {
|
|
3986
|
-
return visitor.visitProperty_set_expr(this);
|
|
3987
|
-
}
|
|
3988
|
-
else {
|
|
3989
|
-
return visitor.visitChildren(this);
|
|
3990
|
-
}
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
export class Double_dot_property_set_exprContext extends ParserRuleContext {
|
|
3994
|
-
constructor(parser, parent, invokingState) {
|
|
3995
|
-
super(parent, invokingState);
|
|
3996
|
-
this.parser = parser;
|
|
3997
|
-
}
|
|
3998
|
-
ID() {
|
|
3999
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4000
|
-
}
|
|
4001
|
-
data_expr() {
|
|
4002
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
4003
|
-
}
|
|
4004
|
-
get ruleIndex() {
|
|
4005
|
-
return CircuitScriptParser.RULE_double_dot_property_set_expr;
|
|
4006
|
-
}
|
|
4007
|
-
accept(visitor) {
|
|
4008
|
-
if (visitor.visitDouble_dot_property_set_expr) {
|
|
4009
|
-
return visitor.visitDouble_dot_property_set_expr(this);
|
|
4010
|
-
}
|
|
4011
|
-
else {
|
|
4012
|
-
return visitor.visitChildren(this);
|
|
4013
|
-
}
|
|
4014
|
-
}
|
|
4015
|
-
}
|
|
4016
|
-
export class Data_exprContext extends ParserRuleContext {
|
|
4017
|
-
constructor(parser, parent, invokingState) {
|
|
4018
|
-
super(parent, invokingState);
|
|
4019
|
-
this.parser = parser;
|
|
4020
|
-
}
|
|
4021
|
-
get ruleIndex() {
|
|
4022
|
-
return CircuitScriptParser.RULE_data_expr;
|
|
4023
|
-
}
|
|
4024
|
-
copyFrom(ctx) {
|
|
4025
|
-
super.copyFrom(ctx);
|
|
4026
|
-
}
|
|
4027
|
-
}
|
|
4028
|
-
export class AdditionExprContext extends Data_exprContext {
|
|
4029
|
-
constructor(parser, ctx) {
|
|
4030
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4031
|
-
super.copyFrom(ctx);
|
|
4032
|
-
}
|
|
4033
|
-
data_expr_list() {
|
|
4034
|
-
return this.getTypedRuleContexts(Data_exprContext);
|
|
4035
|
-
}
|
|
4036
|
-
data_expr(i) {
|
|
4037
|
-
return this.getTypedRuleContext(Data_exprContext, i);
|
|
4038
|
-
}
|
|
4039
|
-
Addition() {
|
|
4040
|
-
return this.getToken(CircuitScriptParser.Addition, 0);
|
|
4041
|
-
}
|
|
4042
|
-
Minus() {
|
|
4043
|
-
return this.getToken(CircuitScriptParser.Minus, 0);
|
|
4044
|
-
}
|
|
4045
|
-
accept(visitor) {
|
|
4046
|
-
if (visitor.visitAdditionExpr) {
|
|
4047
|
-
return visitor.visitAdditionExpr(this);
|
|
4048
|
-
}
|
|
4049
|
-
else {
|
|
4050
|
-
return visitor.visitChildren(this);
|
|
4051
|
-
}
|
|
4052
|
-
}
|
|
4053
|
-
}
|
|
4054
|
-
export class MultiplyExprContext extends Data_exprContext {
|
|
4055
|
-
constructor(parser, ctx) {
|
|
4056
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4057
|
-
super.copyFrom(ctx);
|
|
4058
|
-
}
|
|
4059
|
-
data_expr_list() {
|
|
4060
|
-
return this.getTypedRuleContexts(Data_exprContext);
|
|
4061
|
-
}
|
|
4062
|
-
data_expr(i) {
|
|
4063
|
-
return this.getTypedRuleContext(Data_exprContext, i);
|
|
4064
|
-
}
|
|
4065
|
-
Multiply() {
|
|
4066
|
-
return this.getToken(CircuitScriptParser.Multiply, 0);
|
|
4067
|
-
}
|
|
4068
|
-
Divide() {
|
|
4069
|
-
return this.getToken(CircuitScriptParser.Divide, 0);
|
|
4070
|
-
}
|
|
4071
|
-
accept(visitor) {
|
|
4072
|
-
if (visitor.visitMultiplyExpr) {
|
|
4073
|
-
return visitor.visitMultiplyExpr(this);
|
|
4074
|
-
}
|
|
4075
|
-
else {
|
|
4076
|
-
return visitor.visitChildren(this);
|
|
4077
|
-
}
|
|
4078
|
-
}
|
|
4079
|
-
}
|
|
4080
|
-
export class DataExprContext extends Data_exprContext {
|
|
4081
|
-
constructor(parser, ctx) {
|
|
4082
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4083
|
-
super.copyFrom(ctx);
|
|
4084
|
-
}
|
|
4085
|
-
create_component_expr() {
|
|
4086
|
-
return this.getTypedRuleContext(Create_component_exprContext, 0);
|
|
4087
|
-
}
|
|
4088
|
-
create_graphic_expr() {
|
|
4089
|
-
return this.getTypedRuleContext(Create_graphic_exprContext, 0);
|
|
4090
|
-
}
|
|
4091
|
-
accept(visitor) {
|
|
4092
|
-
if (visitor.visitDataExpr) {
|
|
4093
|
-
return visitor.visitDataExpr(this);
|
|
4094
|
-
}
|
|
4095
|
-
else {
|
|
4096
|
-
return visitor.visitChildren(this);
|
|
4097
|
-
}
|
|
4098
|
-
}
|
|
4099
|
-
}
|
|
4100
|
-
export class UnaryOperatorExprContext extends Data_exprContext {
|
|
4101
|
-
constructor(parser, ctx) {
|
|
4102
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4103
|
-
super.copyFrom(ctx);
|
|
4104
|
-
}
|
|
4105
|
-
unary_operator() {
|
|
4106
|
-
return this.getTypedRuleContext(Unary_operatorContext, 0);
|
|
4107
|
-
}
|
|
4108
|
-
data_expr() {
|
|
4109
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
4110
|
-
}
|
|
4111
|
-
accept(visitor) {
|
|
4112
|
-
if (visitor.visitUnaryOperatorExpr) {
|
|
4113
|
-
return visitor.visitUnaryOperatorExpr(this);
|
|
4114
|
-
}
|
|
4115
|
-
else {
|
|
4116
|
-
return visitor.visitChildren(this);
|
|
4117
|
-
}
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
|
-
export class ValueAtomExprContext extends Data_exprContext {
|
|
4121
|
-
constructor(parser, ctx) {
|
|
4122
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4123
|
-
super.copyFrom(ctx);
|
|
4124
|
-
}
|
|
4125
|
-
value_expr() {
|
|
4126
|
-
return this.getTypedRuleContext(Value_exprContext, 0);
|
|
4127
|
-
}
|
|
4128
|
-
atom_expr() {
|
|
4129
|
-
return this.getTypedRuleContext(Atom_exprContext, 0);
|
|
4130
|
-
}
|
|
4131
|
-
accept(visitor) {
|
|
4132
|
-
if (visitor.visitValueAtomExpr) {
|
|
4133
|
-
return visitor.visitValueAtomExpr(this);
|
|
4134
|
-
}
|
|
4135
|
-
else {
|
|
4136
|
-
return visitor.visitChildren(this);
|
|
4137
|
-
}
|
|
4138
|
-
}
|
|
4139
|
-
}
|
|
4140
|
-
export class BinaryOperatorExprContext extends Data_exprContext {
|
|
4141
|
-
constructor(parser, ctx) {
|
|
4142
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4143
|
-
super.copyFrom(ctx);
|
|
4144
|
-
}
|
|
4145
|
-
data_expr_list() {
|
|
4146
|
-
return this.getTypedRuleContexts(Data_exprContext);
|
|
4147
|
-
}
|
|
4148
|
-
data_expr(i) {
|
|
4149
|
-
return this.getTypedRuleContext(Data_exprContext, i);
|
|
4150
|
-
}
|
|
4151
|
-
binary_operator() {
|
|
4152
|
-
return this.getTypedRuleContext(Binary_operatorContext, 0);
|
|
4153
|
-
}
|
|
4154
|
-
accept(visitor) {
|
|
4155
|
-
if (visitor.visitBinaryOperatorExpr) {
|
|
4156
|
-
return visitor.visitBinaryOperatorExpr(this);
|
|
4157
|
-
}
|
|
4158
|
-
else {
|
|
4159
|
-
return visitor.visitChildren(this);
|
|
4160
|
-
}
|
|
4161
|
-
}
|
|
4162
|
-
}
|
|
4163
|
-
export class RoundedBracketsExprContext extends Data_exprContext {
|
|
4164
|
-
constructor(parser, ctx) {
|
|
4165
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4166
|
-
super.copyFrom(ctx);
|
|
4167
|
-
}
|
|
4168
|
-
OPEN_PAREN() {
|
|
4169
|
-
return this.getToken(CircuitScriptParser.OPEN_PAREN, 0);
|
|
4170
|
-
}
|
|
4171
|
-
data_expr() {
|
|
4172
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
4173
|
-
}
|
|
4174
|
-
CLOSE_PAREN() {
|
|
4175
|
-
return this.getToken(CircuitScriptParser.CLOSE_PAREN, 0);
|
|
4176
|
-
}
|
|
4177
|
-
accept(visitor) {
|
|
4178
|
-
if (visitor.visitRoundedBracketsExpr) {
|
|
4179
|
-
return visitor.visitRoundedBracketsExpr(this);
|
|
4180
|
-
}
|
|
4181
|
-
else {
|
|
4182
|
-
return visitor.visitChildren(this);
|
|
4183
|
-
}
|
|
4184
|
-
}
|
|
4185
|
-
}
|
|
4186
|
-
export class Binary_operatorContext extends ParserRuleContext {
|
|
4187
|
-
constructor(parser, parent, invokingState) {
|
|
4188
|
-
super(parent, invokingState);
|
|
4189
|
-
this.parser = parser;
|
|
4190
|
-
}
|
|
4191
|
-
Equals() {
|
|
4192
|
-
return this.getToken(CircuitScriptParser.Equals, 0);
|
|
4193
|
-
}
|
|
4194
|
-
NotEquals() {
|
|
4195
|
-
return this.getToken(CircuitScriptParser.NotEquals, 0);
|
|
4196
|
-
}
|
|
4197
|
-
get ruleIndex() {
|
|
4198
|
-
return CircuitScriptParser.RULE_binary_operator;
|
|
4199
|
-
}
|
|
4200
|
-
accept(visitor) {
|
|
4201
|
-
if (visitor.visitBinary_operator) {
|
|
4202
|
-
return visitor.visitBinary_operator(this);
|
|
4203
|
-
}
|
|
4204
|
-
else {
|
|
4205
|
-
return visitor.visitChildren(this);
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
}
|
|
4209
|
-
export class Unary_operatorContext extends ParserRuleContext {
|
|
4210
|
-
constructor(parser, parent, invokingState) {
|
|
4211
|
-
super(parent, invokingState);
|
|
4212
|
-
this.parser = parser;
|
|
4213
|
-
}
|
|
4214
|
-
Not() {
|
|
4215
|
-
return this.getToken(CircuitScriptParser.Not, 0);
|
|
4216
|
-
}
|
|
4217
|
-
Minus() {
|
|
4218
|
-
return this.getToken(CircuitScriptParser.Minus, 0);
|
|
4219
|
-
}
|
|
4220
|
-
get ruleIndex() {
|
|
4221
|
-
return CircuitScriptParser.RULE_unary_operator;
|
|
4222
|
-
}
|
|
4223
|
-
accept(visitor) {
|
|
4224
|
-
if (visitor.visitUnary_operator) {
|
|
4225
|
-
return visitor.visitUnary_operator(this);
|
|
4226
|
-
}
|
|
4227
|
-
else {
|
|
4228
|
-
return visitor.visitChildren(this);
|
|
4229
|
-
}
|
|
4230
|
-
}
|
|
4231
|
-
}
|
|
4232
|
-
export class Value_exprContext extends ParserRuleContext {
|
|
4233
|
-
constructor(parser, parent, invokingState) {
|
|
4234
|
-
super(parent, invokingState);
|
|
4235
|
-
this.parser = parser;
|
|
4236
|
-
}
|
|
4237
|
-
NUMERIC_VALUE() {
|
|
4238
|
-
return this.getToken(CircuitScriptParser.NUMERIC_VALUE, 0);
|
|
4239
|
-
}
|
|
4240
|
-
DECIMAL_VALUE() {
|
|
4241
|
-
return this.getToken(CircuitScriptParser.DECIMAL_VALUE, 0);
|
|
4242
|
-
}
|
|
4243
|
-
INTEGER_VALUE() {
|
|
4244
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
4245
|
-
}
|
|
4246
|
-
STRING_VALUE() {
|
|
4247
|
-
return this.getToken(CircuitScriptParser.STRING_VALUE, 0);
|
|
4248
|
-
}
|
|
4249
|
-
PERCENTAGE_VALUE() {
|
|
4250
|
-
return this.getToken(CircuitScriptParser.PERCENTAGE_VALUE, 0);
|
|
4251
|
-
}
|
|
4252
|
-
BOOLEAN_VALUE() {
|
|
4253
|
-
return this.getToken(CircuitScriptParser.BOOLEAN_VALUE, 0);
|
|
4254
|
-
}
|
|
4255
|
-
Minus() {
|
|
4256
|
-
return this.getToken(CircuitScriptParser.Minus, 0);
|
|
4257
|
-
}
|
|
4258
|
-
blank_expr() {
|
|
4259
|
-
return this.getTypedRuleContext(Blank_exprContext, 0);
|
|
4260
|
-
}
|
|
4261
|
-
get ruleIndex() {
|
|
4262
|
-
return CircuitScriptParser.RULE_value_expr;
|
|
4263
|
-
}
|
|
4264
|
-
accept(visitor) {
|
|
4265
|
-
if (visitor.visitValue_expr) {
|
|
4266
|
-
return visitor.visitValue_expr(this);
|
|
4267
|
-
}
|
|
4268
|
-
else {
|
|
4269
|
-
return visitor.visitChildren(this);
|
|
4270
|
-
}
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
export class Function_def_exprContext extends ParserRuleContext {
|
|
4274
|
-
constructor(parser, parent, invokingState) {
|
|
4275
|
-
super(parent, invokingState);
|
|
4276
|
-
this.parser = parser;
|
|
4277
|
-
}
|
|
4278
|
-
Define() {
|
|
4279
|
-
return this.getToken(CircuitScriptParser.Define, 0);
|
|
4280
|
-
}
|
|
4281
|
-
ID() {
|
|
4282
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4283
|
-
}
|
|
4284
|
-
OPEN_PAREN() {
|
|
4285
|
-
return this.getToken(CircuitScriptParser.OPEN_PAREN, 0);
|
|
4286
|
-
}
|
|
4287
|
-
CLOSE_PAREN() {
|
|
4288
|
-
return this.getToken(CircuitScriptParser.CLOSE_PAREN, 0);
|
|
4289
|
-
}
|
|
4290
|
-
NEWLINE_list() {
|
|
4291
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4292
|
-
}
|
|
4293
|
-
NEWLINE(i) {
|
|
4294
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4295
|
-
}
|
|
4296
|
-
INDENT() {
|
|
4297
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4298
|
-
}
|
|
4299
|
-
DEDENT() {
|
|
4300
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4301
|
-
}
|
|
4302
|
-
function_args_expr() {
|
|
4303
|
-
return this.getTypedRuleContext(Function_args_exprContext, 0);
|
|
4304
|
-
}
|
|
4305
|
-
function_expr_list() {
|
|
4306
|
-
return this.getTypedRuleContexts(Function_exprContext);
|
|
4307
|
-
}
|
|
4308
|
-
function_expr(i) {
|
|
4309
|
-
return this.getTypedRuleContext(Function_exprContext, i);
|
|
4310
|
-
}
|
|
4311
|
-
get ruleIndex() {
|
|
4312
|
-
return CircuitScriptParser.RULE_function_def_expr;
|
|
4313
|
-
}
|
|
4314
|
-
accept(visitor) {
|
|
4315
|
-
if (visitor.visitFunction_def_expr) {
|
|
4316
|
-
return visitor.visitFunction_def_expr(this);
|
|
4317
|
-
}
|
|
4318
|
-
else {
|
|
4319
|
-
return visitor.visitChildren(this);
|
|
4320
|
-
}
|
|
4321
|
-
}
|
|
4322
|
-
}
|
|
4323
|
-
export class Function_exprContext extends ParserRuleContext {
|
|
4324
|
-
constructor(parser, parent, invokingState) {
|
|
4325
|
-
super(parent, invokingState);
|
|
4326
|
-
this.parser = parser;
|
|
4327
|
-
}
|
|
4328
|
-
expression() {
|
|
4329
|
-
return this.getTypedRuleContext(ExpressionContext, 0);
|
|
4330
|
-
}
|
|
4331
|
-
function_return_expr() {
|
|
4332
|
-
return this.getTypedRuleContext(Function_return_exprContext, 0);
|
|
4333
|
-
}
|
|
4334
|
-
get ruleIndex() {
|
|
4335
|
-
return CircuitScriptParser.RULE_function_expr;
|
|
4336
|
-
}
|
|
4337
|
-
accept(visitor) {
|
|
4338
|
-
if (visitor.visitFunction_expr) {
|
|
4339
|
-
return visitor.visitFunction_expr(this);
|
|
4340
|
-
}
|
|
4341
|
-
else {
|
|
4342
|
-
return visitor.visitChildren(this);
|
|
4343
|
-
}
|
|
4344
|
-
}
|
|
4345
|
-
}
|
|
4346
|
-
export class Function_args_exprContext extends ParserRuleContext {
|
|
4347
|
-
constructor(parser, parent, invokingState) {
|
|
4348
|
-
super(parent, invokingState);
|
|
4349
|
-
this.parser = parser;
|
|
4350
|
-
}
|
|
4351
|
-
ID_list() {
|
|
4352
|
-
return this.getTokens(CircuitScriptParser.ID);
|
|
4353
|
-
}
|
|
4354
|
-
ID(i) {
|
|
4355
|
-
return this.getToken(CircuitScriptParser.ID, i);
|
|
4356
|
-
}
|
|
4357
|
-
value_expr_list() {
|
|
4358
|
-
return this.getTypedRuleContexts(Value_exprContext);
|
|
4359
|
-
}
|
|
4360
|
-
value_expr(i) {
|
|
4361
|
-
return this.getTypedRuleContext(Value_exprContext, i);
|
|
4362
|
-
}
|
|
4363
|
-
get ruleIndex() {
|
|
4364
|
-
return CircuitScriptParser.RULE_function_args_expr;
|
|
4365
|
-
}
|
|
4366
|
-
accept(visitor) {
|
|
4367
|
-
if (visitor.visitFunction_args_expr) {
|
|
4368
|
-
return visitor.visitFunction_args_expr(this);
|
|
4369
|
-
}
|
|
4370
|
-
else {
|
|
4371
|
-
return visitor.visitChildren(this);
|
|
4372
|
-
}
|
|
4373
|
-
}
|
|
4374
|
-
}
|
|
4375
|
-
export class Atom_exprContext extends ParserRuleContext {
|
|
4376
|
-
constructor(parser, parent, invokingState) {
|
|
4377
|
-
super(parent, invokingState);
|
|
4378
|
-
this.parser = parser;
|
|
4379
|
-
}
|
|
4380
|
-
ID() {
|
|
4381
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4382
|
-
}
|
|
4383
|
-
net_namespace_expr() {
|
|
4384
|
-
return this.getTypedRuleContext(Net_namespace_exprContext, 0);
|
|
4385
|
-
}
|
|
4386
|
-
trailer_expr_list() {
|
|
4387
|
-
return this.getTypedRuleContexts(Trailer_exprContext);
|
|
4388
|
-
}
|
|
4389
|
-
trailer_expr(i) {
|
|
4390
|
-
return this.getTypedRuleContext(Trailer_exprContext, i);
|
|
4391
|
-
}
|
|
4392
|
-
get ruleIndex() {
|
|
4393
|
-
return CircuitScriptParser.RULE_atom_expr;
|
|
4394
|
-
}
|
|
4395
|
-
accept(visitor) {
|
|
4396
|
-
if (visitor.visitAtom_expr) {
|
|
4397
|
-
return visitor.visitAtom_expr(this);
|
|
4398
|
-
}
|
|
4399
|
-
else {
|
|
4400
|
-
return visitor.visitChildren(this);
|
|
4401
|
-
}
|
|
4402
|
-
}
|
|
4403
|
-
}
|
|
4404
|
-
export class Trailer_exprContext extends ParserRuleContext {
|
|
4405
|
-
constructor(parser, parent, invokingState) {
|
|
4406
|
-
super(parent, invokingState);
|
|
4407
|
-
this.parser = parser;
|
|
4408
|
-
}
|
|
4409
|
-
OPEN_PAREN() {
|
|
4410
|
-
return this.getToken(CircuitScriptParser.OPEN_PAREN, 0);
|
|
4411
|
-
}
|
|
4412
|
-
CLOSE_PAREN() {
|
|
4413
|
-
return this.getToken(CircuitScriptParser.CLOSE_PAREN, 0);
|
|
4414
|
-
}
|
|
4415
|
-
parameters() {
|
|
4416
|
-
return this.getTypedRuleContext(ParametersContext, 0);
|
|
4417
|
-
}
|
|
4418
|
-
ID() {
|
|
4419
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4420
|
-
}
|
|
4421
|
-
get ruleIndex() {
|
|
4422
|
-
return CircuitScriptParser.RULE_trailer_expr;
|
|
4423
|
-
}
|
|
4424
|
-
accept(visitor) {
|
|
4425
|
-
if (visitor.visitTrailer_expr) {
|
|
4426
|
-
return visitor.visitTrailer_expr(this);
|
|
4427
|
-
}
|
|
4428
|
-
else {
|
|
4429
|
-
return visitor.visitChildren(this);
|
|
4430
|
-
}
|
|
4431
|
-
}
|
|
4432
|
-
}
|
|
4433
|
-
export class Net_namespace_exprContext extends ParserRuleContext {
|
|
4434
|
-
constructor(parser, parent, invokingState) {
|
|
4435
|
-
super(parent, invokingState);
|
|
4436
|
-
this.parser = parser;
|
|
4437
|
-
}
|
|
4438
|
-
Divide() {
|
|
4439
|
-
return this.getToken(CircuitScriptParser.Divide, 0);
|
|
4440
|
-
}
|
|
4441
|
-
Addition() {
|
|
4442
|
-
return this.getToken(CircuitScriptParser.Addition, 0);
|
|
4443
|
-
}
|
|
4444
|
-
data_expr() {
|
|
4445
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
4446
|
-
}
|
|
4447
|
-
get ruleIndex() {
|
|
4448
|
-
return CircuitScriptParser.RULE_net_namespace_expr;
|
|
4449
|
-
}
|
|
4450
|
-
accept(visitor) {
|
|
4451
|
-
if (visitor.visitNet_namespace_expr) {
|
|
4452
|
-
return visitor.visitNet_namespace_expr(this);
|
|
4453
|
-
}
|
|
4454
|
-
else {
|
|
4455
|
-
return visitor.visitChildren(this);
|
|
4456
|
-
}
|
|
4457
|
-
}
|
|
4458
|
-
}
|
|
4459
|
-
export class Function_return_exprContext extends ParserRuleContext {
|
|
4460
|
-
constructor(parser, parent, invokingState) {
|
|
4461
|
-
super(parent, invokingState);
|
|
4462
|
-
this.parser = parser;
|
|
4463
|
-
}
|
|
4464
|
-
Return() {
|
|
4465
|
-
return this.getToken(CircuitScriptParser.Return, 0);
|
|
4466
|
-
}
|
|
4467
|
-
data_expr() {
|
|
4468
|
-
return this.getTypedRuleContext(Data_exprContext, 0);
|
|
4469
|
-
}
|
|
4470
|
-
get ruleIndex() {
|
|
4471
|
-
return CircuitScriptParser.RULE_function_return_expr;
|
|
4472
|
-
}
|
|
4473
|
-
accept(visitor) {
|
|
4474
|
-
if (visitor.visitFunction_return_expr) {
|
|
4475
|
-
return visitor.visitFunction_return_expr(this);
|
|
4476
|
-
}
|
|
4477
|
-
else {
|
|
4478
|
-
return visitor.visitChildren(this);
|
|
4479
|
-
}
|
|
4480
|
-
}
|
|
4481
|
-
}
|
|
4482
|
-
export class Create_component_exprContext extends ParserRuleContext {
|
|
4483
|
-
constructor(parser, parent, invokingState) {
|
|
4484
|
-
super(parent, invokingState);
|
|
4485
|
-
this.parser = parser;
|
|
4486
|
-
}
|
|
4487
|
-
Create() {
|
|
4488
|
-
return this.getToken(CircuitScriptParser.Create, 0);
|
|
4489
|
-
}
|
|
4490
|
-
Component() {
|
|
4491
|
-
return this.getToken(CircuitScriptParser.Component, 0);
|
|
4492
|
-
}
|
|
4493
|
-
NEWLINE_list() {
|
|
4494
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4495
|
-
}
|
|
4496
|
-
NEWLINE(i) {
|
|
4497
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4498
|
-
}
|
|
4499
|
-
INDENT() {
|
|
4500
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4501
|
-
}
|
|
4502
|
-
DEDENT() {
|
|
4503
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4504
|
-
}
|
|
4505
|
-
property_expr_list() {
|
|
4506
|
-
return this.getTypedRuleContexts(Property_exprContext);
|
|
4507
|
-
}
|
|
4508
|
-
property_expr(i) {
|
|
4509
|
-
return this.getTypedRuleContext(Property_exprContext, i);
|
|
4510
|
-
}
|
|
4511
|
-
get ruleIndex() {
|
|
4512
|
-
return CircuitScriptParser.RULE_create_component_expr;
|
|
4513
|
-
}
|
|
4514
|
-
accept(visitor) {
|
|
4515
|
-
if (visitor.visitCreate_component_expr) {
|
|
4516
|
-
return visitor.visitCreate_component_expr(this);
|
|
4517
|
-
}
|
|
4518
|
-
else {
|
|
4519
|
-
return visitor.visitChildren(this);
|
|
4520
|
-
}
|
|
4521
|
-
}
|
|
4522
|
-
}
|
|
4523
|
-
export class Create_graphic_exprContext extends ParserRuleContext {
|
|
4524
|
-
constructor(parser, parent, invokingState) {
|
|
4525
|
-
super(parent, invokingState);
|
|
4526
|
-
this.parser = parser;
|
|
4527
|
-
}
|
|
4528
|
-
Create() {
|
|
4529
|
-
return this.getToken(CircuitScriptParser.Create, 0);
|
|
4530
|
-
}
|
|
4531
|
-
Graphic() {
|
|
4532
|
-
return this.getToken(CircuitScriptParser.Graphic, 0);
|
|
4533
|
-
}
|
|
4534
|
-
NEWLINE_list() {
|
|
4535
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4536
|
-
}
|
|
4537
|
-
NEWLINE(i) {
|
|
4538
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4539
|
-
}
|
|
4540
|
-
INDENT() {
|
|
4541
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4542
|
-
}
|
|
4543
|
-
DEDENT() {
|
|
4544
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4545
|
-
}
|
|
4546
|
-
sub_expr_list() {
|
|
4547
|
-
return this.getTypedRuleContexts(Sub_exprContext);
|
|
4548
|
-
}
|
|
4549
|
-
sub_expr(i) {
|
|
4550
|
-
return this.getTypedRuleContext(Sub_exprContext, i);
|
|
4551
|
-
}
|
|
4552
|
-
get ruleIndex() {
|
|
4553
|
-
return CircuitScriptParser.RULE_create_graphic_expr;
|
|
4554
|
-
}
|
|
4555
|
-
accept(visitor) {
|
|
4556
|
-
if (visitor.visitCreate_graphic_expr) {
|
|
4557
|
-
return visitor.visitCreate_graphic_expr(this);
|
|
4558
|
-
}
|
|
4559
|
-
else {
|
|
4560
|
-
return visitor.visitChildren(this);
|
|
4561
|
-
}
|
|
4562
|
-
}
|
|
4563
|
-
}
|
|
4564
|
-
export class Sub_exprContext extends ParserRuleContext {
|
|
4565
|
-
constructor(parser, parent, invokingState) {
|
|
4566
|
-
super(parent, invokingState);
|
|
4567
|
-
this.parser = parser;
|
|
4568
|
-
}
|
|
4569
|
-
ID() {
|
|
4570
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4571
|
-
}
|
|
4572
|
-
Pin() {
|
|
4573
|
-
return this.getToken(CircuitScriptParser.Pin, 0);
|
|
4574
|
-
}
|
|
4575
|
-
parameters() {
|
|
4576
|
-
return this.getTypedRuleContext(ParametersContext, 0);
|
|
4577
|
-
}
|
|
4578
|
-
OPEN_PAREN() {
|
|
4579
|
-
return this.getToken(CircuitScriptParser.OPEN_PAREN, 0);
|
|
4580
|
-
}
|
|
4581
|
-
CLOSE_PAREN() {
|
|
4582
|
-
return this.getToken(CircuitScriptParser.CLOSE_PAREN, 0);
|
|
4583
|
-
}
|
|
4584
|
-
get ruleIndex() {
|
|
4585
|
-
return CircuitScriptParser.RULE_sub_expr;
|
|
4586
|
-
}
|
|
4587
|
-
accept(visitor) {
|
|
4588
|
-
if (visitor.visitSub_expr) {
|
|
4589
|
-
return visitor.visitSub_expr(this);
|
|
4590
|
-
}
|
|
4591
|
-
else {
|
|
4592
|
-
return visitor.visitChildren(this);
|
|
4593
|
-
}
|
|
4594
|
-
}
|
|
4595
|
-
}
|
|
4596
|
-
export class Property_exprContext extends ParserRuleContext {
|
|
4597
|
-
constructor(parser, parent, invokingState) {
|
|
4598
|
-
super(parent, invokingState);
|
|
4599
|
-
this.parser = parser;
|
|
4600
|
-
}
|
|
4601
|
-
property_key_expr() {
|
|
4602
|
-
return this.getTypedRuleContext(Property_key_exprContext, 0);
|
|
4603
|
-
}
|
|
4604
|
-
property_value_expr() {
|
|
4605
|
-
return this.getTypedRuleContext(Property_value_exprContext, 0);
|
|
4606
|
-
}
|
|
4607
|
-
get ruleIndex() {
|
|
4608
|
-
return CircuitScriptParser.RULE_property_expr;
|
|
4609
|
-
}
|
|
4610
|
-
accept(visitor) {
|
|
4611
|
-
if (visitor.visitProperty_expr) {
|
|
4612
|
-
return visitor.visitProperty_expr(this);
|
|
4613
|
-
}
|
|
4614
|
-
else {
|
|
4615
|
-
return visitor.visitChildren(this);
|
|
4616
|
-
}
|
|
4617
|
-
}
|
|
4618
|
-
}
|
|
4619
|
-
export class Property_key_exprContext extends ParserRuleContext {
|
|
4620
|
-
constructor(parser, parent, invokingState) {
|
|
4621
|
-
super(parent, invokingState);
|
|
4622
|
-
this.parser = parser;
|
|
4623
|
-
}
|
|
4624
|
-
ID() {
|
|
4625
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4626
|
-
}
|
|
4627
|
-
INTEGER_VALUE() {
|
|
4628
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
4629
|
-
}
|
|
4630
|
-
STRING_VALUE() {
|
|
4631
|
-
return this.getToken(CircuitScriptParser.STRING_VALUE, 0);
|
|
4632
|
-
}
|
|
4633
|
-
get ruleIndex() {
|
|
4634
|
-
return CircuitScriptParser.RULE_property_key_expr;
|
|
4635
|
-
}
|
|
4636
|
-
accept(visitor) {
|
|
4637
|
-
if (visitor.visitProperty_key_expr) {
|
|
4638
|
-
return visitor.visitProperty_key_expr(this);
|
|
4639
|
-
}
|
|
4640
|
-
else {
|
|
4641
|
-
return visitor.visitChildren(this);
|
|
4642
|
-
}
|
|
4643
|
-
}
|
|
4644
|
-
}
|
|
4645
|
-
export class Property_value_exprContext extends ParserRuleContext {
|
|
4646
|
-
constructor(parser, parent, invokingState) {
|
|
4647
|
-
super(parent, invokingState);
|
|
4648
|
-
this.parser = parser;
|
|
4649
|
-
}
|
|
4650
|
-
get ruleIndex() {
|
|
4651
|
-
return CircuitScriptParser.RULE_property_value_expr;
|
|
4652
|
-
}
|
|
4653
|
-
copyFrom(ctx) {
|
|
4654
|
-
super.copyFrom(ctx);
|
|
4655
|
-
}
|
|
4656
|
-
}
|
|
4657
|
-
export class Single_line_propertyContext extends Property_value_exprContext {
|
|
4658
|
-
constructor(parser, ctx) {
|
|
4659
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4660
|
-
super.copyFrom(ctx);
|
|
4661
|
-
}
|
|
4662
|
-
data_expr_list() {
|
|
4663
|
-
return this.getTypedRuleContexts(Data_exprContext);
|
|
4664
|
-
}
|
|
4665
|
-
data_expr(i) {
|
|
4666
|
-
return this.getTypedRuleContext(Data_exprContext, i);
|
|
4667
|
-
}
|
|
4668
|
-
accept(visitor) {
|
|
4669
|
-
if (visitor.visitSingle_line_property) {
|
|
4670
|
-
return visitor.visitSingle_line_property(this);
|
|
4671
|
-
}
|
|
4672
|
-
else {
|
|
4673
|
-
return visitor.visitChildren(this);
|
|
4674
|
-
}
|
|
4675
|
-
}
|
|
4676
|
-
}
|
|
4677
|
-
export class Nested_propertiesContext extends Property_value_exprContext {
|
|
4678
|
-
constructor(parser, ctx) {
|
|
4679
|
-
super(parser, ctx.parentCtx, ctx.invokingState);
|
|
4680
|
-
super.copyFrom(ctx);
|
|
4681
|
-
}
|
|
4682
|
-
NEWLINE_list() {
|
|
4683
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4684
|
-
}
|
|
4685
|
-
NEWLINE(i) {
|
|
4686
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4687
|
-
}
|
|
4688
|
-
INDENT() {
|
|
4689
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4690
|
-
}
|
|
4691
|
-
DEDENT() {
|
|
4692
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4693
|
-
}
|
|
4694
|
-
property_expr_list() {
|
|
4695
|
-
return this.getTypedRuleContexts(Property_exprContext);
|
|
4696
|
-
}
|
|
4697
|
-
property_expr(i) {
|
|
4698
|
-
return this.getTypedRuleContext(Property_exprContext, i);
|
|
4699
|
-
}
|
|
4700
|
-
accept(visitor) {
|
|
4701
|
-
if (visitor.visitNested_properties) {
|
|
4702
|
-
return visitor.visitNested_properties(this);
|
|
4703
|
-
}
|
|
4704
|
-
else {
|
|
4705
|
-
return visitor.visitChildren(this);
|
|
4706
|
-
}
|
|
4707
|
-
}
|
|
4708
|
-
}
|
|
4709
|
-
export class Blank_exprContext extends ParserRuleContext {
|
|
4710
|
-
constructor(parser, parent, invokingState) {
|
|
4711
|
-
super(parent, invokingState);
|
|
4712
|
-
this.parser = parser;
|
|
4713
|
-
}
|
|
4714
|
-
INTEGER_VALUE() {
|
|
4715
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, 0);
|
|
4716
|
-
}
|
|
4717
|
-
get ruleIndex() {
|
|
4718
|
-
return CircuitScriptParser.RULE_blank_expr;
|
|
4719
|
-
}
|
|
4720
|
-
accept(visitor) {
|
|
4721
|
-
if (visitor.visitBlank_expr) {
|
|
4722
|
-
return visitor.visitBlank_expr(this);
|
|
4723
|
-
}
|
|
4724
|
-
else {
|
|
4725
|
-
return visitor.visitChildren(this);
|
|
4726
|
-
}
|
|
4727
|
-
}
|
|
4728
|
-
}
|
|
4729
|
-
export class Wire_exprContext extends ParserRuleContext {
|
|
4730
|
-
constructor(parser, parent, invokingState) {
|
|
4731
|
-
super(parent, invokingState);
|
|
4732
|
-
this.parser = parser;
|
|
4733
|
-
}
|
|
4734
|
-
Wire() {
|
|
4735
|
-
return this.getToken(CircuitScriptParser.Wire, 0);
|
|
4736
|
-
}
|
|
4737
|
-
ID_list() {
|
|
4738
|
-
return this.getTokens(CircuitScriptParser.ID);
|
|
4739
|
-
}
|
|
4740
|
-
ID(i) {
|
|
4741
|
-
return this.getToken(CircuitScriptParser.ID, i);
|
|
4742
|
-
}
|
|
4743
|
-
INTEGER_VALUE_list() {
|
|
4744
|
-
return this.getTokens(CircuitScriptParser.INTEGER_VALUE);
|
|
4745
|
-
}
|
|
4746
|
-
INTEGER_VALUE(i) {
|
|
4747
|
-
return this.getToken(CircuitScriptParser.INTEGER_VALUE, i);
|
|
4748
|
-
}
|
|
4749
|
-
get ruleIndex() {
|
|
4750
|
-
return CircuitScriptParser.RULE_wire_expr;
|
|
4751
|
-
}
|
|
4752
|
-
accept(visitor) {
|
|
4753
|
-
if (visitor.visitWire_expr) {
|
|
4754
|
-
return visitor.visitWire_expr(this);
|
|
4755
|
-
}
|
|
4756
|
-
else {
|
|
4757
|
-
return visitor.visitChildren(this);
|
|
4758
|
-
}
|
|
4759
|
-
}
|
|
4760
|
-
}
|
|
4761
|
-
export class Point_exprContext extends ParserRuleContext {
|
|
4762
|
-
constructor(parser, parent, invokingState) {
|
|
4763
|
-
super(parent, invokingState);
|
|
4764
|
-
this.parser = parser;
|
|
4765
|
-
}
|
|
4766
|
-
Point() {
|
|
4767
|
-
return this.getToken(CircuitScriptParser.Point, 0);
|
|
4768
|
-
}
|
|
4769
|
-
ID() {
|
|
4770
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4771
|
-
}
|
|
4772
|
-
get ruleIndex() {
|
|
4773
|
-
return CircuitScriptParser.RULE_point_expr;
|
|
4774
|
-
}
|
|
4775
|
-
accept(visitor) {
|
|
4776
|
-
if (visitor.visitPoint_expr) {
|
|
4777
|
-
return visitor.visitPoint_expr(this);
|
|
4778
|
-
}
|
|
4779
|
-
else {
|
|
4780
|
-
return visitor.visitChildren(this);
|
|
4781
|
-
}
|
|
4782
|
-
}
|
|
4783
|
-
}
|
|
4784
|
-
export class Import_exprContext extends ParserRuleContext {
|
|
4785
|
-
constructor(parser, parent, invokingState) {
|
|
4786
|
-
super(parent, invokingState);
|
|
4787
|
-
this.parser = parser;
|
|
4788
|
-
}
|
|
4789
|
-
Import() {
|
|
4790
|
-
return this.getToken(CircuitScriptParser.Import, 0);
|
|
4791
|
-
}
|
|
4792
|
-
ID() {
|
|
4793
|
-
return this.getToken(CircuitScriptParser.ID, 0);
|
|
4794
|
-
}
|
|
4795
|
-
get ruleIndex() {
|
|
4796
|
-
return CircuitScriptParser.RULE_import_expr;
|
|
4797
|
-
}
|
|
4798
|
-
accept(visitor) {
|
|
4799
|
-
if (visitor.visitImport_expr) {
|
|
4800
|
-
return visitor.visitImport_expr(this);
|
|
4801
|
-
}
|
|
4802
|
-
else {
|
|
4803
|
-
return visitor.visitChildren(this);
|
|
4804
|
-
}
|
|
4805
|
-
}
|
|
4806
|
-
}
|
|
4807
|
-
export class Frame_exprContext extends ParserRuleContext {
|
|
4808
|
-
constructor(parser, parent, invokingState) {
|
|
4809
|
-
super(parent, invokingState);
|
|
4810
|
-
this.parser = parser;
|
|
4811
|
-
}
|
|
4812
|
-
NEWLINE_list() {
|
|
4813
|
-
return this.getTokens(CircuitScriptParser.NEWLINE);
|
|
4814
|
-
}
|
|
4815
|
-
NEWLINE(i) {
|
|
4816
|
-
return this.getToken(CircuitScriptParser.NEWLINE, i);
|
|
4817
|
-
}
|
|
4818
|
-
INDENT() {
|
|
4819
|
-
return this.getToken(CircuitScriptParser.INDENT, 0);
|
|
4820
|
-
}
|
|
4821
|
-
DEDENT() {
|
|
4822
|
-
return this.getToken(CircuitScriptParser.DEDENT, 0);
|
|
4823
|
-
}
|
|
4824
|
-
expression_list() {
|
|
4825
|
-
return this.getTypedRuleContexts(ExpressionContext);
|
|
4826
|
-
}
|
|
4827
|
-
expression(i) {
|
|
4828
|
-
return this.getTypedRuleContext(ExpressionContext, i);
|
|
4829
|
-
}
|
|
4830
|
-
get ruleIndex() {
|
|
4831
|
-
return CircuitScriptParser.RULE_frame_expr;
|
|
4832
|
-
}
|
|
4833
|
-
accept(visitor) {
|
|
4834
|
-
if (visitor.visitFrame_expr) {
|
|
4835
|
-
return visitor.visitFrame_expr(this);
|
|
4836
|
-
}
|
|
4837
|
-
else {
|
|
4838
|
-
return visitor.visitChildren(this);
|
|
4839
|
-
}
|
|
4840
|
-
}
|
|
4841
|
-
}
|