circuitscript 0.0.22 → 0.0.24

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.
Files changed (164) hide show
  1. package/dist/cjs/antlr/CircuitScriptLexer.js +288 -0
  2. package/dist/cjs/antlr/CircuitScriptParser.js +4905 -0
  3. package/dist/cjs/antlr/CircuitScriptVisitor.js +6 -0
  4. package/{src/draw_symbols.ts → dist/cjs/draw_symbols.js} +303 -614
  5. package/dist/cjs/execute.js +780 -0
  6. package/{src/export.ts → dist/cjs/export.js} +34 -56
  7. package/dist/cjs/fonts.js +4 -0
  8. package/dist/cjs/geometry.js +430 -0
  9. package/dist/cjs/globals.js +60 -0
  10. package/dist/cjs/helpers.js +99 -0
  11. package/dist/cjs/index.js +29 -0
  12. package/{src/layout.ts → dist/cjs/layout.js} +413 -1002
  13. package/dist/cjs/lexer.js +114 -0
  14. package/dist/cjs/logger.js +17 -0
  15. package/dist/cjs/main.js +87 -0
  16. package/dist/cjs/objects/ClassComponent.js +142 -0
  17. package/dist/cjs/objects/ExecutionScope.js +134 -0
  18. package/dist/cjs/objects/Frame.js +22 -0
  19. package/{src/objects/Net.ts → dist/cjs/objects/Net.js} +9 -24
  20. package/dist/cjs/objects/ParamDefinition.js +42 -0
  21. package/dist/cjs/objects/PinDefinition.js +31 -0
  22. package/dist/cjs/objects/PinTypes.js +11 -0
  23. package/dist/cjs/objects/Wire.js +9 -0
  24. package/dist/cjs/objects/types.js +9 -0
  25. package/dist/cjs/parser.js +299 -0
  26. package/dist/cjs/regenerate-tests.js +23 -0
  27. package/dist/cjs/render.js +155 -0
  28. package/{src/server.ts → dist/cjs/server.js} +15 -21
  29. package/dist/cjs/sizing.js +105 -0
  30. package/{src/utils.ts → dist/cjs/utils.js} +25 -35
  31. package/{src/visitor.ts → dist/cjs/visitor.js} +392 -948
  32. package/{build/src/antlr/CircuitScriptLexer.js → dist/esm/antlr/CircuitScriptLexer.mjs} +90 -91
  33. package/{build/src/antlr/CircuitScriptParser.js → dist/esm/antlr/CircuitScriptParser.mjs} +138 -136
  34. package/{build/src/draw_symbols.js → dist/esm/draw_symbols.mjs} +11 -11
  35. package/{build/src/execute.js → dist/esm/execute.mjs} +9 -8
  36. package/{build/src/export.js → dist/esm/export.mjs} +2 -2
  37. package/{build/src/geometry.js → dist/esm/geometry.mjs} +3 -7
  38. package/{build/src/helpers.js → dist/esm/helpers.mjs} +27 -7
  39. package/dist/esm/index.mjs +13 -0
  40. package/{build/src/layout.js → dist/esm/layout.mjs} +11 -11
  41. package/{build/src/lexer.js → dist/esm/lexer.mjs} +2 -2
  42. package/{build/src/main.js → dist/esm/main.mjs} +5 -5
  43. package/{build/src/objects/ClassComponent.js → dist/esm/objects/ClassComponent.mjs} +3 -3
  44. package/{build/src/objects/PinDefinition.js → dist/esm/objects/PinDefinition.mjs} +1 -1
  45. package/dist/esm/parser.mjs +269 -0
  46. package/{build/src/regenerate-tests.js → dist/esm/regenerate-tests.mjs} +1 -1
  47. package/{build/src/render.js → dist/esm/render.mjs} +7 -24
  48. package/{build/src/sizing.js → dist/esm/sizing.mjs} +22 -8
  49. package/{build/src/visitor.js → dist/esm/visitor.mjs} +10 -29
  50. package/{build/src → dist/types}/antlr/CircuitScriptLexer.d.ts +23 -23
  51. package/{build/src → dist/types}/antlr/CircuitScriptParser.d.ts +24 -23
  52. package/{build/src → dist/types}/draw_symbols.d.ts +2 -2
  53. package/{build/src → dist/types}/execute.d.ts +2 -2
  54. package/{build/src → dist/types}/geometry.d.ts +1 -1
  55. package/dist/types/helpers.d.ts +9 -0
  56. package/dist/types/index.d.ts +13 -0
  57. package/{build/src → dist/types}/layout.d.ts +10 -10
  58. package/{build/src → dist/types}/objects/ClassComponent.d.ts +2 -2
  59. package/{build/src → dist/types}/objects/PinDefinition.d.ts +1 -1
  60. package/dist/types/parser.d.ts +38 -0
  61. package/{build/src → dist/types}/render.d.ts +1 -1
  62. package/{build/src → dist/types}/sizing.d.ts +3 -1
  63. package/{build/src → dist/types}/visitor.d.ts +5 -3
  64. package/package.json +30 -12
  65. package/.editorconfig +0 -15
  66. package/.eslintignore +0 -1
  67. package/.eslintrc.json +0 -27
  68. package/.gitlab-ci.yml +0 -81
  69. package/.prettierignore +0 -8
  70. package/.prettierrc +0 -16
  71. package/__tests__/expectedResults.ts +0 -657
  72. package/__tests__/helpers.ts +0 -82
  73. package/__tests__/parseScripts.ts +0 -593
  74. package/__tests__/renderData/script1.cst +0 -58
  75. package/__tests__/renderData/script1.cst.svg +0 -1
  76. package/__tests__/renderData/script2.cst +0 -16
  77. package/__tests__/renderData/script2.cst.svg +0 -1
  78. package/__tests__/renderData/script3.cst +0 -30
  79. package/__tests__/renderData/script3.cst.svg +0 -1
  80. package/__tests__/renderData/script4.cst +0 -54
  81. package/__tests__/renderData/script4.cst.svg +0 -1
  82. package/__tests__/renderData/script5.cst +0 -23
  83. package/__tests__/renderData/script5.cst.svg +0 -1
  84. package/__tests__/renderData/script6.cst +0 -28
  85. package/__tests__/renderData/script6.cst.svg +0 -1
  86. package/__tests__/renderData/script7.cst +0 -26
  87. package/__tests__/renderData/script7.cst.svg +0 -1
  88. package/__tests__/renderData/script8.cst +0 -37
  89. package/__tests__/renderData/script8.cst.svg +0 -1
  90. package/__tests__/testCLI.ts +0 -68
  91. package/__tests__/testMathOps.ts +0 -36
  92. package/__tests__/testMergeWires.ts +0 -141
  93. package/__tests__/testParse.ts +0 -263
  94. package/__tests__/testRender.ts +0 -38
  95. package/build/src/helpers.d.ts +0 -1
  96. package/build/src/parser.js +0 -69
  97. package/documentation.md +0 -238
  98. package/examples/example_arduino_uno.cst +0 -1146
  99. package/examples/example_garden_pump.cst +0 -567
  100. package/examples/lib.cst +0 -185
  101. package/fonts/Inter-Bold.ttf +0 -0
  102. package/fonts/Inter-Regular.ttf +0 -0
  103. package/fonts/OpenSans-Regular.ttf +0 -0
  104. package/fonts/Roboto-Regular.ttf +0 -0
  105. package/jest.config.js +0 -23
  106. package/libs/lib.cst +0 -185
  107. package/refresh.html +0 -42
  108. package/server.cjs +0 -50
  109. package/src/antlr/CircuitScript.g4 +0 -209
  110. package/src/antlr/CircuitScriptLexer.ts +0 -317
  111. package/src/antlr/CircuitScriptParser.ts +0 -4979
  112. package/src/antlr/CircuitScriptVisitor.ts +0 -420
  113. package/src/execute.ts +0 -1227
  114. package/src/fonts.ts +0 -1
  115. package/src/geometry.ts +0 -638
  116. package/src/globals.ts +0 -67
  117. package/src/helpers.ts +0 -114
  118. package/src/lexer.ts +0 -151
  119. package/src/logger.ts +0 -17
  120. package/src/main.ts +0 -105
  121. package/src/objects/ClassComponent.ts +0 -223
  122. package/src/objects/ExecutionScope.ts +0 -201
  123. package/src/objects/Frame.ts +0 -20
  124. package/src/objects/ParamDefinition.ts +0 -49
  125. package/src/objects/PinDefinition.ts +0 -49
  126. package/src/objects/PinTypes.ts +0 -7
  127. package/src/objects/Wire.ts +0 -19
  128. package/src/objects/types.ts +0 -66
  129. package/src/parser.ts +0 -106
  130. package/src/regenerate-tests.ts +0 -25
  131. package/src/render.ts +0 -260
  132. package/src/sizing.ts +0 -96
  133. package/tsconfig.json +0 -27
  134. package/tsconfig.release.json +0 -8
  135. /package/{build/src/antlr/CircuitScriptVisitor.js → dist/esm/antlr/CircuitScriptVisitor.mjs} +0 -0
  136. /package/{build/src/fonts.js → dist/esm/fonts.mjs} +0 -0
  137. /package/{build/src/globals.js → dist/esm/globals.mjs} +0 -0
  138. /package/{build/src/logger.js → dist/esm/logger.mjs} +0 -0
  139. /package/{build/src/objects/ExecutionScope.js → dist/esm/objects/ExecutionScope.mjs} +0 -0
  140. /package/{build/src/objects/Frame.js → dist/esm/objects/Frame.mjs} +0 -0
  141. /package/{build/src/objects/Net.js → dist/esm/objects/Net.mjs} +0 -0
  142. /package/{build/src/objects/ParamDefinition.js → dist/esm/objects/ParamDefinition.mjs} +0 -0
  143. /package/{build/src/objects/PinTypes.js → dist/esm/objects/PinTypes.mjs} +0 -0
  144. /package/{build/src/objects/Wire.js → dist/esm/objects/Wire.mjs} +0 -0
  145. /package/{build/src/objects/types.js → dist/esm/objects/types.mjs} +0 -0
  146. /package/{build/src/server.js → dist/esm/server.mjs} +0 -0
  147. /package/{build/src/utils.js → dist/esm/utils.mjs} +0 -0
  148. /package/{build/src → dist/types}/antlr/CircuitScriptVisitor.d.ts +0 -0
  149. /package/{build/src → dist/types}/export.d.ts +0 -0
  150. /package/{build/src → dist/types}/fonts.d.ts +0 -0
  151. /package/{build/src → dist/types}/globals.d.ts +0 -0
  152. /package/{build/src → dist/types}/lexer.d.ts +0 -0
  153. /package/{build/src → dist/types}/logger.d.ts +0 -0
  154. /package/{build/src → dist/types}/main.d.ts +0 -0
  155. /package/{build/src → dist/types}/objects/ExecutionScope.d.ts +0 -0
  156. /package/{build/src → dist/types}/objects/Frame.d.ts +0 -0
  157. /package/{build/src → dist/types}/objects/Net.d.ts +0 -0
  158. /package/{build/src → dist/types}/objects/ParamDefinition.d.ts +0 -0
  159. /package/{build/src → dist/types}/objects/PinTypes.d.ts +0 -0
  160. /package/{build/src → dist/types}/objects/Wire.d.ts +0 -0
  161. /package/{build/src → dist/types}/objects/types.d.ts +0 -0
  162. /package/{build/src → dist/types}/regenerate-tests.d.ts +0 -0
  163. /package/{build/src → dist/types}/server.d.ts +0 -0
  164. /package/{build/src → dist/types}/utils.d.ts +0 -0
