circuitscript 0.0.18 → 0.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "circuitscript",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Interpreter for the circuitscript language",
5
5
  "homepage": "https://circuitscript.net",
6
6
  "engines": {
@@ -17,11 +17,12 @@ Add: 'add';
17
17
  At: 'at';
18
18
  To: 'to';
19
19
  Point: 'point';
20
+ Join: 'join';
21
+ Parallel: 'parallel';
20
22
 
21
23
  Return: 'return';
22
24
  Define: 'def';
23
25
  Import: 'import';
24
- Join: 'join';
25
26
 
26
27
  If: 'if';
27
28
  Not: '!';
@@ -47,18 +48,18 @@ expression: add_component_expr
47
48
  | break_keyword
48
49
  | function_def_expr
49
50
  | wire_expr
50
- | point_expr
51
51
  | import_expr
52
52
  | frame_expr
53
53
  | atom_expr
54
54
 
55
55
  | at_block
56
- | branch_blocks
56
+ | path_blocks
57
+ | point_expr
57
58
  ;
58
59
 
59
- branch_blocks: branch_block_inner+;
60
- branch_block_inner:
61
- (Branch|Join) ':' NEWLINE INDENT (NEWLINE | expression)+ DEDENT;
60
+ path_blocks: path_block_inner+;
61
+ path_block_inner:
62
+ (Branch | Join | Parallel | Point) ':' NEWLINE INDENT (NEWLINE | expression)+ DEDENT;
62
63
 
63
64
  property_set_expr2:
64
65
  atom_expr ':' NEWLINE INDENT ( NEWLINE | assignment_expr2)+ DEDENT;
@@ -73,10 +74,10 @@ pin_select_expr: Pin (INTEGER_VALUE | STRING_VALUE);
73
74
  // This does not have the 'pin' word
74
75
  pin_select_expr2: INTEGER_VALUE | STRING_VALUE;
75
76
 
76
- at_component_expr: At component_select_expr ID?;
77
+ at_component_expr: At ((component_select_expr ID?) | Point); // ID? is for orientation
77
78
  // at_component_expr_next: 'at' component_select_expr (',' component_select_expr)*;
78
79
 
79
- to_component_expr: To component_select_expr (',' component_select_expr)* ID?;
80
+ to_component_expr: To ((component_select_expr (',' component_select_expr)* ID?) | Point); // ID? is for orientation
80
81
  // pin_select_expr_next: 'pin' INTEGER_VALUE (',' INTEGER_VALUE)?;
81
82
 
82
83
  at_to_multiple_expr: At component_select_expr To component_select_expr (',' component_select_expr)* ':' NEWLINE INDENT (NEWLINE | at_to_multiple_line_expr) + DEDENT;
@@ -33,32 +33,33 @@ export default class CircuitScriptLexer extends Lexer {
33
33
  public static readonly At = 17;
34
34
  public static readonly To = 18;
35
35
  public static readonly Point = 19;
36
- public static readonly Return = 20;
37
- public static readonly Define = 21;
38
- public static readonly Import = 22;
39
- public static readonly Join = 23;
40
- public static readonly If = 24;
41
- public static readonly Not = 25;
42
- public static readonly Equals = 26;
43
- public static readonly NotEquals = 27;
44
- public static readonly Addition = 28;
45
- public static readonly Minus = 29;
46
- public static readonly Divide = 30;
47
- public static readonly Multiply = 31;
48
- public static readonly OPEN_PAREN = 32;
49
- public static readonly CLOSE_PAREN = 33;
50
- public static readonly NOT_CONNECTED = 34;
51
- public static readonly BOOLEAN_VALUE = 35;
52
- public static readonly ID = 36;
53
- public static readonly INTEGER_VALUE = 37;
54
- public static readonly DECIMAL_VALUE = 38;
55
- public static readonly NUMERIC_VALUE = 39;
56
- public static readonly STRING_VALUE = 40;
57
- public static readonly PERCENTAGE_VALUE = 41;
58
- public static readonly ALPHA_NUMERIC = 42;
59
- public static readonly WS = 43;
60
- public static readonly NEWLINE = 44;
61
- public static readonly SKIP_ = 45;
36
+ public static readonly Join = 20;
37
+ public static readonly Parallel = 21;
38
+ public static readonly Return = 22;
39
+ public static readonly Define = 23;
40
+ public static readonly Import = 24;
41
+ public static readonly If = 25;
42
+ public static readonly Not = 26;
43
+ public static readonly Equals = 27;
44
+ public static readonly NotEquals = 28;
45
+ public static readonly Addition = 29;
46
+ public static readonly Minus = 30;
47
+ public static readonly Divide = 31;
48
+ public static readonly Multiply = 32;
49
+ public static readonly OPEN_PAREN = 33;
50
+ public static readonly CLOSE_PAREN = 34;
51
+ public static readonly NOT_CONNECTED = 35;
52
+ public static readonly BOOLEAN_VALUE = 36;
53
+ public static readonly ID = 37;
54
+ public static readonly INTEGER_VALUE = 38;
55
+ public static readonly DECIMAL_VALUE = 39;
56
+ public static readonly NUMERIC_VALUE = 40;
57
+ public static readonly STRING_VALUE = 41;
58
+ public static readonly PERCENTAGE_VALUE = 42;
59
+ public static readonly ALPHA_NUMERIC = 43;
60
+ public static readonly WS = 44;
61
+ public static readonly NEWLINE = 45;
62
+ public static readonly SKIP_ = 46;
62
63
  public static readonly EOF = Token.EOF;
63
64
 
64
65
  public static readonly channelNames: string[] = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
@@ -74,14 +75,14 @@ export default class CircuitScriptLexer extends Lexer {
74
75
  "'wire'", "'pin'",
75
76
  "'add'", "'at'",
76
77
  "'to'", "'point'",
78
+ "'join'", "'parallel'",
77
79
  "'return'",
78
80
  "'def'", "'import'",
79
- "'join'", "'if'",
80
- "'!'", "'=='",
81
- "'!='", "'+'",
82
- "'-'", "'/'",
83
- "'*'", "'('",
84
- "')'" ];
81
+ "'if'", "'!'",
82
+ "'=='", "'!='",
83
+ "'+'", "'-'",
84
+ "'/'", "'*'",
85
+ "'('", "')'" ];
85
86
  public static readonly symbolicNames: (string | null)[] = [ null, null,
86
87
  null, null,
87
88
  null, null,
@@ -93,10 +94,11 @@ export default class CircuitScriptLexer extends Lexer {
93
94
  "Wire", "Pin",
94
95
  "Add", "At",
95
96
  "To", "Point",
97
+ "Join", "Parallel",
96
98
  "Return", "Define",
97
- "Import", "Join",
98
- "If", "Not",
99
- "Equals", "NotEquals",
99
+ "Import", "If",
100
+ "Not", "Equals",
101
+ "NotEquals",
100
102
  "Addition",
101
103
  "Minus", "Divide",
102
104
  "Multiply",
@@ -117,9 +119,9 @@ export default class CircuitScriptLexer extends Lexer {
117
119
  public static readonly ruleNames: string[] = [
118
120
  "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "Break",
119
121
  "Branch", "Create", "Component", "Graphic", "Wire", "Pin", "Add", "At",
120
- "To", "Point", "Return", "Define", "Import", "Join", "If", "Not", "Equals",
121
- "NotEquals", "Addition", "Minus", "Divide", "Multiply", "OPEN_PAREN",
122
- "CLOSE_PAREN", "NOT_CONNECTED", "BOOLEAN_VALUE", "ID", "DecimalIntegerLiteral",
122
+ "To", "Point", "Join", "Parallel", "Return", "Define", "Import", "If",
123
+ "Not", "Equals", "NotEquals", "Addition", "Minus", "Divide", "Multiply",
124
+ "OPEN_PAREN", "CLOSE_PAREN", "NOT_CONNECTED", "BOOLEAN_VALUE", "ID", "DecimalIntegerLiteral",
123
125
  "INTEGER_VALUE", "DECIMAL_VALUE", "NUMERIC_VALUE", "STRING_VALUE", "PERCENTAGE_VALUE",
124
126
  "ALPHA_NUMERIC", "WS", "NEWLINE", "SPACES", "COMMENT", "SKIP_",
125
127
  ];
@@ -145,13 +147,13 @@ export default class CircuitScriptLexer extends Lexer {
145
147
  // @Override
146
148
  public action(localctx: RuleContext, ruleIndex: number, actionIndex: number): void {
147
149
  switch (ruleIndex) {
148
- case 31:
150
+ case 32:
149
151
  this.OPEN_PAREN_action(localctx, actionIndex);
150
152
  break;
151
- case 32:
153
+ case 33:
152
154
  this.CLOSE_PAREN_action(localctx, actionIndex);
153
155
  break;
154
- case 44:
156
+ case 45:
155
157
  this.NEWLINE_action(localctx, actionIndex);
156
158
  break;
157
159
  }
@@ -178,125 +180,128 @@ export default class CircuitScriptLexer extends Lexer {
178
180
  }
179
181
  }
180
182
 
181
- public static readonly _serializedATN: number[] = [4,0,45,357,6,-1,2,0,
183
+ public static readonly _serializedATN: number[] = [4,0,46,368,6,-1,2,0,
182
184
  7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,
183
185
  7,9,2,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,
184
186
  16,2,17,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,
185
187
  2,24,7,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,
186
188
  31,7,31,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,
187
189
  7,38,2,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,
188
- 45,2,46,7,46,2,47,7,47,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,
189
- 1,5,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,
190
- 1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,
191
- 1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,
192
- 13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,16,1,16,
193
- 1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,
194
- 19,1,19,1,19,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,22,
195
- 1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,
196
- 26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,
197
- 1,33,1,33,1,33,1,33,3,33,234,8,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,
198
- 34,1,34,3,34,245,8,34,1,35,1,35,5,35,249,8,35,10,35,12,35,252,9,35,1,36,
199
- 1,36,1,36,5,36,257,8,36,10,36,12,36,260,9,36,3,36,262,8,36,1,37,4,37,265,
200
- 8,37,11,37,12,37,266,1,37,5,37,270,8,37,10,37,12,37,273,9,37,1,37,3,37,
201
- 276,8,37,1,38,1,38,1,38,1,38,5,38,282,8,38,10,38,12,38,285,9,38,1,39,1,
202
- 39,3,39,289,8,39,1,39,3,39,292,8,39,1,40,1,40,5,40,296,8,40,10,40,12,40,
203
- 299,9,40,1,40,1,40,1,41,4,41,304,8,41,11,41,12,41,305,1,41,5,41,309,8,41,
204
- 10,41,12,41,312,9,41,1,41,1,41,1,42,4,42,317,8,42,11,42,12,42,318,1,43,
205
- 4,43,322,8,43,11,43,12,43,323,1,43,1,43,1,44,3,44,329,8,44,1,44,1,44,3,
206
- 44,333,8,44,1,44,3,44,336,8,44,1,44,1,44,1,45,4,45,341,8,45,11,45,12,45,
207
- 342,1,46,1,46,5,46,347,8,46,10,46,12,46,350,9,46,1,47,1,47,3,47,354,8,47,
208
- 1,47,1,47,1,297,0,48,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,
209
- 23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,
210
- 47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,
211
- 71,36,73,0,75,37,77,38,79,39,81,40,83,41,85,42,87,43,89,44,91,0,93,0,95,
212
- 45,1,0,10,3,0,65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,1,0,49,57,
213
- 2,0,48,57,95,95,1,0,48,57,1,0,48,48,5,0,77,77,107,107,109,110,112,112,117,
214
- 117,3,0,48,57,65,90,97,122,2,0,9,9,32,32,2,0,10,10,12,13,375,0,1,1,0,0,
215
- 0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,
216
- 0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,
217
- 25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,
218
- 0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,
219
- 47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,
220
- 0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,
221
- 69,1,0,0,0,0,71,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,
222
- 0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,95,1,0,0,0,1,
223
- 97,1,0,0,0,3,99,1,0,0,0,5,101,1,0,0,0,7,103,1,0,0,0,9,106,1,0,0,0,11,108,
224
- 1,0,0,0,13,110,1,0,0,0,15,112,1,0,0,0,17,118,1,0,0,0,19,124,1,0,0,0,21,
225
- 131,1,0,0,0,23,138,1,0,0,0,25,148,1,0,0,0,27,156,1,0,0,0,29,161,1,0,0,0,
226
- 31,165,1,0,0,0,33,169,1,0,0,0,35,172,1,0,0,0,37,175,1,0,0,0,39,181,1,0,
227
- 0,0,41,188,1,0,0,0,43,192,1,0,0,0,45,199,1,0,0,0,47,204,1,0,0,0,49,207,
228
- 1,0,0,0,51,209,1,0,0,0,53,212,1,0,0,0,55,215,1,0,0,0,57,217,1,0,0,0,59,
229
- 219,1,0,0,0,61,221,1,0,0,0,63,223,1,0,0,0,65,226,1,0,0,0,67,233,1,0,0,0,
230
- 69,244,1,0,0,0,71,246,1,0,0,0,73,261,1,0,0,0,75,275,1,0,0,0,77,277,1,0,
231
- 0,0,79,288,1,0,0,0,81,293,1,0,0,0,83,303,1,0,0,0,85,316,1,0,0,0,87,321,
232
- 1,0,0,0,89,332,1,0,0,0,91,340,1,0,0,0,93,344,1,0,0,0,95,353,1,0,0,0,97,
233
- 98,5,58,0,0,98,2,1,0,0,0,99,100,5,44,0,0,100,4,1,0,0,0,101,102,5,61,0,0,
234
- 102,6,1,0,0,0,103,104,5,46,0,0,104,105,5,46,0,0,105,8,1,0,0,0,106,107,5,
235
- 46,0,0,107,10,1,0,0,0,108,109,5,91,0,0,109,12,1,0,0,0,110,111,5,93,0,0,
236
- 111,14,1,0,0,0,112,113,5,102,0,0,113,114,5,114,0,0,114,115,5,97,0,0,115,
237
- 116,5,109,0,0,116,117,5,101,0,0,117,16,1,0,0,0,118,119,5,98,0,0,119,120,
238
- 5,114,0,0,120,121,5,101,0,0,121,122,5,97,0,0,122,123,5,107,0,0,123,18,1,
239
- 0,0,0,124,125,5,98,0,0,125,126,5,114,0,0,126,127,5,97,0,0,127,128,5,110,
240
- 0,0,128,129,5,99,0,0,129,130,5,104,0,0,130,20,1,0,0,0,131,132,5,99,0,0,
241
- 132,133,5,114,0,0,133,134,5,101,0,0,134,135,5,97,0,0,135,136,5,116,0,0,
242
- 136,137,5,101,0,0,137,22,1,0,0,0,138,139,5,99,0,0,139,140,5,111,0,0,140,
243
- 141,5,109,0,0,141,142,5,112,0,0,142,143,5,111,0,0,143,144,5,110,0,0,144,
244
- 145,5,101,0,0,145,146,5,110,0,0,146,147,5,116,0,0,147,24,1,0,0,0,148,149,
245
- 5,103,0,0,149,150,5,114,0,0,150,151,5,97,0,0,151,152,5,112,0,0,152,153,
246
- 5,104,0,0,153,154,5,105,0,0,154,155,5,99,0,0,155,26,1,0,0,0,156,157,5,119,
247
- 0,0,157,158,5,105,0,0,158,159,5,114,0,0,159,160,5,101,0,0,160,28,1,0,0,
248
- 0,161,162,5,112,0,0,162,163,5,105,0,0,163,164,5,110,0,0,164,30,1,0,0,0,
249
- 165,166,5,97,0,0,166,167,5,100,0,0,167,168,5,100,0,0,168,32,1,0,0,0,169,
250
- 170,5,97,0,0,170,171,5,116,0,0,171,34,1,0,0,0,172,173,5,116,0,0,173,174,
251
- 5,111,0,0,174,36,1,0,0,0,175,176,5,112,0,0,176,177,5,111,0,0,177,178,5,
252
- 105,0,0,178,179,5,110,0,0,179,180,5,116,0,0,180,38,1,0,0,0,181,182,5,114,
253
- 0,0,182,183,5,101,0,0,183,184,5,116,0,0,184,185,5,117,0,0,185,186,5,114,
254
- 0,0,186,187,5,110,0,0,187,40,1,0,0,0,188,189,5,100,0,0,189,190,5,101,0,
255
- 0,190,191,5,102,0,0,191,42,1,0,0,0,192,193,5,105,0,0,193,194,5,109,0,0,
256
- 194,195,5,112,0,0,195,196,5,111,0,0,196,197,5,114,0,0,197,198,5,116,0,0,
257
- 198,44,1,0,0,0,199,200,5,106,0,0,200,201,5,111,0,0,201,202,5,105,0,0,202,
258
- 203,5,110,0,0,203,46,1,0,0,0,204,205,5,105,0,0,205,206,5,102,0,0,206,48,
259
- 1,0,0,0,207,208,5,33,0,0,208,50,1,0,0,0,209,210,5,61,0,0,210,211,5,61,0,
260
- 0,211,52,1,0,0,0,212,213,5,33,0,0,213,214,5,61,0,0,214,54,1,0,0,0,215,216,
261
- 5,43,0,0,216,56,1,0,0,0,217,218,5,45,0,0,218,58,1,0,0,0,219,220,5,47,0,
262
- 0,220,60,1,0,0,0,221,222,5,42,0,0,222,62,1,0,0,0,223,224,5,40,0,0,224,225,
263
- 6,31,0,0,225,64,1,0,0,0,226,227,5,41,0,0,227,228,6,32,1,0,228,66,1,0,0,
264
- 0,229,230,5,110,0,0,230,234,5,99,0,0,231,232,5,78,0,0,232,234,5,67,0,0,
265
- 233,229,1,0,0,0,233,231,1,0,0,0,234,68,1,0,0,0,235,236,5,116,0,0,236,237,
266
- 5,114,0,0,237,238,5,117,0,0,238,245,5,101,0,0,239,240,5,102,0,0,240,241,
267
- 5,97,0,0,241,242,5,108,0,0,242,243,5,115,0,0,243,245,5,101,0,0,244,235,
268
- 1,0,0,0,244,239,1,0,0,0,245,70,1,0,0,0,246,250,7,0,0,0,247,249,7,1,0,0,
269
- 248,247,1,0,0,0,249,252,1,0,0,0,250,248,1,0,0,0,250,251,1,0,0,0,251,72,
270
- 1,0,0,0,252,250,1,0,0,0,253,262,5,48,0,0,254,258,7,2,0,0,255,257,7,3,0,
271
- 0,256,255,1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,262,
272
- 1,0,0,0,260,258,1,0,0,0,261,253,1,0,0,0,261,254,1,0,0,0,262,74,1,0,0,0,
273
- 263,265,7,2,0,0,264,263,1,0,0,0,265,266,1,0,0,0,266,264,1,0,0,0,266,267,
274
- 1,0,0,0,267,271,1,0,0,0,268,270,7,4,0,0,269,268,1,0,0,0,270,273,1,0,0,0,
275
- 271,269,1,0,0,0,271,272,1,0,0,0,272,276,1,0,0,0,273,271,1,0,0,0,274,276,
276
- 7,5,0,0,275,264,1,0,0,0,275,274,1,0,0,0,276,76,1,0,0,0,277,278,3,73,36,
277
- 0,278,279,5,46,0,0,279,283,7,4,0,0,280,282,7,3,0,0,281,280,1,0,0,0,282,
278
- 285,1,0,0,0,283,281,1,0,0,0,283,284,1,0,0,0,284,78,1,0,0,0,285,283,1,0,
279
- 0,0,286,289,3,75,37,0,287,289,3,77,38,0,288,286,1,0,0,0,288,287,1,0,0,0,
280
- 289,291,1,0,0,0,290,292,7,6,0,0,291,290,1,0,0,0,291,292,1,0,0,0,292,80,
281
- 1,0,0,0,293,297,5,34,0,0,294,296,9,0,0,0,295,294,1,0,0,0,296,299,1,0,0,
282
- 0,297,298,1,0,0,0,297,295,1,0,0,0,298,300,1,0,0,0,299,297,1,0,0,0,300,301,
283
- 5,34,0,0,301,82,1,0,0,0,302,304,7,2,0,0,303,302,1,0,0,0,304,305,1,0,0,0,
284
- 305,303,1,0,0,0,305,306,1,0,0,0,306,310,1,0,0,0,307,309,7,4,0,0,308,307,
285
- 1,0,0,0,309,312,1,0,0,0,310,308,1,0,0,0,310,311,1,0,0,0,311,313,1,0,0,0,
286
- 312,310,1,0,0,0,313,314,5,37,0,0,314,84,1,0,0,0,315,317,7,7,0,0,316,315,
287
- 1,0,0,0,317,318,1,0,0,0,318,316,1,0,0,0,318,319,1,0,0,0,319,86,1,0,0,0,
288
- 320,322,7,8,0,0,321,320,1,0,0,0,322,323,1,0,0,0,323,321,1,0,0,0,323,324,
289
- 1,0,0,0,324,325,1,0,0,0,325,326,6,43,2,0,326,88,1,0,0,0,327,329,5,13,0,
290
- 0,328,327,1,0,0,0,328,329,1,0,0,0,329,330,1,0,0,0,330,333,5,10,0,0,331,
291
- 333,2,12,13,0,332,328,1,0,0,0,332,331,1,0,0,0,333,335,1,0,0,0,334,336,3,
292
- 91,45,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,338,6,44,3,
293
- 0,338,90,1,0,0,0,339,341,7,8,0,0,340,339,1,0,0,0,341,342,1,0,0,0,342,340,
294
- 1,0,0,0,342,343,1,0,0,0,343,92,1,0,0,0,344,348,5,35,0,0,345,347,8,9,0,0,
295
- 346,345,1,0,0,0,347,350,1,0,0,0,348,346,1,0,0,0,348,349,1,0,0,0,349,94,
296
- 1,0,0,0,350,348,1,0,0,0,351,354,3,87,43,0,352,354,3,93,46,0,353,351,1,0,
297
- 0,0,353,352,1,0,0,0,354,355,1,0,0,0,355,356,6,47,2,0,356,96,1,0,0,0,23,
298
- 0,233,244,250,258,261,266,271,275,283,288,291,297,305,310,318,323,328,332,
299
- 335,342,348,353,4,1,31,0,1,32,1,6,0,0,1,44,2];
190
+ 45,2,46,7,46,2,47,7,47,2,48,7,48,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,
191
+ 4,1,4,1,5,1,5,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,8,1,
192
+ 9,1,9,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,
193
+ 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,
194
+ 12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,
195
+ 1,16,1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,
196
+ 19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,
197
+ 1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,
198
+ 23,1,24,1,24,1,24,1,25,1,25,1,26,1,26,1,26,1,27,1,27,1,27,1,28,1,28,1,29,
199
+ 1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,
200
+ 34,3,34,245,8,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,35,3,35,256,
201
+ 8,35,1,36,1,36,5,36,260,8,36,10,36,12,36,263,9,36,1,37,1,37,1,37,5,37,268,
202
+ 8,37,10,37,12,37,271,9,37,3,37,273,8,37,1,38,4,38,276,8,38,11,38,12,38,
203
+ 277,1,38,5,38,281,8,38,10,38,12,38,284,9,38,1,38,3,38,287,8,38,1,39,1,39,
204
+ 1,39,1,39,5,39,293,8,39,10,39,12,39,296,9,39,1,40,1,40,3,40,300,8,40,1,
205
+ 40,3,40,303,8,40,1,41,1,41,5,41,307,8,41,10,41,12,41,310,9,41,1,41,1,41,
206
+ 1,42,4,42,315,8,42,11,42,12,42,316,1,42,5,42,320,8,42,10,42,12,42,323,9,
207
+ 42,1,42,1,42,1,43,4,43,328,8,43,11,43,12,43,329,1,44,4,44,333,8,44,11,44,
208
+ 12,44,334,1,44,1,44,1,45,3,45,340,8,45,1,45,1,45,3,45,344,8,45,1,45,3,45,
209
+ 347,8,45,1,45,1,45,1,46,4,46,352,8,46,11,46,12,46,353,1,47,1,47,5,47,358,
210
+ 8,47,10,47,12,47,361,9,47,1,48,1,48,3,48,365,8,48,1,48,1,48,1,308,0,49,
211
+ 1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,
212
+ 15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,
213
+ 27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,0,77,
214
+ 38,79,39,81,40,83,41,85,42,87,43,89,44,91,45,93,0,95,0,97,46,1,0,10,3,0,
215
+ 65,90,95,95,97,122,4,0,48,57,65,90,95,95,97,122,1,0,49,57,2,0,48,57,95,
216
+ 95,1,0,48,57,1,0,48,48,5,0,77,77,107,107,109,110,112,112,117,117,3,0,48,
217
+ 57,65,90,97,122,2,0,9,9,32,32,2,0,10,10,12,13,386,0,1,1,0,0,0,0,3,1,0,0,
218
+ 0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,
219
+ 0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,
220
+ 0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,
221
+ 0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,
222
+ 0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,
223
+ 0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,
224
+ 0,71,1,0,0,0,0,73,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,
225
+ 0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,97,1,0,0,0,
226
+ 1,99,1,0,0,0,3,101,1,0,0,0,5,103,1,0,0,0,7,105,1,0,0,0,9,108,1,0,0,0,11,
227
+ 110,1,0,0,0,13,112,1,0,0,0,15,114,1,0,0,0,17,120,1,0,0,0,19,126,1,0,0,0,
228
+ 21,133,1,0,0,0,23,140,1,0,0,0,25,150,1,0,0,0,27,158,1,0,0,0,29,163,1,0,
229
+ 0,0,31,167,1,0,0,0,33,171,1,0,0,0,35,174,1,0,0,0,37,177,1,0,0,0,39,183,
230
+ 1,0,0,0,41,188,1,0,0,0,43,197,1,0,0,0,45,204,1,0,0,0,47,208,1,0,0,0,49,
231
+ 215,1,0,0,0,51,218,1,0,0,0,53,220,1,0,0,0,55,223,1,0,0,0,57,226,1,0,0,0,
232
+ 59,228,1,0,0,0,61,230,1,0,0,0,63,232,1,0,0,0,65,234,1,0,0,0,67,237,1,0,
233
+ 0,0,69,244,1,0,0,0,71,255,1,0,0,0,73,257,1,0,0,0,75,272,1,0,0,0,77,286,
234
+ 1,0,0,0,79,288,1,0,0,0,81,299,1,0,0,0,83,304,1,0,0,0,85,314,1,0,0,0,87,
235
+ 327,1,0,0,0,89,332,1,0,0,0,91,343,1,0,0,0,93,351,1,0,0,0,95,355,1,0,0,0,
236
+ 97,364,1,0,0,0,99,100,5,58,0,0,100,2,1,0,0,0,101,102,5,44,0,0,102,4,1,0,
237
+ 0,0,103,104,5,61,0,0,104,6,1,0,0,0,105,106,5,46,0,0,106,107,5,46,0,0,107,
238
+ 8,1,0,0,0,108,109,5,46,0,0,109,10,1,0,0,0,110,111,5,91,0,0,111,12,1,0,0,
239
+ 0,112,113,5,93,0,0,113,14,1,0,0,0,114,115,5,102,0,0,115,116,5,114,0,0,116,
240
+ 117,5,97,0,0,117,118,5,109,0,0,118,119,5,101,0,0,119,16,1,0,0,0,120,121,
241
+ 5,98,0,0,121,122,5,114,0,0,122,123,5,101,0,0,123,124,5,97,0,0,124,125,5,
242
+ 107,0,0,125,18,1,0,0,0,126,127,5,98,0,0,127,128,5,114,0,0,128,129,5,97,
243
+ 0,0,129,130,5,110,0,0,130,131,5,99,0,0,131,132,5,104,0,0,132,20,1,0,0,0,
244
+ 133,134,5,99,0,0,134,135,5,114,0,0,135,136,5,101,0,0,136,137,5,97,0,0,137,
245
+ 138,5,116,0,0,138,139,5,101,0,0,139,22,1,0,0,0,140,141,5,99,0,0,141,142,
246
+ 5,111,0,0,142,143,5,109,0,0,143,144,5,112,0,0,144,145,5,111,0,0,145,146,
247
+ 5,110,0,0,146,147,5,101,0,0,147,148,5,110,0,0,148,149,5,116,0,0,149,24,
248
+ 1,0,0,0,150,151,5,103,0,0,151,152,5,114,0,0,152,153,5,97,0,0,153,154,5,
249
+ 112,0,0,154,155,5,104,0,0,155,156,5,105,0,0,156,157,5,99,0,0,157,26,1,0,
250
+ 0,0,158,159,5,119,0,0,159,160,5,105,0,0,160,161,5,114,0,0,161,162,5,101,
251
+ 0,0,162,28,1,0,0,0,163,164,5,112,0,0,164,165,5,105,0,0,165,166,5,110,0,
252
+ 0,166,30,1,0,0,0,167,168,5,97,0,0,168,169,5,100,0,0,169,170,5,100,0,0,170,
253
+ 32,1,0,0,0,171,172,5,97,0,0,172,173,5,116,0,0,173,34,1,0,0,0,174,175,5,
254
+ 116,0,0,175,176,5,111,0,0,176,36,1,0,0,0,177,178,5,112,0,0,178,179,5,111,
255
+ 0,0,179,180,5,105,0,0,180,181,5,110,0,0,181,182,5,116,0,0,182,38,1,0,0,
256
+ 0,183,184,5,106,0,0,184,185,5,111,0,0,185,186,5,105,0,0,186,187,5,110,0,
257
+ 0,187,40,1,0,0,0,188,189,5,112,0,0,189,190,5,97,0,0,190,191,5,114,0,0,191,
258
+ 192,5,97,0,0,192,193,5,108,0,0,193,194,5,108,0,0,194,195,5,101,0,0,195,
259
+ 196,5,108,0,0,196,42,1,0,0,0,197,198,5,114,0,0,198,199,5,101,0,0,199,200,
260
+ 5,116,0,0,200,201,5,117,0,0,201,202,5,114,0,0,202,203,5,110,0,0,203,44,
261
+ 1,0,0,0,204,205,5,100,0,0,205,206,5,101,0,0,206,207,5,102,0,0,207,46,1,
262
+ 0,0,0,208,209,5,105,0,0,209,210,5,109,0,0,210,211,5,112,0,0,211,212,5,111,
263
+ 0,0,212,213,5,114,0,0,213,214,5,116,0,0,214,48,1,0,0,0,215,216,5,105,0,
264
+ 0,216,217,5,102,0,0,217,50,1,0,0,0,218,219,5,33,0,0,219,52,1,0,0,0,220,
265
+ 221,5,61,0,0,221,222,5,61,0,0,222,54,1,0,0,0,223,224,5,33,0,0,224,225,5,
266
+ 61,0,0,225,56,1,0,0,0,226,227,5,43,0,0,227,58,1,0,0,0,228,229,5,45,0,0,
267
+ 229,60,1,0,0,0,230,231,5,47,0,0,231,62,1,0,0,0,232,233,5,42,0,0,233,64,
268
+ 1,0,0,0,234,235,5,40,0,0,235,236,6,32,0,0,236,66,1,0,0,0,237,238,5,41,0,
269
+ 0,238,239,6,33,1,0,239,68,1,0,0,0,240,241,5,110,0,0,241,245,5,99,0,0,242,
270
+ 243,5,78,0,0,243,245,5,67,0,0,244,240,1,0,0,0,244,242,1,0,0,0,245,70,1,
271
+ 0,0,0,246,247,5,116,0,0,247,248,5,114,0,0,248,249,5,117,0,0,249,256,5,101,
272
+ 0,0,250,251,5,102,0,0,251,252,5,97,0,0,252,253,5,108,0,0,253,254,5,115,
273
+ 0,0,254,256,5,101,0,0,255,246,1,0,0,0,255,250,1,0,0,0,256,72,1,0,0,0,257,
274
+ 261,7,0,0,0,258,260,7,1,0,0,259,258,1,0,0,0,260,263,1,0,0,0,261,259,1,0,
275
+ 0,0,261,262,1,0,0,0,262,74,1,0,0,0,263,261,1,0,0,0,264,273,5,48,0,0,265,
276
+ 269,7,2,0,0,266,268,7,3,0,0,267,266,1,0,0,0,268,271,1,0,0,0,269,267,1,0,
277
+ 0,0,269,270,1,0,0,0,270,273,1,0,0,0,271,269,1,0,0,0,272,264,1,0,0,0,272,
278
+ 265,1,0,0,0,273,76,1,0,0,0,274,276,7,2,0,0,275,274,1,0,0,0,276,277,1,0,
279
+ 0,0,277,275,1,0,0,0,277,278,1,0,0,0,278,282,1,0,0,0,279,281,7,4,0,0,280,
280
+ 279,1,0,0,0,281,284,1,0,0,0,282,280,1,0,0,0,282,283,1,0,0,0,283,287,1,0,
281
+ 0,0,284,282,1,0,0,0,285,287,7,5,0,0,286,275,1,0,0,0,286,285,1,0,0,0,287,
282
+ 78,1,0,0,0,288,289,3,75,37,0,289,290,5,46,0,0,290,294,7,4,0,0,291,293,7,
283
+ 3,0,0,292,291,1,0,0,0,293,296,1,0,0,0,294,292,1,0,0,0,294,295,1,0,0,0,295,
284
+ 80,1,0,0,0,296,294,1,0,0,0,297,300,3,77,38,0,298,300,3,79,39,0,299,297,
285
+ 1,0,0,0,299,298,1,0,0,0,300,302,1,0,0,0,301,303,7,6,0,0,302,301,1,0,0,0,
286
+ 302,303,1,0,0,0,303,82,1,0,0,0,304,308,5,34,0,0,305,307,9,0,0,0,306,305,
287
+ 1,0,0,0,307,310,1,0,0,0,308,309,1,0,0,0,308,306,1,0,0,0,309,311,1,0,0,0,
288
+ 310,308,1,0,0,0,311,312,5,34,0,0,312,84,1,0,0,0,313,315,7,2,0,0,314,313,
289
+ 1,0,0,0,315,316,1,0,0,0,316,314,1,0,0,0,316,317,1,0,0,0,317,321,1,0,0,0,
290
+ 318,320,7,4,0,0,319,318,1,0,0,0,320,323,1,0,0,0,321,319,1,0,0,0,321,322,
291
+ 1,0,0,0,322,324,1,0,0,0,323,321,1,0,0,0,324,325,5,37,0,0,325,86,1,0,0,0,
292
+ 326,328,7,7,0,0,327,326,1,0,0,0,328,329,1,0,0,0,329,327,1,0,0,0,329,330,
293
+ 1,0,0,0,330,88,1,0,0,0,331,333,7,8,0,0,332,331,1,0,0,0,333,334,1,0,0,0,
294
+ 334,332,1,0,0,0,334,335,1,0,0,0,335,336,1,0,0,0,336,337,6,44,2,0,337,90,
295
+ 1,0,0,0,338,340,5,13,0,0,339,338,1,0,0,0,339,340,1,0,0,0,340,341,1,0,0,
296
+ 0,341,344,5,10,0,0,342,344,2,12,13,0,343,339,1,0,0,0,343,342,1,0,0,0,344,
297
+ 346,1,0,0,0,345,347,3,93,46,0,346,345,1,0,0,0,346,347,1,0,0,0,347,348,1,
298
+ 0,0,0,348,349,6,45,3,0,349,92,1,0,0,0,350,352,7,8,0,0,351,350,1,0,0,0,352,
299
+ 353,1,0,0,0,353,351,1,0,0,0,353,354,1,0,0,0,354,94,1,0,0,0,355,359,5,35,
300
+ 0,0,356,358,8,9,0,0,357,356,1,0,0,0,358,361,1,0,0,0,359,357,1,0,0,0,359,
301
+ 360,1,0,0,0,360,96,1,0,0,0,361,359,1,0,0,0,362,365,3,89,44,0,363,365,3,
302
+ 95,47,0,364,362,1,0,0,0,364,363,1,0,0,0,365,366,1,0,0,0,366,367,6,48,2,
303
+ 0,367,98,1,0,0,0,23,0,244,255,261,269,272,277,282,286,294,299,302,308,316,
304
+ 321,329,334,339,343,346,353,359,364,4,1,32,0,1,33,1,6,0,0,1,45,2];
300
305
 
301
306
  private static __ATN: ATN;
302
307
  public static get _ATN(): ATN {