@hoox-sh/pynets 0.1.0

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 (48) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/LICENSE +661 -0
  3. package/NOTICE +46 -0
  4. package/README.md +327 -0
  5. package/dist/browser.js +44 -0
  6. package/dist/index.d.ts +348 -0
  7. package/dist/index.js +41741 -0
  8. package/package.json +77 -0
  9. package/src/ast/builder.ts +1002 -0
  10. package/src/ast/dump.ts +43 -0
  11. package/src/ast/helper.ts +77 -0
  12. package/src/ast/nodes.ts +570 -0
  13. package/src/ast/unparse.ts +360 -0
  14. package/src/cli/rich.ts +378 -0
  15. package/src/cli.ts +627 -0
  16. package/src/generated/PinescriptLexer.interp +267 -0
  17. package/src/generated/PinescriptLexer.tokens +131 -0
  18. package/src/generated/PinescriptLexer.ts +673 -0
  19. package/src/generated/PinescriptLexerBase.ts +395 -0
  20. package/src/generated/PinescriptParser.interp +267 -0
  21. package/src/generated/PinescriptParser.tokens +131 -0
  22. package/src/generated/PinescriptParser.ts +8863 -0
  23. package/src/generated/PinescriptParserBase.ts +21 -0
  24. package/src/generated/PinescriptParserVisitor.ts +840 -0
  25. package/src/index.ts +55 -0
  26. package/src/parser/LexerBase.ts +395 -0
  27. package/src/parser/ParserBase.ts +21 -0
  28. package/src/parser/error.ts +33 -0
  29. package/src/runtime/array.ts +486 -0
  30. package/src/runtime/color.ts +164 -0
  31. package/src/runtime/drawings.ts +510 -0
  32. package/src/runtime/input.ts +102 -0
  33. package/src/runtime/interpret.ts +3897 -0
  34. package/src/runtime/library.ts +282 -0
  35. package/src/runtime/log.ts +69 -0
  36. package/src/runtime/map.ts +85 -0
  37. package/src/runtime/math.ts +231 -0
  38. package/src/runtime/matrix.ts +1154 -0
  39. package/src/runtime/provider.ts +232 -0
  40. package/src/runtime/request.ts +372 -0
  41. package/src/runtime/series.ts +44 -0
  42. package/src/runtime/str.ts +433 -0
  43. package/src/runtime/strategy.ts +1105 -0
  44. package/src/runtime/ta.ts +2093 -0
  45. package/src/runtime/ticker.ts +81 -0
  46. package/src/runtime/time.ts +439 -0
  47. package/src/runtime/timeframe.ts +85 -0
  48. package/src/runtime/udt.ts +119 -0