@@ -1,317 +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
- import {
6
- ATN,
7
- ATNDeserializer,
8
- CharStream,
9
- DecisionState, DFA,
10
- Lexer,
11
- LexerATNSimulator,
12
- RuleContext,
13
- PredictionContextCache,
14
- Token
15
- } from "antlr4";
16
- export default class CircuitScriptLexer extends Lexer {
17
- public static readonly T__0 = 1;
18
- public static readonly T__1 = 2;
19
- public static readonly T__2 = 3;
20
- public static readonly T__3 = 4;
21
- public static readonly T__4 = 5;
22
- public static readonly T__5 = 6;
23
- public static readonly T__6 = 7;
24
- public static readonly T__7 = 8;
25
- public static readonly Break = 9;
26
- public static readonly Branch = 10;
27
- public static readonly Create = 11;
28
- public static readonly Component = 12;
29
- public static readonly Graphic = 13;
30
- public static readonly Wire = 14;
31
- public static readonly Pin = 15;
32
- public static readonly Add = 16;
33
- public static readonly At = 17;
34
- public static readonly To = 18;
35
- public static readonly Point = 19;
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;
63
- public static readonly EOF = Token.EOF;
64
-
65
- public static readonly channelNames: string[] = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ];
66
- public static readonly literalNames: (string | null)[] = [ null, "':'",
67
- "','", "'='",
68
- "'..'", "'.'",
69
- "'['", "']'",
70
- "'frame'", "'break'",
71
- "'branch'",
72
- "'create'",
73
- "'component'",
74
- "'graphic'",
75
- "'wire'", "'pin'",
76
- "'add'", "'at'",
77
- "'to'", "'point'",
78
- "'join'", "'parallel'",
79
- "'return'",
80
- "'def'", "'import'",
81
- "'if'", "'!'",
82
- "'=='", "'!='",
83
- "'+'", "'-'",
84
- "'/'", "'*'",
85
- "'('", "')'" ];
86
- public static readonly symbolicNames: (string | null)[] = [ null, null,
87
- null, null,
88
- null, null,
89
- null, null,
90
- null, "Break",
91
- "Branch", "Create",
92
- "Component",
93
- "Graphic",
94
- "Wire", "Pin",
95
- "Add", "At",
96
- "To", "Point",
97
- "Join", "Parallel",
98
- "Return", "Define",
99
- "Import", "If",
100
- "Not", "Equals",
101
- "NotEquals",
102
- "Addition",
103
- "Minus", "Divide",
104
- "Multiply",
105
- "OPEN_PAREN",
106
- "CLOSE_PAREN",
107
- "NOT_CONNECTED",
108
- "BOOLEAN_VALUE",
109
- "ID", "INTEGER_VALUE",
110
- "DECIMAL_VALUE",
111
- "NUMERIC_VALUE",
112
- "STRING_VALUE",
113
- "PERCENTAGE_VALUE",
114
- "ALPHA_NUMERIC",
115
- "WS", "NEWLINE",
116
- "SKIP_" ];
117
- public static readonly modeNames: string[] = [ "DEFAULT_MODE", ];
118
-
119
- public static readonly ruleNames: string[] = [
120
- "T__0", "T__1", "T__2", "T__3", "T__4", "T__5", "T__6", "T__7", "Break",
121
- "Branch", "Create", "Component", "Graphic", "Wire", "Pin", "Add", "At",
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",
125
- "INTEGER_VALUE", "DECIMAL_VALUE", "NUMERIC_VALUE", "STRING_VALUE", "PERCENTAGE_VALUE",
126
- "ALPHA_NUMERIC", "WS", "NEWLINE", "SPACES", "COMMENT", "SKIP_",
127
- ];
128
-
129
-
130
- constructor(input: CharStream) {
131
- super(input);
132
- this._interp = new LexerATNSimulator(this, CircuitScriptLexer._ATN, CircuitScriptLexer.DecisionsToDFA, new PredictionContextCache());
133
- }
134
-
135
- public get grammarFileName(): string { return "CircuitScript.g4"; }
136
-
137
- public get literalNames(): (string | null)[] { return CircuitScriptLexer.literalNames; }
138
- public get symbolicNames(): (string | null)[] { return CircuitScriptLexer.symbolicNames; }
139
- public get ruleNames(): string[] { return CircuitScriptLexer.ruleNames; }
140
-
141
- public get serializedATN(): number[] { return CircuitScriptLexer._serializedATN; }
142
-
143
- public get channelNames(): string[] { return CircuitScriptLexer.channelNames; }
144
-
145
- public get modeNames(): string[] { return CircuitScriptLexer.modeNames; }
146
-
147
- // @Override
148
- public action(localctx: RuleContext, ruleIndex: number, actionIndex: number): void {
149
- switch (ruleIndex) {
150
- case 32:
151
- this.OPEN_PAREN_action(localctx, actionIndex);
152
- break;
153
- case 33:
154
- this.CLOSE_PAREN_action(localctx, actionIndex);
155
- break;
156
- case 45:
157
- this.NEWLINE_action(localctx, actionIndex);
158
- break;
159
- }
160
- }
161
- private OPEN_PAREN_action(localctx: RuleContext, actionIndex: number): void {
162
- switch (actionIndex) {
163
- case 0:
164
- this.openBrace();
165
- break;
166
- }
167
- }
168
- private CLOSE_PAREN_action(localctx: RuleContext, actionIndex: number): void {
169
- switch (actionIndex) {
170
- case 1:
171
- this.closeBrace();
172
- break;
173
- }
174
- }
175
- private NEWLINE_action(localctx: RuleContext, actionIndex: number): void {
176
- switch (actionIndex) {
177
- case 2:
178
- this.onNewLine();
179
- break;
180
- }
181
- }
182
-
183
- public static readonly _serializedATN: number[] = [4,0,46,368,6,-1,2,0,
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,
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,
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,
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,
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,
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,
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];
305
-
306
- private static __ATN: ATN;
307
- public static get _ATN(): ATN {
308
- if (!CircuitScriptLexer.__ATN) {
309
- CircuitScriptLexer.__ATN = new ATNDeserializer().deserialize(CircuitScriptLexer._serializedATN);
310
- }
311
-
312
- return CircuitScriptLexer.__ATN;
313
- }
314
-
315
-
316
- static DecisionsToDFA = CircuitScriptLexer._ATN.decisionToState.map( (ds: DecisionState, index: number) => new DFA(ds, index) );
317
- }