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