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,420 +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
-
5
- import {ParseTreeVisitor} from 'antlr4';
6
-
7
-
8
- import { ScriptContext } from "./CircuitScriptParser";
9
- import { ExpressionContext } from "./CircuitScriptParser";
10
- import { Path_blocksContext } from "./CircuitScriptParser";
11
- import { Path_block_innerContext } from "./CircuitScriptParser";
12
- import { Property_set_expr2Context } from "./CircuitScriptParser";
13
- import { Assignment_expr2Context } from "./CircuitScriptParser";
14
- import { Data_expr_with_assignmentContext } from "./CircuitScriptParser";
15
- import { Add_component_exprContext } from "./CircuitScriptParser";
16
- import { Component_select_exprContext } from "./CircuitScriptParser";
17
- import { Pin_select_exprContext } from "./CircuitScriptParser";
18
- import { Pin_select_expr2Context } from "./CircuitScriptParser";
19
- import { At_component_exprContext } from "./CircuitScriptParser";
20
- import { To_component_exprContext } from "./CircuitScriptParser";
21
- import { At_to_multiple_exprContext } from "./CircuitScriptParser";
22
- import { At_to_multiple_line_exprContext } from "./CircuitScriptParser";
23
- import { At_to_multiple_line_expr_to_pinContext } from "./CircuitScriptParser";
24
- import { At_blockContext } from "./CircuitScriptParser";
25
- import { At_block_expressionsContext } from "./CircuitScriptParser";
26
- import { At_block_pin_exprContext } from "./CircuitScriptParser";
27
- import { At_block_pin_expression_simpleContext } from "./CircuitScriptParser";
28
- import { At_block_pin_expression_complexContext } from "./CircuitScriptParser";
29
- import { Break_keywordContext } from "./CircuitScriptParser";
30
- import { Assignment_exprContext } from "./CircuitScriptParser";
31
- import { Keyword_assignment_exprContext } from "./CircuitScriptParser";
32
- import { ParametersContext } from "./CircuitScriptParser";
33
- import { Property_set_exprContext } from "./CircuitScriptParser";
34
- import { Double_dot_property_set_exprContext } from "./CircuitScriptParser";
35
- import { AdditionExprContext } from "./CircuitScriptParser";
36
- import { MultiplyExprContext } from "./CircuitScriptParser";
37
- import { DataExprContext } from "./CircuitScriptParser";
38
- import { UnaryOperatorExprContext } from "./CircuitScriptParser";
39
- import { ValueAtomExprContext } from "./CircuitScriptParser";
40
- import { BinaryOperatorExprContext } from "./CircuitScriptParser";
41
- import { RoundedBracketsExprContext } from "./CircuitScriptParser";
42
- import { Binary_operatorContext } from "./CircuitScriptParser";
43
- import { Unary_operatorContext } from "./CircuitScriptParser";
44
- import { Value_exprContext } from "./CircuitScriptParser";
45
- import { Function_def_exprContext } from "./CircuitScriptParser";
46
- import { Function_exprContext } from "./CircuitScriptParser";
47
- import { Function_args_exprContext } from "./CircuitScriptParser";
48
- import { Atom_exprContext } from "./CircuitScriptParser";
49
- import { Trailer_exprContext } from "./CircuitScriptParser";
50
- import { Net_namespace_exprContext } from "./CircuitScriptParser";
51
- import { Function_return_exprContext } from "./CircuitScriptParser";
52
- import { Create_component_exprContext } from "./CircuitScriptParser";
53
- import { Create_graphic_exprContext } from "./CircuitScriptParser";
54
- import { Sub_exprContext } from "./CircuitScriptParser";
55
- import { Property_exprContext } from "./CircuitScriptParser";
56
- import { Property_key_exprContext } from "./CircuitScriptParser";
57
- import { Nested_propertiesContext } from "./CircuitScriptParser";
58
- import { Single_line_propertyContext } from "./CircuitScriptParser";
59
- import { Blank_exprContext } from "./CircuitScriptParser";
60
- import { Wire_exprContext } from "./CircuitScriptParser";
61
- import { Point_exprContext } from "./CircuitScriptParser";
62
- import { Import_exprContext } from "./CircuitScriptParser";
63
- import { Frame_exprContext } from "./CircuitScriptParser";
64
-
65
-
66
- /**
67
- * This interface defines a complete generic visitor for a parse tree produced
68
- * by `CircuitScriptParser`.
69
- *
70
- * @param <Result> The return type of the visit operation. Use `void` for
71
- * operations with no return type.
72
- */
73
- export default class CircuitScriptVisitor<Result> extends ParseTreeVisitor<Result> {
74
- /**
75
- * Visit a parse tree produced by `CircuitScriptParser.script`.
76
- * @param ctx the parse tree
77
- * @return the visitor result
78
- */
79
- visitScript?: (ctx: ScriptContext) => Result;
80
- /**
81
- * Visit a parse tree produced by `CircuitScriptParser.expression`.
82
- * @param ctx the parse tree
83
- * @return the visitor result
84
- */
85
- visitExpression?: (ctx: ExpressionContext) => Result;
86
- /**
87
- * Visit a parse tree produced by `CircuitScriptParser.path_blocks`.
88
- * @param ctx the parse tree
89
- * @return the visitor result
90
- */
91
- visitPath_blocks?: (ctx: Path_blocksContext) => Result;
92
- /**
93
- * Visit a parse tree produced by `CircuitScriptParser.path_block_inner`.
94
- * @param ctx the parse tree
95
- * @return the visitor result
96
- */
97
- visitPath_block_inner?: (ctx: Path_block_innerContext) => Result;
98
- /**
99
- * Visit a parse tree produced by `CircuitScriptParser.property_set_expr2`.
100
- * @param ctx the parse tree
101
- * @return the visitor result
102
- */
103
- visitProperty_set_expr2?: (ctx: Property_set_expr2Context) => Result;
104
- /**
105
- * Visit a parse tree produced by `CircuitScriptParser.assignment_expr2`.
106
- * @param ctx the parse tree
107
- * @return the visitor result
108
- */
109
- visitAssignment_expr2?: (ctx: Assignment_expr2Context) => Result;
110
- /**
111
- * Visit a parse tree produced by `CircuitScriptParser.data_expr_with_assignment`.
112
- * @param ctx the parse tree
113
- * @return the visitor result
114
- */
115
- visitData_expr_with_assignment?: (ctx: Data_expr_with_assignmentContext) => Result;
116
- /**
117
- * Visit a parse tree produced by `CircuitScriptParser.add_component_expr`.
118
- * @param ctx the parse tree
119
- * @return the visitor result
120
- */
121
- visitAdd_component_expr?: (ctx: Add_component_exprContext) => Result;
122
- /**
123
- * Visit a parse tree produced by `CircuitScriptParser.component_select_expr`.
124
- * @param ctx the parse tree
125
- * @return the visitor result
126
- */
127
- visitComponent_select_expr?: (ctx: Component_select_exprContext) => Result;
128
- /**
129
- * Visit a parse tree produced by `CircuitScriptParser.pin_select_expr`.
130
- * @param ctx the parse tree
131
- * @return the visitor result
132
- */
133
- visitPin_select_expr?: (ctx: Pin_select_exprContext) => Result;
134
- /**
135
- * Visit a parse tree produced by `CircuitScriptParser.pin_select_expr2`.
136
- * @param ctx the parse tree
137
- * @return the visitor result
138
- */
139
- visitPin_select_expr2?: (ctx: Pin_select_expr2Context) => Result;
140
- /**
141
- * Visit a parse tree produced by `CircuitScriptParser.at_component_expr`.
142
- * @param ctx the parse tree
143
- * @return the visitor result
144
- */
145
- visitAt_component_expr?: (ctx: At_component_exprContext) => Result;
146
- /**
147
- * Visit a parse tree produced by `CircuitScriptParser.to_component_expr`.
148
- * @param ctx the parse tree
149
- * @return the visitor result
150
- */
151
- visitTo_component_expr?: (ctx: To_component_exprContext) => Result;
152
- /**
153
- * Visit a parse tree produced by `CircuitScriptParser.at_to_multiple_expr`.
154
- * @param ctx the parse tree
155
- * @return the visitor result
156
- */
157
- visitAt_to_multiple_expr?: (ctx: At_to_multiple_exprContext) => Result;
158
- /**
159
- * Visit a parse tree produced by `CircuitScriptParser.at_to_multiple_line_expr`.
160
- * @param ctx the parse tree
161
- * @return the visitor result
162
- */
163
- visitAt_to_multiple_line_expr?: (ctx: At_to_multiple_line_exprContext) => Result;
164
- /**
165
- * Visit a parse tree produced by `CircuitScriptParser.at_to_multiple_line_expr_to_pin`.
166
- * @param ctx the parse tree
167
- * @return the visitor result
168
- */
169
- visitAt_to_multiple_line_expr_to_pin?: (ctx: At_to_multiple_line_expr_to_pinContext) => Result;
170
- /**
171
- * Visit a parse tree produced by `CircuitScriptParser.at_block`.
172
- * @param ctx the parse tree
173
- * @return the visitor result
174
- */
175
- visitAt_block?: (ctx: At_blockContext) => Result;
176
- /**
177
- * Visit a parse tree produced by `CircuitScriptParser.at_block_expressions`.
178
- * @param ctx the parse tree
179
- * @return the visitor result
180
- */
181
- visitAt_block_expressions?: (ctx: At_block_expressionsContext) => Result;
182
- /**
183
- * Visit a parse tree produced by `CircuitScriptParser.at_block_pin_expr`.
184
- * @param ctx the parse tree
185
- * @return the visitor result
186
- */
187
- visitAt_block_pin_expr?: (ctx: At_block_pin_exprContext) => Result;
188
- /**
189
- * Visit a parse tree produced by `CircuitScriptParser.at_block_pin_expression_simple`.
190
- * @param ctx the parse tree
191
- * @return the visitor result
192
- */
193
- visitAt_block_pin_expression_simple?: (ctx: At_block_pin_expression_simpleContext) => Result;
194
- /**
195
- * Visit a parse tree produced by `CircuitScriptParser.at_block_pin_expression_complex`.
196
- * @param ctx the parse tree
197
- * @return the visitor result
198
- */
199
- visitAt_block_pin_expression_complex?: (ctx: At_block_pin_expression_complexContext) => Result;
200
- /**
201
- * Visit a parse tree produced by `CircuitScriptParser.break_keyword`.
202
- * @param ctx the parse tree
203
- * @return the visitor result
204
- */
205
- visitBreak_keyword?: (ctx: Break_keywordContext) => Result;
206
- /**
207
- * Visit a parse tree produced by `CircuitScriptParser.assignment_expr`.
208
- * @param ctx the parse tree
209
- * @return the visitor result
210
- */
211
- visitAssignment_expr?: (ctx: Assignment_exprContext) => Result;
212
- /**
213
- * Visit a parse tree produced by `CircuitScriptParser.keyword_assignment_expr`.
214
- * @param ctx the parse tree
215
- * @return the visitor result
216
- */
217
- visitKeyword_assignment_expr?: (ctx: Keyword_assignment_exprContext) => Result;
218
- /**
219
- * Visit a parse tree produced by `CircuitScriptParser.parameters`.
220
- * @param ctx the parse tree
221
- * @return the visitor result
222
- */
223
- visitParameters?: (ctx: ParametersContext) => Result;
224
- /**
225
- * Visit a parse tree produced by `CircuitScriptParser.property_set_expr`.
226
- * @param ctx the parse tree
227
- * @return the visitor result
228
- */
229
- visitProperty_set_expr?: (ctx: Property_set_exprContext) => Result;
230
- /**
231
- * Visit a parse tree produced by `CircuitScriptParser.double_dot_property_set_expr`.
232
- * @param ctx the parse tree
233
- * @return the visitor result
234
- */
235
- visitDouble_dot_property_set_expr?: (ctx: Double_dot_property_set_exprContext) => Result;
236
- /**
237
- * Visit a parse tree produced by the `AdditionExpr`
238
- * labeled alternative in `CircuitScriptParser.data_expr`.
239
- * @param ctx the parse tree
240
- * @return the visitor result
241
- */
242
- visitAdditionExpr?: (ctx: AdditionExprContext) => Result;
243
- /**
244
- * Visit a parse tree produced by the `MultiplyExpr`
245
- * labeled alternative in `CircuitScriptParser.data_expr`.
246
- * @param ctx the parse tree
247
- * @return the visitor result
248
- */
249
- visitMultiplyExpr?: (ctx: MultiplyExprContext) => Result;
250
- /**
251
- * Visit a parse tree produced by the `DataExpr`
252
- * labeled alternative in `CircuitScriptParser.data_expr`.
253
- * @param ctx the parse tree
254
- * @return the visitor result
255
- */
256
- visitDataExpr?: (ctx: DataExprContext) => Result;
257
- /**
258
- * Visit a parse tree produced by the `UnaryOperatorExpr`
259
- * labeled alternative in `CircuitScriptParser.data_expr`.
260
- * @param ctx the parse tree
261
- * @return the visitor result
262
- */
263
- visitUnaryOperatorExpr?: (ctx: UnaryOperatorExprContext) => Result;
264
- /**
265
- * Visit a parse tree produced by the `ValueAtomExpr`
266
- * labeled alternative in `CircuitScriptParser.data_expr`.
267
- * @param ctx the parse tree
268
- * @return the visitor result
269
- */
270
- visitValueAtomExpr?: (ctx: ValueAtomExprContext) => Result;
271
- /**
272
- * Visit a parse tree produced by the `BinaryOperatorExpr`
273
- * labeled alternative in `CircuitScriptParser.data_expr`.
274
- * @param ctx the parse tree
275
- * @return the visitor result
276
- */
277
- visitBinaryOperatorExpr?: (ctx: BinaryOperatorExprContext) => Result;
278
- /**
279
- * Visit a parse tree produced by the `RoundedBracketsExpr`
280
- * labeled alternative in `CircuitScriptParser.data_expr`.
281
- * @param ctx the parse tree
282
- * @return the visitor result
283
- */
284
- visitRoundedBracketsExpr?: (ctx: RoundedBracketsExprContext) => Result;
285
- /**
286
- * Visit a parse tree produced by `CircuitScriptParser.binary_operator`.
287
- * @param ctx the parse tree
288
- * @return the visitor result
289
- */
290
- visitBinary_operator?: (ctx: Binary_operatorContext) => Result;
291
- /**
292
- * Visit a parse tree produced by `CircuitScriptParser.unary_operator`.
293
- * @param ctx the parse tree
294
- * @return the visitor result
295
- */
296
- visitUnary_operator?: (ctx: Unary_operatorContext) => Result;
297
- /**
298
- * Visit a parse tree produced by `CircuitScriptParser.value_expr`.
299
- * @param ctx the parse tree
300
- * @return the visitor result
301
- */
302
- visitValue_expr?: (ctx: Value_exprContext) => Result;
303
- /**
304
- * Visit a parse tree produced by `CircuitScriptParser.function_def_expr`.
305
- * @param ctx the parse tree
306
- * @return the visitor result
307
- */
308
- visitFunction_def_expr?: (ctx: Function_def_exprContext) => Result;
309
- /**
310
- * Visit a parse tree produced by `CircuitScriptParser.function_expr`.
311
- * @param ctx the parse tree
312
- * @return the visitor result
313
- */
314
- visitFunction_expr?: (ctx: Function_exprContext) => Result;
315
- /**
316
- * Visit a parse tree produced by `CircuitScriptParser.function_args_expr`.
317
- * @param ctx the parse tree
318
- * @return the visitor result
319
- */
320
- visitFunction_args_expr?: (ctx: Function_args_exprContext) => Result;
321
- /**
322
- * Visit a parse tree produced by `CircuitScriptParser.atom_expr`.
323
- * @param ctx the parse tree
324
- * @return the visitor result
325
- */
326
- visitAtom_expr?: (ctx: Atom_exprContext) => Result;
327
- /**
328
- * Visit a parse tree produced by `CircuitScriptParser.trailer_expr`.
329
- * @param ctx the parse tree
330
- * @return the visitor result
331
- */
332
- visitTrailer_expr?: (ctx: Trailer_exprContext) => Result;
333
- /**
334
- * Visit a parse tree produced by `CircuitScriptParser.net_namespace_expr`.
335
- * @param ctx the parse tree
336
- * @return the visitor result
337
- */
338
- visitNet_namespace_expr?: (ctx: Net_namespace_exprContext) => Result;
339
- /**
340
- * Visit a parse tree produced by `CircuitScriptParser.function_return_expr`.
341
- * @param ctx the parse tree
342
- * @return the visitor result
343
- */
344
- visitFunction_return_expr?: (ctx: Function_return_exprContext) => Result;
345
- /**
346
- * Visit a parse tree produced by `CircuitScriptParser.create_component_expr`.
347
- * @param ctx the parse tree
348
- * @return the visitor result
349
- */
350
- visitCreate_component_expr?: (ctx: Create_component_exprContext) => Result;
351
- /**
352
- * Visit a parse tree produced by `CircuitScriptParser.create_graphic_expr`.
353
- * @param ctx the parse tree
354
- * @return the visitor result
355
- */
356
- visitCreate_graphic_expr?: (ctx: Create_graphic_exprContext) => Result;
357
- /**
358
- * Visit a parse tree produced by `CircuitScriptParser.sub_expr`.
359
- * @param ctx the parse tree
360
- * @return the visitor result
361
- */
362
- visitSub_expr?: (ctx: Sub_exprContext) => Result;
363
- /**
364
- * Visit a parse tree produced by `CircuitScriptParser.property_expr`.
365
- * @param ctx the parse tree
366
- * @return the visitor result
367
- */
368
- visitProperty_expr?: (ctx: Property_exprContext) => Result;
369
- /**
370
- * Visit a parse tree produced by `CircuitScriptParser.property_key_expr`.
371
- * @param ctx the parse tree
372
- * @return the visitor result
373
- */
374
- visitProperty_key_expr?: (ctx: Property_key_exprContext) => Result;
375
- /**
376
- * Visit a parse tree produced by the `nested_properties`
377
- * labeled alternative in `CircuitScriptParser.property_value_expr`.
378
- * @param ctx the parse tree
379
- * @return the visitor result
380
- */
381
- visitNested_properties?: (ctx: Nested_propertiesContext) => Result;
382
- /**
383
- * Visit a parse tree produced by the `single_line_property`
384
- * labeled alternative in `CircuitScriptParser.property_value_expr`.
385
- * @param ctx the parse tree
386
- * @return the visitor result
387
- */
388
- visitSingle_line_property?: (ctx: Single_line_propertyContext) => Result;
389
- /**
390
- * Visit a parse tree produced by `CircuitScriptParser.blank_expr`.
391
- * @param ctx the parse tree
392
- * @return the visitor result
393
- */
394
- visitBlank_expr?: (ctx: Blank_exprContext) => Result;
395
- /**
396
- * Visit a parse tree produced by `CircuitScriptParser.wire_expr`.
397
- * @param ctx the parse tree
398
- * @return the visitor result
399
- */
400
- visitWire_expr?: (ctx: Wire_exprContext) => Result;
401
- /**
402
- * Visit a parse tree produced by `CircuitScriptParser.point_expr`.
403
- * @param ctx the parse tree
404
- * @return the visitor result
405
- */
406
- visitPoint_expr?: (ctx: Point_exprContext) => Result;
407
- /**
408
- * Visit a parse tree produced by `CircuitScriptParser.import_expr`.
409
- * @param ctx the parse tree
410
- * @return the visitor result
411
- */
412
- visitImport_expr?: (ctx: Import_exprContext) => Result;
413
- /**
414
- * Visit a parse tree produced by `CircuitScriptParser.frame_expr`.
415
- * @param ctx the parse tree
416
- * @return the visitor result
417
- */
418
- visitFrame_expr?: (ctx: Frame_exprContext) => Result;
419
- }
420
-