@@ -0,0 +1,840 @@
1
+ // Generated from /mnt/data/home/jango/Git/pynescript/src/pynescript/ast/grammar/antlr4/resource/PinescriptParser.g4 by ANTLR 4.13.2
2
+
3
+ import {ParseTreeVisitor} from 'antlr4';
4
+
5
+
6
+ import { StartContext } from "./PinescriptParser.ts";
7
+ import { Start_scriptContext } from "./PinescriptParser.ts";
8
+ import { Start_expressionContext } from "./PinescriptParser.ts";
9
+ import { Start_commentsContext } from "./PinescriptParser.ts";
10
+ import { StatementsContext } from "./PinescriptParser.ts";
11
+ import { StatementContext } from "./PinescriptParser.ts";
12
+ import { Compound_statementContext } from "./PinescriptParser.ts";
13
+ import { Simple_statementsContext } from "./PinescriptParser.ts";
14
+ import { Trailing_structure_statementsContext } from "./PinescriptParser.ts";
15
+ import { Simple_statementContext } from "./PinescriptParser.ts";
16
+ import { Compound_assignmentContext } from "./PinescriptParser.ts";
17
+ import { Compound_variable_initializationContext } from "./PinescriptParser.ts";
18
+ import { Compound_name_initializationContext } from "./PinescriptParser.ts";
19
+ import { Compound_tuple_initializationContext } from "./PinescriptParser.ts";
20
+ import { Compound_reassignmentContext } from "./PinescriptParser.ts";
21
+ import { Compound_augassignmentContext } from "./PinescriptParser.ts";
22
+ import { Function_declarationContext } from "./PinescriptParser.ts";
23
+ import { Parameter_listContext } from "./PinescriptParser.ts";
24
+ import { Parameter_definitionContext } from "./PinescriptParser.ts";
25
+ import { Method_declarationContext } from "./PinescriptParser.ts";
26
+ import { Method_parameter_listContext } from "./PinescriptParser.ts";
27
+ import { Method_parameter_definitionContext } from "./PinescriptParser.ts";
28
+ import { Type_declarationContext } from "./PinescriptParser.ts";
29
+ import { Field_definitionsContext } from "./PinescriptParser.ts";
30
+ import { Field_definitionContext } from "./PinescriptParser.ts";
31
+ import { Enum_declarationContext } from "./PinescriptParser.ts";
32
+ import { Enum_definitionsContext } from "./PinescriptParser.ts";
33
+ import { Enum_definitionContext } from "./PinescriptParser.ts";
34
+ import { StructureContext } from "./PinescriptParser.ts";
35
+ import { Structure_statementContext } from "./PinescriptParser.ts";
36
+ import { Structure_expressionContext } from "./PinescriptParser.ts";
37
+ import { If_structureContext } from "./PinescriptParser.ts";
38
+ import { Elif_structureContext } from "./PinescriptParser.ts";
39
+ import { If_tailContext } from "./PinescriptParser.ts";
40
+ import { Else_blockContext } from "./PinescriptParser.ts";
41
+ import { For_structureContext } from "./PinescriptParser.ts";
42
+ import { For_structure_toContext } from "./PinescriptParser.ts";
43
+ import { For_structure_inContext } from "./PinescriptParser.ts";
44
+ import { For_iteratorContext } from "./PinescriptParser.ts";
45
+ import { While_structureContext } from "./PinescriptParser.ts";
46
+ import { Switch_structureContext } from "./PinescriptParser.ts";
47
+ import { Switch_casesContext } from "./PinescriptParser.ts";
48
+ import { Switch_pattern_caseContext } from "./PinescriptParser.ts";
49
+ import { Switch_default_caseContext } from "./PinescriptParser.ts";
50
+ import { Local_blockContext } from "./PinescriptParser.ts";
51
+ import { Indented_local_blockContext } from "./PinescriptParser.ts";
52
+ import { Inline_local_blockContext } from "./PinescriptParser.ts";
53
+ import { Simple_assignmentContext } from "./PinescriptParser.ts";
54
+ import { Simple_variable_initializationContext } from "./PinescriptParser.ts";
55
+ import { Simple_name_initializationContext } from "./PinescriptParser.ts";
56
+ import { Simple_tuple_initializationContext } from "./PinescriptParser.ts";
57
+ import { Simple_reassignmentContext } from "./PinescriptParser.ts";
58
+ import { Simple_augassignmentContext } from "./PinescriptParser.ts";
59
+ import { ExpressionContext } from "./PinescriptParser.ts";
60
+ import { Expression_statementContext } from "./PinescriptParser.ts";
61
+ import { Conditional_expressionContext } from "./PinescriptParser.ts";
62
+ import { Disjunction_expressionContext } from "./PinescriptParser.ts";
63
+ import { Conjunction_expressionContext } from "./PinescriptParser.ts";
64
+ import { Bitwise_or_expressionContext } from "./PinescriptParser.ts";
65
+ import { Bitwise_xor_expressionContext } from "./PinescriptParser.ts";
66
+ import { Bitwise_and_expressionContext } from "./PinescriptParser.ts";
67
+ import { Equality_expressionContext } from "./PinescriptParser.ts";
68
+ import { Equality_trailing_pairContext } from "./PinescriptParser.ts";
69
+ import { Equal_trailing_pairContext } from "./PinescriptParser.ts";
70
+ import { Not_equal_trailing_pairContext } from "./PinescriptParser.ts";
71
+ import { Inequality_expressionContext } from "./PinescriptParser.ts";
72
+ import { Inequality_trailing_pairContext } from "./PinescriptParser.ts";
73
+ import { Less_than_equal_trailing_pairContext } from "./PinescriptParser.ts";
74
+ import { Less_than_trailing_pairContext } from "./PinescriptParser.ts";
75
+ import { Greater_than_equal_trailing_pairContext } from "./PinescriptParser.ts";
76
+ import { Greater_than_trailing_pairContext } from "./PinescriptParser.ts";
77
+ import { Shift_expressionContext } from "./PinescriptParser.ts";
78
+ import { Shift_opContext } from "./PinescriptParser.ts";
79
+ import { Additive_expressionContext } from "./PinescriptParser.ts";
80
+ import { Additive_opContext } from "./PinescriptParser.ts";
81
+ import { Multiplicative_expressionContext } from "./PinescriptParser.ts";
82
+ import { Multiplicative_opContext } from "./PinescriptParser.ts";
83
+ import { Unary_expressionContext } from "./PinescriptParser.ts";
84
+ import { Unary_opContext } from "./PinescriptParser.ts";
85
+ import { Primary_expression_attributeContext } from "./PinescriptParser.ts";
86
+ import { Primary_expression_callContext } from "./PinescriptParser.ts";
87
+ import { Primary_expression_fallbackContext } from "./PinescriptParser.ts";
88
+ import { Primary_expression_subscriptContext } from "./PinescriptParser.ts";
89
+ import { Argument_listContext } from "./PinescriptParser.ts";
90
+ import { Argument_definitionContext } from "./PinescriptParser.ts";
91
+ import { Subscript_sliceContext } from "./PinescriptParser.ts";
92
+ import { Atomic_expressionContext } from "./PinescriptParser.ts";
93
+ import { Literal_expressionContext } from "./PinescriptParser.ts";
94
+ import { Literal_numberContext } from "./PinescriptParser.ts";
95
+ import { Literal_stringContext } from "./PinescriptParser.ts";
96
+ import { Literal_boolContext } from "./PinescriptParser.ts";
97
+ import { Literal_colorContext } from "./PinescriptParser.ts";
98
+ import { Grouped_expressionContext } from "./PinescriptParser.ts";
99
+ import { Tuple_expressionContext } from "./PinescriptParser.ts";
100
+ import { Import_statementContext } from "./PinescriptParser.ts";
101
+ import { Break_statementContext } from "./PinescriptParser.ts";
102
+ import { Continue_statementContext } from "./PinescriptParser.ts";
103
+ import { Variable_declarationContext } from "./PinescriptParser.ts";
104
+ import { Tuple_declarationContext } from "./PinescriptParser.ts";
105
+ import { Declaration_modeContext } from "./PinescriptParser.ts";
106
+ import { Assignment_targetContext } from "./PinescriptParser.ts";
107
+ import { Assignment_target_attributeContext } from "./PinescriptParser.ts";
108
+ import { Assignment_target_subscriptContext } from "./PinescriptParser.ts";
109
+ import { Assignment_target_nameContext } from "./PinescriptParser.ts";
110
+ import { Assignment_target_groupContext } from "./PinescriptParser.ts";
111
+ import { Augassign_opContext } from "./PinescriptParser.ts";
112
+ import { Type_specificationContext } from "./PinescriptParser.ts";
113
+ import { Type_qualifierContext } from "./PinescriptParser.ts";
114
+ import { Attributed_type_nameContext } from "./PinescriptParser.ts";
115
+ import { Template_spec_suffixContext } from "./PinescriptParser.ts";
116
+ import { Array_type_suffixContext } from "./PinescriptParser.ts";
117
+ import { Type_argument_listContext } from "./PinescriptParser.ts";
118
+ import { NameContext } from "./PinescriptParser.ts";
119
+ import { Name_loadContext } from "./PinescriptParser.ts";
120
+ import { Name_storeContext } from "./PinescriptParser.ts";
121
+ import { CommentsContext } from "./PinescriptParser.ts";
122
+ import { CommentContext } from "./PinescriptParser.ts";
123
+
124
+
125
+ /**
126
+ * This interface defines a complete generic visitor for a parse tree produced
127
+ * by `PinescriptParser`.
128
+ *
129
+ * @param <Result> The return type of the visit operation. Use `void` for
130
+ * operations with no return type.
131
+ */
132
+ export default class PinescriptParserVisitor<Result> extends ParseTreeVisitor<Result> {
133
+ /**
134
+ * Visit a parse tree produced by `PinescriptParser.start`.
135
+ * @param ctx the parse tree
136
+ * @return the visitor result
137
+ */
138
+ visitStart?: (ctx: StartContext) => Result;
139
+ /**
140
+ * Visit a parse tree produced by `PinescriptParser.start_script`.
141
+ * @param ctx the parse tree
142
+ * @return the visitor result
143
+ */
144
+ visitStart_script?: (ctx: Start_scriptContext) => Result;
145
+ /**
146
+ * Visit a parse tree produced by `PinescriptParser.start_expression`.
147
+ * @param ctx the parse tree
148
+ * @return the visitor result
149
+ */
150
+ visitStart_expression?: (ctx: Start_expressionContext) => Result;
151
+ /**
152
+ * Visit a parse tree produced by `PinescriptParser.start_comments`.
153
+ * @param ctx the parse tree
154
+ * @return the visitor result
155
+ */
156
+ visitStart_comments?: (ctx: Start_commentsContext) => Result;
157
+ /**
158
+ * Visit a parse tree produced by `PinescriptParser.statements`.
159
+ * @param ctx the parse tree
160
+ * @return the visitor result
161
+ */
162
+ visitStatements?: (ctx: StatementsContext) => Result;
163
+ /**
164
+ * Visit a parse tree produced by `PinescriptParser.statement`.
165
+ * @param ctx the parse tree
166
+ * @return the visitor result
167
+ */
168
+ visitStatement?: (ctx: StatementContext) => Result;
169
+ /**
170
+ * Visit a parse tree produced by `PinescriptParser.compound_statement`.
171
+ * @param ctx the parse tree
172
+ * @return the visitor result
173
+ */
174
+ visitCompound_statement?: (ctx: Compound_statementContext) => Result;
175
+ /**
176
+ * Visit a parse tree produced by `PinescriptParser.simple_statements`.
177
+ * @param ctx the parse tree
178
+ * @return the visitor result
179
+ */
180
+ visitSimple_statements?: (ctx: Simple_statementsContext) => Result;
181
+ /**
182
+ * Visit a parse tree produced by `PinescriptParser.trailing_structure_statements`.
183
+ * @param ctx the parse tree
184
+ * @return the visitor result
185
+ */
186
+ visitTrailing_structure_statements?: (ctx: Trailing_structure_statementsContext) => Result;
187
+ /**
188
+ * Visit a parse tree produced by `PinescriptParser.simple_statement`.
189
+ * @param ctx the parse tree
190
+ * @return the visitor result
191
+ */
192
+ visitSimple_statement?: (ctx: Simple_statementContext) => Result;
193
+ /**
194
+ * Visit a parse tree produced by `PinescriptParser.compound_assignment`.
195
+ * @param ctx the parse tree
196
+ * @return the visitor result
197
+ */
198
+ visitCompound_assignment?: (ctx: Compound_assignmentContext) => Result;
199
+ /**
200
+ * Visit a parse tree produced by `PinescriptParser.compound_variable_initialization`.
201
+ * @param ctx the parse tree
202
+ * @return the visitor result
203
+ */
204
+ visitCompound_variable_initialization?: (ctx: Compound_variable_initializationContext) => Result;
205
+ /**
206
+ * Visit a parse tree produced by `PinescriptParser.compound_name_initialization`.
207
+ * @param ctx the parse tree
208
+ * @return the visitor result
209
+ */
210
+ visitCompound_name_initialization?: (ctx: Compound_name_initializationContext) => Result;
211
+ /**
212
+ * Visit a parse tree produced by `PinescriptParser.compound_tuple_initialization`.
213
+ * @param ctx the parse tree
214
+ * @return the visitor result
215
+ */
216
+ visitCompound_tuple_initialization?: (ctx: Compound_tuple_initializationContext) => Result;
217
+ /**
218
+ * Visit a parse tree produced by `PinescriptParser.compound_reassignment`.
219
+ * @param ctx the parse tree
220
+ * @return the visitor result
221
+ */
222
+ visitCompound_reassignment?: (ctx: Compound_reassignmentContext) => Result;
223
+ /**
224
+ * Visit a parse tree produced by `PinescriptParser.compound_augassignment`.
225
+ * @param ctx the parse tree
226
+ * @return the visitor result
227
+ */
228
+ visitCompound_augassignment?: (ctx: Compound_augassignmentContext) => Result;
229
+ /**
230
+ * Visit a parse tree produced by `PinescriptParser.function_declaration`.
231
+ * @param ctx the parse tree
232
+ * @return the visitor result
233
+ */
234
+ visitFunction_declaration?: (ctx: Function_declarationContext) => Result;
235
+ /**
236
+ * Visit a parse tree produced by `PinescriptParser.parameter_list`.
237
+ * @param ctx the parse tree
238
+ * @return the visitor result
239
+ */
240
+ visitParameter_list?: (ctx: Parameter_listContext) => Result;
241
+ /**
242
+ * Visit a parse tree produced by `PinescriptParser.parameter_definition`.
243
+ * @param ctx the parse tree
244
+ * @return the visitor result
245
+ */
246
+ visitParameter_definition?: (ctx: Parameter_definitionContext) => Result;
247
+ /**
248
+ * Visit a parse tree produced by `PinescriptParser.method_declaration`.
249
+ * @param ctx the parse tree
250
+ * @return the visitor result
251
+ */
252
+ visitMethod_declaration?: (ctx: Method_declarationContext) => Result;
253
+ /**
254
+ * Visit a parse tree produced by `PinescriptParser.method_parameter_list`.
255
+ * @param ctx the parse tree
256
+ * @return the visitor result
257
+ */
258
+ visitMethod_parameter_list?: (ctx: Method_parameter_listContext) => Result;
259
+ /**
260
+ * Visit a parse tree produced by `PinescriptParser.method_parameter_definition`.
261
+ * @param ctx the parse tree
262
+ * @return the visitor result
263
+ */
264
+ visitMethod_parameter_definition?: (ctx: Method_parameter_definitionContext) => Result;
265
+ /**
266
+ * Visit a parse tree produced by `PinescriptParser.type_declaration`.
267
+ * @param ctx the parse tree
268
+ * @return the visitor result
269
+ */
270
+ visitType_declaration?: (ctx: Type_declarationContext) => Result;
271
+ /**
272
+ * Visit a parse tree produced by `PinescriptParser.field_definitions`.
273
+ * @param ctx the parse tree
274
+ * @return the visitor result
275
+ */
276
+ visitField_definitions?: (ctx: Field_definitionsContext) => Result;
277
+ /**
278
+ * Visit a parse tree produced by `PinescriptParser.field_definition`.
279
+ * @param ctx the parse tree
280
+ * @return the visitor result
281
+ */
282
+ visitField_definition?: (ctx: Field_definitionContext) => Result;
283
+ /**
284
+ * Visit a parse tree produced by `PinescriptParser.enum_declaration`.
285
+ * @param ctx the parse tree
286
+ * @return the visitor result
287
+ */
288
+ visitEnum_declaration?: (ctx: Enum_declarationContext) => Result;
289
+ /**
290
+ * Visit a parse tree produced by `PinescriptParser.enum_definitions`.
291
+ * @param ctx the parse tree
292
+ * @return the visitor result
293
+ */
294
+ visitEnum_definitions?: (ctx: Enum_definitionsContext) => Result;
295
+ /**
296
+ * Visit a parse tree produced by `PinescriptParser.enum_definition`.
297
+ * @param ctx the parse tree
298
+ * @return the visitor result
299
+ */
300
+ visitEnum_definition?: (ctx: Enum_definitionContext) => Result;
301
+ /**
302
+ * Visit a parse tree produced by `PinescriptParser.structure`.
303
+ * @param ctx the parse tree
304
+ * @return the visitor result
305
+ */
306
+ visitStructure?: (ctx: StructureContext) => Result;
307
+ /**
308
+ * Visit a parse tree produced by `PinescriptParser.structure_statement`.
309
+ * @param ctx the parse tree
310
+ * @return the visitor result
311
+ */
312
+ visitStructure_statement?: (ctx: Structure_statementContext) => Result;
313
+ /**
314
+ * Visit a parse tree produced by `PinescriptParser.structure_expression`.
315
+ * @param ctx the parse tree
316
+ * @return the visitor result
317
+ */
318
+ visitStructure_expression?: (ctx: Structure_expressionContext) => Result;
319
+ /**
320
+ * Visit a parse tree produced by `PinescriptParser.if_structure`.
321
+ * @param ctx the parse tree
322
+ * @return the visitor result
323
+ */
324
+ visitIf_structure?: (ctx: If_structureContext) => Result;
325
+ /**
326
+ * Visit a parse tree produced by `PinescriptParser.elif_structure`.
327
+ * @param ctx the parse tree
328
+ * @return the visitor result
329
+ */
330
+ visitElif_structure?: (ctx: Elif_structureContext) => Result;
331
+ /**
332
+ * Visit a parse tree produced by `PinescriptParser.if_tail`.
333
+ * @param ctx the parse tree
334
+ * @return the visitor result
335
+ */
336
+ visitIf_tail?: (ctx: If_tailContext) => Result;
337
+ /**
338
+ * Visit a parse tree produced by `PinescriptParser.else_block`.
339
+ * @param ctx the parse tree
340
+ * @return the visitor result
341
+ */
342
+ visitElse_block?: (ctx: Else_blockContext) => Result;
343
+ /**
344
+ * Visit a parse tree produced by `PinescriptParser.for_structure`.
345
+ * @param ctx the parse tree
346
+ * @return the visitor result
347
+ */
348
+ visitFor_structure?: (ctx: For_structureContext) => Result;
349
+ /**
350
+ * Visit a parse tree produced by `PinescriptParser.for_structure_to`.
351
+ * @param ctx the parse tree
352
+ * @return the visitor result
353
+ */
354
+ visitFor_structure_to?: (ctx: For_structure_toContext) => Result;
355
+ /**
356
+ * Visit a parse tree produced by `PinescriptParser.for_structure_in`.
357
+ * @param ctx the parse tree
358
+ * @return the visitor result
359
+ */
360
+ visitFor_structure_in?: (ctx: For_structure_inContext) => Result;
361
+ /**
362
+ * Visit a parse tree produced by `PinescriptParser.for_iterator`.
363
+ * @param ctx the parse tree
364
+ * @return the visitor result
365
+ */
366
+ visitFor_iterator?: (ctx: For_iteratorContext) => Result;
367
+ /**
368
+ * Visit a parse tree produced by `PinescriptParser.while_structure`.
369
+ * @param ctx the parse tree
370
+ * @return the visitor result
371
+ */
372
+ visitWhile_structure?: (ctx: While_structureContext) => Result;
373
+ /**
374
+ * Visit a parse tree produced by `PinescriptParser.switch_structure`.
375
+ * @param ctx the parse tree
376
+ * @return the visitor result
377
+ */
378
+ visitSwitch_structure?: (ctx: Switch_structureContext) => Result;
379
+ /**
380
+ * Visit a parse tree produced by `PinescriptParser.switch_cases`.
381
+ * @param ctx the parse tree
382
+ * @return the visitor result
383
+ */
384
+ visitSwitch_cases?: (ctx: Switch_casesContext) => Result;
385
+ /**
386
+ * Visit a parse tree produced by `PinescriptParser.switch_pattern_case`.
387
+ * @param ctx the parse tree
388
+ * @return the visitor result
389
+ */
390
+ visitSwitch_pattern_case?: (ctx: Switch_pattern_caseContext) => Result;
391
+ /**
392
+ * Visit a parse tree produced by `PinescriptParser.switch_default_case`.
393
+ * @param ctx the parse tree
394
+ * @return the visitor result
395
+ */
396
+ visitSwitch_default_case?: (ctx: Switch_default_caseContext) => Result;
397
+ /**
398
+ * Visit a parse tree produced by `PinescriptParser.local_block`.
399
+ * @param ctx the parse tree
400
+ * @return the visitor result
401
+ */
402
+ visitLocal_block?: (ctx: Local_blockContext) => Result;
403
+ /**
404
+ * Visit a parse tree produced by `PinescriptParser.indented_local_block`.
405
+ * @param ctx the parse tree
406
+ * @return the visitor result
407
+ */
408
+ visitIndented_local_block?: (ctx: Indented_local_blockContext) => Result;
409
+ /**
410
+ * Visit a parse tree produced by `PinescriptParser.inline_local_block`.
411
+ * @param ctx the parse tree
412
+ * @return the visitor result
413
+ */
414
+ visitInline_local_block?: (ctx: Inline_local_blockContext) => Result;
415
+ /**
416
+ * Visit a parse tree produced by `PinescriptParser.simple_assignment`.
417
+ * @param ctx the parse tree
418
+ * @return the visitor result
419
+ */
420
+ visitSimple_assignment?: (ctx: Simple_assignmentContext) => Result;
421
+ /**
422
+ * Visit a parse tree produced by `PinescriptParser.simple_variable_initialization`.
423
+ * @param ctx the parse tree
424
+ * @return the visitor result
425
+ */
426
+ visitSimple_variable_initialization?: (ctx: Simple_variable_initializationContext) => Result;
427
+ /**
428
+ * Visit a parse tree produced by `PinescriptParser.simple_name_initialization`.
429
+ * @param ctx the parse tree
430
+ * @return the visitor result
431
+ */
432
+ visitSimple_name_initialization?: (ctx: Simple_name_initializationContext) => Result;
433
+ /**
434
+ * Visit a parse tree produced by `PinescriptParser.simple_tuple_initialization`.
435
+ * @param ctx the parse tree
436
+ * @return the visitor result
437
+ */
438
+ visitSimple_tuple_initialization?: (ctx: Simple_tuple_initializationContext) => Result;
439
+ /**
440
+ * Visit a parse tree produced by `PinescriptParser.simple_reassignment`.
441
+ * @param ctx the parse tree
442
+ * @return the visitor result
443
+ */
444
+ visitSimple_reassignment?: (ctx: Simple_reassignmentContext) => Result;
445
+ /**
446
+ * Visit a parse tree produced by `PinescriptParser.simple_augassignment`.
447
+ * @param ctx the parse tree
448
+ * @return the visitor result
449
+ */
450
+ visitSimple_augassignment?: (ctx: Simple_augassignmentContext) => Result;
451
+ /**
452
+ * Visit a parse tree produced by `PinescriptParser.expression`.
453
+ * @param ctx the parse tree
454
+ * @return the visitor result
455
+ */
456
+ visitExpression?: (ctx: ExpressionContext) => Result;
457
+ /**
458
+ * Visit a parse tree produced by `PinescriptParser.expression_statement`.
459
+ * @param ctx the parse tree
460
+ * @return the visitor result
461
+ */
462
+ visitExpression_statement?: (ctx: Expression_statementContext) => Result;
463
+ /**
464
+ * Visit a parse tree produced by `PinescriptParser.conditional_expression`.
465
+ * @param ctx the parse tree
466
+ * @return the visitor result
467
+ */
468
+ visitConditional_expression?: (ctx: Conditional_expressionContext) => Result;
469
+ /**
470
+ * Visit a parse tree produced by `PinescriptParser.disjunction_expression`.
471
+ * @param ctx the parse tree
472
+ * @return the visitor result
473
+ */
474
+ visitDisjunction_expression?: (ctx: Disjunction_expressionContext) => Result;
475
+ /**
476
+ * Visit a parse tree produced by `PinescriptParser.conjunction_expression`.
477
+ * @param ctx the parse tree
478
+ * @return the visitor result
479
+ */
480
+ visitConjunction_expression?: (ctx: Conjunction_expressionContext) => Result;
481
+ /**
482
+ * Visit a parse tree produced by `PinescriptParser.bitwise_or_expression`.
483
+ * @param ctx the parse tree
484
+ * @return the visitor result
485
+ */
486
+ visitBitwise_or_expression?: (ctx: Bitwise_or_expressionContext) => Result;
487
+ /**
488
+ * Visit a parse tree produced by `PinescriptParser.bitwise_xor_expression`.
489
+ * @param ctx the parse tree
490
+ * @return the visitor result
491
+ */
492
+ visitBitwise_xor_expression?: (ctx: Bitwise_xor_expressionContext) => Result;
493
+ /**
494
+ * Visit a parse tree produced by `PinescriptParser.bitwise_and_expression`.
495
+ * @param ctx the parse tree
496
+ * @return the visitor result
497
+ */
498
+ visitBitwise_and_expression?: (ctx: Bitwise_and_expressionContext) => Result;
499
+ /**
500
+ * Visit a parse tree produced by `PinescriptParser.equality_expression`.
501
+ * @param ctx the parse tree
502
+ * @return the visitor result
503
+ */
504
+ visitEquality_expression?: (ctx: Equality_expressionContext) => Result;
505
+ /**
506
+ * Visit a parse tree produced by `PinescriptParser.equality_trailing_pair`.
507
+ * @param ctx the parse tree
508
+ * @return the visitor result
509
+ */
510
+ visitEquality_trailing_pair?: (ctx: Equality_trailing_pairContext) => Result;
511
+ /**
512
+ * Visit a parse tree produced by `PinescriptParser.equal_trailing_pair`.
513
+ * @param ctx the parse tree
514
+ * @return the visitor result
515
+ */
516
+ visitEqual_trailing_pair?: (ctx: Equal_trailing_pairContext) => Result;
517
+ /**
518
+ * Visit a parse tree produced by `PinescriptParser.not_equal_trailing_pair`.
519
+ * @param ctx the parse tree
520
+ * @return the visitor result
521
+ */
522
+ visitNot_equal_trailing_pair?: (ctx: Not_equal_trailing_pairContext) => Result;
523
+ /**
524
+ * Visit a parse tree produced by `PinescriptParser.inequality_expression`.
525
+ * @param ctx the parse tree
526
+ * @return the visitor result
527
+ */
528
+ visitInequality_expression?: (ctx: Inequality_expressionContext) => Result;
529
+ /**
530
+ * Visit a parse tree produced by `PinescriptParser.inequality_trailing_pair`.
531
+ * @param ctx the parse tree
532
+ * @return the visitor result
533
+ */
534
+ visitInequality_trailing_pair?: (ctx: Inequality_trailing_pairContext) => Result;
535
+ /**
536
+ * Visit a parse tree produced by `PinescriptParser.less_than_equal_trailing_pair`.
537
+ * @param ctx the parse tree
538
+ * @return the visitor result
539
+ */
540
+ visitLess_than_equal_trailing_pair?: (ctx: Less_than_equal_trailing_pairContext) => Result;
541
+ /**
542
+ * Visit a parse tree produced by `PinescriptParser.less_than_trailing_pair`.
543
+ * @param ctx the parse tree
544
+ * @return the visitor result
545
+ */
546
+ visitLess_than_trailing_pair?: (ctx: Less_than_trailing_pairContext) => Result;
547
+ /**
548
+ * Visit a parse tree produced by `PinescriptParser.greater_than_equal_trailing_pair`.
549
+ * @param ctx the parse tree
550
+ * @return the visitor result
551
+ */
552
+ visitGreater_than_equal_trailing_pair?: (ctx: Greater_than_equal_trailing_pairContext) => Result;
553
+ /**
554
+ * Visit a parse tree produced by `PinescriptParser.greater_than_trailing_pair`.
555
+ * @param ctx the parse tree
556
+ * @return the visitor result
557
+ */
558
+ visitGreater_than_trailing_pair?: (ctx: Greater_than_trailing_pairContext) => Result;
559
+ /**
560
+ * Visit a parse tree produced by `PinescriptParser.shift_expression`.
561
+ * @param ctx the parse tree
562
+ * @return the visitor result
563
+ */
564
+ visitShift_expression?: (ctx: Shift_expressionContext) => Result;
565
+ /**
566
+ * Visit a parse tree produced by `PinescriptParser.shift_op`.
567
+ * @param ctx the parse tree
568
+ * @return the visitor result
569
+ */
570
+ visitShift_op?: (ctx: Shift_opContext) => Result;
571
+ /**
572
+ * Visit a parse tree produced by `PinescriptParser.additive_expression`.
573
+ * @param ctx the parse tree
574
+ * @return the visitor result
575
+ */
576
+ visitAdditive_expression?: (ctx: Additive_expressionContext) => Result;
577
+ /**
578
+ * Visit a parse tree produced by `PinescriptParser.additive_op`.
579
+ * @param ctx the parse tree
580
+ * @return the visitor result
581
+ */
582
+ visitAdditive_op?: (ctx: Additive_opContext) => Result;
583
+ /**
584
+ * Visit a parse tree produced by `PinescriptParser.multiplicative_expression`.
585
+ * @param ctx the parse tree
586
+ * @return the visitor result
587
+ */
588
+ visitMultiplicative_expression?: (ctx: Multiplicative_expressionContext) => Result;
589
+ /**
590
+ * Visit a parse tree produced by `PinescriptParser.multiplicative_op`.
591
+ * @param ctx the parse tree
592
+ * @return the visitor result
593
+ */
594
+ visitMultiplicative_op?: (ctx: Multiplicative_opContext) => Result;
595
+ /**
596
+ * Visit a parse tree produced by `PinescriptParser.unary_expression`.
597
+ * @param ctx the parse tree
598
+ * @return the visitor result
599
+ */
600
+ visitUnary_expression?: (ctx: Unary_expressionContext) => Result;
601
+ /**
602
+ * Visit a parse tree produced by `PinescriptParser.unary_op`.
603
+ * @param ctx the parse tree
604
+ * @return the visitor result
605
+ */
606
+ visitUnary_op?: (ctx: Unary_opContext) => Result;
607
+ /**
608
+ * Visit a parse tree produced by the `primary_expression_attribute`
609
+ * labeled alternative in `PinescriptParser.primary_expression`.
610
+ * @param ctx the parse tree
611
+ * @return the visitor result
612
+ */
613
+ visitPrimary_expression_attribute?: (ctx: Primary_expression_attributeContext) => Result;
614
+ /**
615
+ * Visit a parse tree produced by the `primary_expression_call`
616
+ * labeled alternative in `PinescriptParser.primary_expression`.
617
+ * @param ctx the parse tree
618
+ * @return the visitor result
619
+ */
620
+ visitPrimary_expression_call?: (ctx: Primary_expression_callContext) => Result;
621
+ /**
622
+ * Visit a parse tree produced by the `primary_expression_fallback`
623
+ * labeled alternative in `PinescriptParser.primary_expression`.
624
+ * @param ctx the parse tree
625
+ * @return the visitor result
626
+ */
627
+ visitPrimary_expression_fallback?: (ctx: Primary_expression_fallbackContext) => Result;
628
+ /**
629
+ * Visit a parse tree produced by the `primary_expression_subscript`
630
+ * labeled alternative in `PinescriptParser.primary_expression`.
631
+ * @param ctx the parse tree
632
+ * @return the visitor result
633
+ */
634
+ visitPrimary_expression_subscript?: (ctx: Primary_expression_subscriptContext) => Result;
635
+ /**
636
+ * Visit a parse tree produced by `PinescriptParser.argument_list`.
637
+ * @param ctx the parse tree
638
+ * @return the visitor result
639
+ */
640
+ visitArgument_list?: (ctx: Argument_listContext) => Result;
641
+ /**
642
+ * Visit a parse tree produced by `PinescriptParser.argument_definition`.
643
+ * @param ctx the parse tree
644
+ * @return the visitor result
645
+ */
646
+ visitArgument_definition?: (ctx: Argument_definitionContext) => Result;
647
+ /**
648
+ * Visit a parse tree produced by `PinescriptParser.subscript_slice`.
649
+ * @param ctx the parse tree
650
+ * @return the visitor result
651
+ */
652
+ visitSubscript_slice?: (ctx: Subscript_sliceContext) => Result;
653
+ /**
654
+ * Visit a parse tree produced by `PinescriptParser.atomic_expression`.
655
+ * @param ctx the parse tree
656
+ * @return the visitor result
657
+ */
658
+ visitAtomic_expression?: (ctx: Atomic_expressionContext) => Result;
659
+ /**
660
+ * Visit a parse tree produced by `PinescriptParser.literal_expression`.
661
+ * @param ctx the parse tree
662
+ * @return the visitor result
663
+ */
664
+ visitLiteral_expression?: (ctx: Literal_expressionContext) => Result;
665
+ /**
666
+ * Visit a parse tree produced by `PinescriptParser.literal_number`.
667
+ * @param ctx the parse tree
668
+ * @return the visitor result
669
+ */
670
+ visitLiteral_number?: (ctx: Literal_numberContext) => Result;
671
+ /**
672
+ * Visit a parse tree produced by `PinescriptParser.literal_string`.
673
+ * @param ctx the parse tree
674
+ * @return the visitor result
675
+ */
676
+ visitLiteral_string?: (ctx: Literal_stringContext) => Result;
677
+ /**
678
+ * Visit a parse tree produced by `PinescriptParser.literal_bool`.
679
+ * @param ctx the parse tree
680
+ * @return the visitor result
681
+ */
682
+ visitLiteral_bool?: (ctx: Literal_boolContext) => Result;
683
+ /**
684
+ * Visit a parse tree produced by `PinescriptParser.literal_color`.
685
+ * @param ctx the parse tree
686
+ * @return the visitor result
687
+ */
688
+ visitLiteral_color?: (ctx: Literal_colorContext) => Result;
689
+ /**
690
+ * Visit a parse tree produced by `PinescriptParser.grouped_expression`.
691
+ * @param ctx the parse tree
692
+ * @return the visitor result
693
+ */
694
+ visitGrouped_expression?: (ctx: Grouped_expressionContext) => Result;
695
+ /**
696
+ * Visit a parse tree produced by `PinescriptParser.tuple_expression`.
697
+ * @param ctx the parse tree
698
+ * @return the visitor result
699
+ */
700
+ visitTuple_expression?: (ctx: Tuple_expressionContext) => Result;
701
+ /**
702
+ * Visit a parse tree produced by `PinescriptParser.import_statement`.
703
+ * @param ctx the parse tree
704
+ * @return the visitor result
705
+ */
706
+ visitImport_statement?: (ctx: Import_statementContext) => Result;
707
+ /**
708
+ * Visit a parse tree produced by `PinescriptParser.break_statement`.
709
+ * @param ctx the parse tree
710
+ * @return the visitor result
711
+ */
712
+ visitBreak_statement?: (ctx: Break_statementContext) => Result;
713
+ /**
714
+ * Visit a parse tree produced by `PinescriptParser.continue_statement`.
715
+ * @param ctx the parse tree
716
+ * @return the visitor result
717
+ */
718
+ visitContinue_statement?: (ctx: Continue_statementContext) => Result;
719
+ /**
720
+ * Visit a parse tree produced by `PinescriptParser.variable_declaration`.
721
+ * @param ctx the parse tree
722
+ * @return the visitor result
723
+ */
724
+ visitVariable_declaration?: (ctx: Variable_declarationContext) => Result;
725
+ /**
726
+ * Visit a parse tree produced by `PinescriptParser.tuple_declaration`.
727
+ * @param ctx the parse tree
728
+ * @return the visitor result
729
+ */
730
+ visitTuple_declaration?: (ctx: Tuple_declarationContext) => Result;
731
+ /**
732
+ * Visit a parse tree produced by `PinescriptParser.declaration_mode`.
733
+ * @param ctx the parse tree
734
+ * @return the visitor result
735
+ */
736
+ visitDeclaration_mode?: (ctx: Declaration_modeContext) => Result;
737
+ /**
738
+ * Visit a parse tree produced by `PinescriptParser.assignment_target`.
739
+ * @param ctx the parse tree
740
+ * @return the visitor result
741
+ */
742
+ visitAssignment_target?: (ctx: Assignment_targetContext) => Result;
743
+ /**
744
+ * Visit a parse tree produced by `PinescriptParser.assignment_target_attribute`.
745
+ * @param ctx the parse tree
746
+ * @return the visitor result
747
+ */
748
+ visitAssignment_target_attribute?: (ctx: Assignment_target_attributeContext) => Result;
749
+ /**
750
+ * Visit a parse tree produced by `PinescriptParser.assignment_target_subscript`.
751
+ * @param ctx the parse tree
752
+ * @return the visitor result
753
+ */
754
+ visitAssignment_target_subscript?: (ctx: Assignment_target_subscriptContext) => Result;
755
+ /**
756
+ * Visit a parse tree produced by `PinescriptParser.assignment_target_name`.
757
+ * @param ctx the parse tree
758
+ * @return the visitor result
759
+ */
760
+ visitAssignment_target_name?: (ctx: Assignment_target_nameContext) => Result;
761
+ /**
762
+ * Visit a parse tree produced by `PinescriptParser.assignment_target_group`.
763
+ * @param ctx the parse tree
764
+ * @return the visitor result
765
+ */
766
+ visitAssignment_target_group?: (ctx: Assignment_target_groupContext) => Result;
767
+ /**
768
+ * Visit a parse tree produced by `PinescriptParser.augassign_op`.
769
+ * @param ctx the parse tree
770
+ * @return the visitor result
771
+ */
772
+ visitAugassign_op?: (ctx: Augassign_opContext) => Result;
773
+ /**
774
+ * Visit a parse tree produced by `PinescriptParser.type_specification`.
775
+ * @param ctx the parse tree
776
+ * @return the visitor result
777
+ */
778
+ visitType_specification?: (ctx: Type_specificationContext) => Result;
779
+ /**
780
+ * Visit a parse tree produced by `PinescriptParser.type_qualifier`.
781
+ * @param ctx the parse tree
782
+ * @return the visitor result
783
+ */
784
+ visitType_qualifier?: (ctx: Type_qualifierContext) => Result;
785
+ /**
786
+ * Visit a parse tree produced by `PinescriptParser.attributed_type_name`.
787
+ * @param ctx the parse tree
788
+ * @return the visitor result
789
+ */
790
+ visitAttributed_type_name?: (ctx: Attributed_type_nameContext) => Result;
791
+ /**
792
+ * Visit a parse tree produced by `PinescriptParser.template_spec_suffix`.
793
+ * @param ctx the parse tree
794
+ * @return the visitor result
795
+ */
796
+ visitTemplate_spec_suffix?: (ctx: Template_spec_suffixContext) => Result;
797
+ /**
798
+ * Visit a parse tree produced by `PinescriptParser.array_type_suffix`.
799
+ * @param ctx the parse tree
800
+ * @return the visitor result
801
+ */
802
+ visitArray_type_suffix?: (ctx: Array_type_suffixContext) => Result;
803
+ /**
804
+ * Visit a parse tree produced by `PinescriptParser.type_argument_list`.
805
+ * @param ctx the parse tree
806
+ * @return the visitor result
807
+ */
808
+ visitType_argument_list?: (ctx: Type_argument_listContext) => Result;
809
+ /**
810
+ * Visit a parse tree produced by `PinescriptParser.name`.
811
+ * @param ctx the parse tree
812
+ * @return the visitor result
813
+ */
814
+ visitName?: (ctx: NameContext) => Result;
815
+ /**
816
+ * Visit a parse tree produced by `PinescriptParser.name_load`.
817
+ * @param ctx the parse tree
818
+ * @return the visitor result
819
+ */
820
+ visitName_load?: (ctx: Name_loadContext) => Result;
821
+ /**
822
+ * Visit a parse tree produced by `PinescriptParser.name_store`.
823
+ * @param ctx the parse tree
824
+ * @return the visitor result
825
+ */
826
+ visitName_store?: (ctx: Name_storeContext) => Result;
827
+ /**
828
+ * Visit a parse tree produced by `PinescriptParser.comments`.
829
+ * @param ctx the parse tree
830
+ * @return the visitor result
831
+ */
832
+ visitComments?: (ctx: CommentsContext) => Result;
833
+ /**
834
+ * Visit a parse tree produced by `PinescriptParser.comment`.
835
+ * @param ctx the parse tree
836
+ * @return the visitor result
837
+ */
838
+ visitComment?: (ctx: CommentContext) => Result;
839
+ }
840
+