@irrelon/battlescript 4.0.0 → 4.1.2

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 (110) hide show
  1. package/bin/functionality.ts +77 -3
  2. package/bin/index.js +16304 -14772
  3. package/bin/index.js.map +1 -1
  4. package/bin/index.ts +20 -3
  5. package/dist/bin/functionality.cjs +16324 -14768
  6. package/dist/bin/functionality.cjs.map +1 -1
  7. package/dist/bin/functionality.d.ts +9 -0
  8. package/dist/bin/functionality.d.ts.map +1 -1
  9. package/dist/bin/{functionality.js → functionality.mjs} +15994 -14449
  10. package/dist/bin/functionality.mjs.map +1 -0
  11. package/dist/bin/index.d.ts +2 -2
  12. package/dist/bin/index.d.ts.map +1 -1
  13. package/dist/exports/typescript/enums/EnumNodeKind.d.ts +4 -1
  14. package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
  15. package/dist/exports/typescript/enums/EnumNodeProp.d.ts +56 -54
  16. package/dist/exports/typescript/enums/EnumNodeProp.d.ts.map +1 -1
  17. package/dist/exports/typescript/helpers/miniAstLayout.d.ts.map +1 -1
  18. package/dist/index.cjs +16442 -14929
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.mjs +16431 -14930
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/nativeLibraries/index.d.ts.map +1 -1
  23. package/dist/nativeLibraries/time/index.d.ts +1 -1
  24. package/dist/services/cppGenerator/ProtocolToCpp.d.ts +71 -0
  25. package/dist/services/cppGenerator/ProtocolToCpp.d.ts.map +1 -0
  26. package/dist/services/cppGenerator/index.d.ts +2 -0
  27. package/dist/services/cppGenerator/index.d.ts.map +1 -0
  28. package/dist/services/fullAst/BattleScriptFromAST.d.ts +11 -1
  29. package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
  30. package/dist/services/fullAst/BattleScriptToAST.d.ts +7 -4
  31. package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
  32. package/dist/services/fullAst/index.d.ts +1 -0
  33. package/dist/services/fullAst/index.d.ts.map +1 -1
  34. package/dist/services/fullAst/normaliseFormatting.d.ts +9 -0
  35. package/dist/services/fullAst/normaliseFormatting.d.ts.map +1 -0
  36. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +85 -81
  37. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
  38. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +49 -5
  39. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
  40. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +245 -185
  41. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
  42. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +31 -3
  43. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
  44. package/dist/services/index.d.ts +1 -0
  45. package/dist/services/index.d.ts.map +1 -1
  46. package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
  47. package/dist/services/miniAst/binaryTypeToByteSize.d.ts +1 -1
  48. package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
  49. package/dist/services/parser.d.ts +2 -2
  50. package/dist/services/parser.d.ts.map +1 -1
  51. package/dist/tests/miniAst/ordering.test.d.ts +2 -0
  52. package/dist/tests/miniAst/ordering.test.d.ts.map +1 -0
  53. package/dist/tsconfig.types.tsbuildinfo +1 -1
  54. package/dist/types/BattleScriptDiagnostic.d.ts +19 -0
  55. package/dist/types/BattleScriptDiagnostic.d.ts.map +1 -0
  56. package/dist/types/BattleScriptTransformerOptions.d.ts +7 -0
  57. package/dist/types/BattleScriptTransformerOptions.d.ts.map +1 -1
  58. package/dist/types/VisitOptions.d.ts +6 -0
  59. package/dist/types/VisitOptions.d.ts.map +1 -1
  60. package/dist/types/ast/nodes/AssignmentPatternNode.d.ts.map +1 -1
  61. package/dist/types/ast/nodes/AstNode.d.ts +2 -2
  62. package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
  63. package/dist/types/ast/nodes/AstNodeBase.d.ts +7 -0
  64. package/dist/types/ast/nodes/AstNodeBase.d.ts.map +1 -1
  65. package/dist/types/ast/nodes/CancelStatementNode.d.ts.map +1 -1
  66. package/dist/types/ast/nodes/CatchStatementNode.d.ts.map +1 -1
  67. package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts.map +1 -1
  68. package/dist/types/ast/nodes/EveryExpressionNode.d.ts +1 -0
  69. package/dist/types/ast/nodes/EveryExpressionNode.d.ts.map +1 -1
  70. package/dist/types/ast/nodes/ExportNamedDeclarationNode.d.ts +2 -4
  71. package/dist/types/ast/nodes/ExportNamedDeclarationNode.d.ts.map +1 -1
  72. package/dist/types/ast/nodes/ExportSpecifierNode.d.ts +2 -4
  73. package/dist/types/ast/nodes/ExportSpecifierNode.d.ts.map +1 -1
  74. package/dist/types/ast/nodes/ExpressionStatementNode.d.ts.map +1 -1
  75. package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts.map +1 -1
  76. package/dist/types/ast/nodes/IdentifierNode.d.ts +2 -2
  77. package/dist/types/ast/nodes/IdentifierNode.d.ts.map +1 -1
  78. package/dist/types/ast/nodes/IfStatementNode.d.ts.map +1 -1
  79. package/dist/types/ast/nodes/ImportDeclarationNode.d.ts.map +1 -1
  80. package/dist/types/ast/nodes/ImportSpecifierNode.d.ts +2 -4
  81. package/dist/types/ast/nodes/ImportSpecifierNode.d.ts.map +1 -1
  82. package/dist/types/ast/nodes/InterfaceNode.d.ts.map +1 -1
  83. package/dist/types/ast/nodes/InterfacePropertyDeclarationNode.d.ts.map +1 -1
  84. package/dist/types/ast/nodes/ObjectExpressionNode.d.ts +9 -2
  85. package/dist/types/ast/nodes/ObjectExpressionNode.d.ts.map +1 -1
  86. package/dist/types/ast/nodes/ParityDeclarationNode.d.ts.map +1 -1
  87. package/dist/types/ast/nodes/ProgramPropertyDeclarationNode.d.ts.map +1 -1
  88. package/dist/types/ast/nodes/ProtocolDeclarationNode.d.ts.map +1 -1
  89. package/dist/types/ast/nodes/ProtocolTypeNode.d.ts.map +1 -1
  90. package/dist/types/ast/nodes/RestElementNode.d.ts.map +1 -1
  91. package/dist/types/ast/nodes/ResumeStatementNode.d.ts +11 -0
  92. package/dist/types/ast/nodes/ResumeStatementNode.d.ts.map +1 -0
  93. package/dist/types/ast/nodes/ReturnStatementNode.d.ts.map +1 -1
  94. package/dist/types/ast/nodes/StartStatementNode.d.ts +11 -0
  95. package/dist/types/ast/nodes/StartStatementNode.d.ts.map +1 -0
  96. package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
  97. package/dist/types/ast/nodes/StateModuleDeclarationNode.d.ts.map +1 -1
  98. package/dist/types/ast/nodes/StateModuleEventDeclarationNode.d.ts.map +1 -1
  99. package/dist/types/ast/nodes/StepDeclarationNode.d.ts.map +1 -1
  100. package/dist/types/ast/nodes/StopStatementNode.d.ts +11 -0
  101. package/dist/types/ast/nodes/StopStatementNode.d.ts.map +1 -0
  102. package/dist/types/ast/nodes/VariableDeclarationNode.d.ts.map +1 -1
  103. package/dist/types/ast/nodes/index.d.ts +3 -0
  104. package/dist/types/ast/nodes/index.d.ts.map +1 -1
  105. package/dist/types/ast/unions/ProtocolBodyUnion.d.ts +2 -2
  106. package/dist/types/ast/unions/ProtocolBodyUnion.d.ts.map +1 -1
  107. package/dist/types/index.d.ts +1 -0
  108. package/dist/types/index.d.ts.map +1 -1
  109. package/package.json +6 -4
  110. package/dist/bin/functionality.js.map +0 -1
@@ -36,87 +36,91 @@ export declare class BattleScriptParser extends Parser {
36
36
  static readonly RETURN = 25;
37
37
  static readonly EVERY = 26;
38
38
  static readonly LIMIT = 27;
39
- static readonly AFTER = 28;
40
- static readonly CANCEL = 29;
41
- static readonly FOR = 30;
42
- static readonly EVALUATE = 31;
43
- static readonly CASE = 32;
44
- static readonly BREAK = 33;
45
- static readonly CONTINUE = 34;
46
- static readonly FALLBACK = 35;
47
- static readonly CATCH = 36;
48
- static readonly AS = 37;
49
- static readonly ENUM = 38;
50
- static readonly ANY = 39;
51
- static readonly PROTOCOL = 40;
52
- static readonly DEFINE = 41;
53
- static readonly REQUIRE = 42;
54
- static readonly TERMINATE = 43;
55
- static readonly STEP = 44;
56
- static readonly DECODE = 45;
57
- static readonly ENCODE = 46;
58
- static readonly END = 47;
59
- static readonly FORWARD = 48;
60
- static readonly REWIND = 49;
61
- static readonly OFFSET = 50;
62
- static readonly XOR = 51;
63
- static readonly XNOR = 52;
64
- static readonly BITS = 53;
65
- static readonly BYTES = 54;
66
- static readonly RULE = 55;
67
- static readonly PARITY = 56;
68
- static readonly CONST = 57;
69
- static readonly TYPE_OBJECT = 58;
70
- static readonly TYPE_ARRAY = 59;
71
- static readonly TYPE_STRING = 60;
72
- static readonly TYPE_INT = 61;
73
- static readonly TYPE_UINT = 62;
74
- static readonly TYPE_FLOAT = 63;
75
- static readonly TYPE_DOUBLE = 64;
76
- static readonly TYPE_BOOLEAN = 65;
77
- static readonly TYPE_NULL = 66;
78
- static readonly TYPE_VOID = 67;
79
- static readonly TYPE_UNDEFINED = 68;
80
- static readonly NUMBER = 69;
81
- static readonly BOOLEAN = 70;
82
- static readonly STRING = 71;
83
- static readonly COMMENT = 72;
84
- static readonly ARROW_OPERATOR = 73;
85
- static readonly INCREMENT = 74;
86
- static readonly DECREMENT = 75;
87
- static readonly PLUS = 76;
88
- static readonly MINUS = 77;
89
- static readonly DIVIDE = 78;
90
- static readonly MULTIPLY = 79;
91
- static readonly REMAINDER = 80;
92
- static readonly QUESTION_MARK = 81;
93
- static readonly ASSIGN = 82;
94
- static readonly PLUS_ASSIGN = 83;
95
- static readonly MINUS_ASSIGN = 84;
96
- static readonly AND = 85;
97
- static readonly OR = 86;
98
- static readonly NOT = 87;
99
- static readonly EQUALS = 88;
100
- static readonly NOT_EQUALS = 89;
101
- static readonly GT = 90;
102
- static readonly LT = 91;
103
- static readonly GTE = 92;
104
- static readonly LTE = 93;
105
- static readonly REST = 94;
106
- static readonly PERIOD = 95;
107
- static readonly COMMA = 96;
108
- static readonly WILDCARD = 97;
109
- static readonly PARENS_START = 98;
110
- static readonly PARENS_END = 99;
111
- static readonly BRACES_START = 100;
112
- static readonly BRACES_END = 101;
113
- static readonly BRACKETS_START = 102;
114
- static readonly BRACKETS_END = 103;
115
- static readonly DOUBLE_COLON = 104;
116
- static readonly SEMI_COLON = 105;
117
- static readonly COLON = 106;
118
- static readonly IDENTIFIER = 107;
119
- static readonly WS = 108;
39
+ static readonly KEEP = 28;
40
+ static readonly AFTER = 29;
41
+ static readonly STOP = 30;
42
+ static readonly START = 31;
43
+ static readonly RESUME = 32;
44
+ static readonly CANCEL = 33;
45
+ static readonly FOR = 34;
46
+ static readonly EVALUATE = 35;
47
+ static readonly CASE = 36;
48
+ static readonly BREAK = 37;
49
+ static readonly CONTINUE = 38;
50
+ static readonly FALLBACK = 39;
51
+ static readonly CATCH = 40;
52
+ static readonly AS = 41;
53
+ static readonly ENUM = 42;
54
+ static readonly ANY = 43;
55
+ static readonly PROTOCOL = 44;
56
+ static readonly DEFINE = 45;
57
+ static readonly REQUIRE = 46;
58
+ static readonly TERMINATE = 47;
59
+ static readonly STEP = 48;
60
+ static readonly DECODE = 49;
61
+ static readonly ENCODE = 50;
62
+ static readonly END = 51;
63
+ static readonly FORWARD = 52;
64
+ static readonly REWIND = 53;
65
+ static readonly OFFSET = 54;
66
+ static readonly XOR = 55;
67
+ static readonly XNOR = 56;
68
+ static readonly BITS = 57;
69
+ static readonly BYTES = 58;
70
+ static readonly RULE = 59;
71
+ static readonly PARITY = 60;
72
+ static readonly CONST = 61;
73
+ static readonly TYPE_OBJECT = 62;
74
+ static readonly TYPE_ARRAY = 63;
75
+ static readonly TYPE_STRING = 64;
76
+ static readonly TYPE_INT = 65;
77
+ static readonly TYPE_UINT = 66;
78
+ static readonly TYPE_FLOAT = 67;
79
+ static readonly TYPE_DOUBLE = 68;
80
+ static readonly TYPE_BOOLEAN = 69;
81
+ static readonly TYPE_NULL = 70;
82
+ static readonly TYPE_VOID = 71;
83
+ static readonly TYPE_UNDEFINED = 72;
84
+ static readonly NUMBER = 73;
85
+ static readonly BOOLEAN = 74;
86
+ static readonly STRING = 75;
87
+ static readonly COMMENT = 76;
88
+ static readonly ARROW_OPERATOR = 77;
89
+ static readonly INCREMENT = 78;
90
+ static readonly DECREMENT = 79;
91
+ static readonly PLUS = 80;
92
+ static readonly MINUS = 81;
93
+ static readonly DIVIDE = 82;
94
+ static readonly MULTIPLY = 83;
95
+ static readonly REMAINDER = 84;
96
+ static readonly QUESTION_MARK = 85;
97
+ static readonly ASSIGN = 86;
98
+ static readonly PLUS_ASSIGN = 87;
99
+ static readonly MINUS_ASSIGN = 88;
100
+ static readonly AND = 89;
101
+ static readonly OR = 90;
102
+ static readonly NOT = 91;
103
+ static readonly EQUALS = 92;
104
+ static readonly NOT_EQUALS = 93;
105
+ static readonly GT = 94;
106
+ static readonly LT = 95;
107
+ static readonly GTE = 96;
108
+ static readonly LTE = 97;
109
+ static readonly REST = 98;
110
+ static readonly PERIOD = 99;
111
+ static readonly COMMA = 100;
112
+ static readonly WILDCARD = 101;
113
+ static readonly PARENS_START = 102;
114
+ static readonly PARENS_END = 103;
115
+ static readonly BRACES_START = 104;
116
+ static readonly BRACES_END = 105;
117
+ static readonly BRACKETS_START = 106;
118
+ static readonly BRACKETS_END = 107;
119
+ static readonly DOUBLE_COLON = 108;
120
+ static readonly SEMI_COLON = 109;
121
+ static readonly COLON = 110;
122
+ static readonly IDENTIFIER = 111;
123
+ static readonly WS = 112;
120
124
  static readonly RULE_root = 0;
121
125
  static readonly RULE_importDeclaration = 1;
122
126
  static readonly RULE_includeStatement = 2;
@@ -151,74 +155,78 @@ export declare class BattleScriptParser extends Parser {
151
155
  static readonly RULE_everyDeclaration = 31;
152
156
  static readonly RULE_limitClause = 32;
153
157
  static readonly RULE_cancelStatement = 33;
154
- static readonly RULE_breakStatement = 34;
155
- static readonly RULE_continueStatement = 35;
156
- static readonly RULE_functionNameIdentifier = 36;
157
- static readonly RULE_functionDeclaration = 37;
158
- static readonly RULE_functionDefinition = 38;
159
- static readonly RULE_functionParameters = 39;
160
- static readonly RULE_functionParameter = 40;
161
- static readonly RULE_assignmentPattern = 41;
162
- static readonly RULE_restElement = 42;
163
- static readonly RULE_ifStatement = 43;
164
- static readonly RULE_elseStatement = 44;
165
- static readonly RULE_elseIfStatement = 45;
166
- static readonly RULE_variableDeclaration = 46;
167
- static readonly RULE_variableDeclarator = 47;
168
- static readonly RULE_variableDeclaratorWithInit = 48;
169
- static readonly RULE_catchStatement = 49;
170
- static readonly RULE_catchAsStatement = 50;
171
- static readonly RULE_comment = 51;
172
- static readonly RULE_returnStatement = 52;
173
- static readonly RULE_forStatement = 53;
174
- static readonly RULE_evaluateCase = 54;
175
- static readonly RULE_evaluateCaseTest = 55;
176
- static readonly RULE_wildcard = 56;
177
- static readonly RULE_evaluateFallback = 57;
178
- static readonly RULE_evaluateBranch = 58;
179
- static readonly RULE_evaluateArguments = 59;
180
- static readonly RULE_evaluateStatement = 60;
181
- static readonly RULE_callArguments = 61;
182
- static readonly RULE_protocolDeclaration = 62;
183
- static readonly RULE_protocolComparator = 63;
184
- static readonly RULE_defineStatement = 64;
185
- static readonly RULE_requireStatement = 65;
186
- static readonly RULE_terminateFlag = 66;
187
- static readonly RULE_protocolOpStatement = 67;
188
- static readonly RULE_booleanOp = 68;
189
- static readonly RULE_forwardStatement = 69;
190
- static readonly RULE_offsetStatement = 70;
191
- static readonly RULE_rewindStatement = 71;
192
- static readonly RULE_stepDeclaration = 72;
193
- static readonly RULE_protocolPhase = 73;
194
- static readonly RULE_parityDeclaration = 74;
195
- static readonly RULE_ruleStatement = 75;
196
- static readonly RULE_protocolBody = 76;
197
- static readonly RULE_stepBody = 77;
198
- static readonly RULE_endStatement = 78;
199
- static readonly RULE_enumDeclaration = 79;
200
- static readonly RULE_enumBody = 80;
201
- static readonly RULE_enumAssignment = 81;
202
- static readonly RULE_token = 82;
203
- static readonly RULE_debuggerStatement = 83;
204
- static readonly RULE_blockStatement = 84;
205
- static readonly RULE_literal = 85;
206
- static readonly RULE_valueInternal = 86;
207
- static readonly RULE_lineEnd = 87;
208
- static readonly RULE_customType = 88;
209
- static readonly RULE_dataType = 89;
210
- static readonly RULE_type = 90;
211
- static readonly RULE_protocolType = 91;
212
- static readonly RULE_protocolReadType = 92;
213
- static readonly RULE_arrayExpressionInternal = 93;
214
- static readonly RULE_objectExpressionInternal = 94;
215
- static readonly RULE_objectProperty = 95;
216
- static readonly RULE_stringLiteral = 96;
217
- static readonly RULE_numberLiteral = 97;
218
- static readonly RULE_booleanLiteral = 98;
219
- static readonly RULE_nullLiteral = 99;
220
- static readonly RULE_undefinedLiteral = 100;
221
- static readonly RULE_identifier = 101;
158
+ static readonly RULE_stopStatement = 34;
159
+ static readonly RULE_startStatement = 35;
160
+ static readonly RULE_resumeStatement = 36;
161
+ static readonly RULE_breakStatement = 37;
162
+ static readonly RULE_continueStatement = 38;
163
+ static readonly RULE_functionNameIdentifier = 39;
164
+ static readonly RULE_functionDeclaration = 40;
165
+ static readonly RULE_functionDefinition = 41;
166
+ static readonly RULE_functionParameters = 42;
167
+ static readonly RULE_functionParameter = 43;
168
+ static readonly RULE_assignmentPattern = 44;
169
+ static readonly RULE_restElement = 45;
170
+ static readonly RULE_ifStatement = 46;
171
+ static readonly RULE_elseStatement = 47;
172
+ static readonly RULE_elseIfStatement = 48;
173
+ static readonly RULE_variableDeclaration = 49;
174
+ static readonly RULE_variableDeclarator = 50;
175
+ static readonly RULE_variableDeclaratorWithInit = 51;
176
+ static readonly RULE_catchStatement = 52;
177
+ static readonly RULE_catchAsStatement = 53;
178
+ static readonly RULE_comment = 54;
179
+ static readonly RULE_returnStatement = 55;
180
+ static readonly RULE_forStatement = 56;
181
+ static readonly RULE_evaluateCase = 57;
182
+ static readonly RULE_evaluateCaseTest = 58;
183
+ static readonly RULE_wildcard = 59;
184
+ static readonly RULE_evaluateFallback = 60;
185
+ static readonly RULE_evaluateBranch = 61;
186
+ static readonly RULE_evaluateArguments = 62;
187
+ static readonly RULE_evaluateStatement = 63;
188
+ static readonly RULE_callArguments = 64;
189
+ static readonly RULE_protocolDeclaration = 65;
190
+ static readonly RULE_protocolComparator = 66;
191
+ static readonly RULE_defineStatement = 67;
192
+ static readonly RULE_requireStatement = 68;
193
+ static readonly RULE_terminateFlag = 69;
194
+ static readonly RULE_protocolOpStatement = 70;
195
+ static readonly RULE_booleanOp = 71;
196
+ static readonly RULE_forwardStatement = 72;
197
+ static readonly RULE_offsetStatement = 73;
198
+ static readonly RULE_rewindStatement = 74;
199
+ static readonly RULE_stepDeclaration = 75;
200
+ static readonly RULE_protocolPhase = 76;
201
+ static readonly RULE_parityDeclaration = 77;
202
+ static readonly RULE_ruleStatement = 78;
203
+ static readonly RULE_protocolBody = 79;
204
+ static readonly RULE_stepBody = 80;
205
+ static readonly RULE_endStatement = 81;
206
+ static readonly RULE_enumDeclaration = 82;
207
+ static readonly RULE_enumBody = 83;
208
+ static readonly RULE_enumAssignment = 84;
209
+ static readonly RULE_token = 85;
210
+ static readonly RULE_debuggerStatement = 86;
211
+ static readonly RULE_blockStatement = 87;
212
+ static readonly RULE_literal = 88;
213
+ static readonly RULE_valueInternal = 89;
214
+ static readonly RULE_lineEnd = 90;
215
+ static readonly RULE_customType = 91;
216
+ static readonly RULE_dataType = 92;
217
+ static readonly RULE_type = 93;
218
+ static readonly RULE_protocolType = 94;
219
+ static readonly RULE_protocolReadType = 95;
220
+ static readonly RULE_arrayExpressionInternal = 96;
221
+ static readonly RULE_objectExpressionInternal = 97;
222
+ static readonly RULE_objectProperty = 98;
223
+ static readonly RULE_stringLiteral = 99;
224
+ static readonly RULE_numberLiteral = 100;
225
+ static readonly RULE_booleanLiteral = 101;
226
+ static readonly RULE_nullLiteral = 102;
227
+ static readonly RULE_undefinedLiteral = 103;
228
+ static readonly RULE_pureIdentifier = 104;
229
+ static readonly RULE_looseIdentifier = 105;
222
230
  static readonly ruleNames: string[];
223
231
  private static readonly _LITERAL_NAMES;
224
232
  private static readonly _SYMBOLIC_NAMES;
@@ -264,6 +272,9 @@ export declare class BattleScriptParser extends Parser {
264
272
  everyDeclaration(): EveryDeclarationContext;
265
273
  limitClause(): LimitClauseContext;
266
274
  cancelStatement(): CancelStatementContext;
275
+ stopStatement(): StopStatementContext;
276
+ startStatement(): StartStatementContext;
277
+ resumeStatement(): ResumeStatementContext;
267
278
  breakStatement(): BreakStatementContext;
268
279
  continueStatement(): ContinueStatementContext;
269
280
  functionNameIdentifier(): FunctionNameIdentifierContext;
@@ -333,7 +344,8 @@ export declare class BattleScriptParser extends Parser {
333
344
  booleanLiteral(): BooleanLiteralContext;
334
345
  nullLiteral(): NullLiteralContext;
335
346
  undefinedLiteral(): UndefinedLiteralContext;
336
- identifier(): IdentifierContext;
347
+ pureIdentifier(): PureIdentifierContext;
348
+ looseIdentifier(): LooseIdentifierContext;
337
349
  sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
338
350
  private expression_sempred;
339
351
  private customType_sempred;
@@ -341,6 +353,7 @@ export declare class BattleScriptParser extends Parser {
341
353
  private static readonly _serializedATNSegments;
342
354
  private static readonly _serializedATNSegment0;
343
355
  private static readonly _serializedATNSegment1;
356
+ private static readonly _serializedATNSegment2;
344
357
  static readonly _serializedATN: string;
345
358
  static __ATN: ATN;
346
359
  static get _ATN(): ATN;
@@ -376,8 +389,8 @@ export declare class IncludeStatementContext extends ParserRuleContext {
376
389
  }
377
390
  export declare class ImportNativeContext extends ParserRuleContext {
378
391
  IMPORT(): TerminalNode;
379
- identifier(): IdentifierContext[];
380
- identifier(i: number): IdentifierContext;
392
+ looseIdentifier(): LooseIdentifierContext[];
393
+ looseIdentifier(i: number): LooseIdentifierContext;
381
394
  DOUBLE_COLON(): TerminalNode;
382
395
  lineEnd(): LineEndContext;
383
396
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -391,7 +404,7 @@ export declare class ImportExternalContext extends ParserRuleContext {
391
404
  NAMESPACE(): TerminalNode | undefined;
392
405
  stringLiteral(): StringLiteralContext;
393
406
  lineEnd(): LineEndContext;
394
- identifier(): IdentifierContext | undefined;
407
+ looseIdentifier(): LooseIdentifierContext | undefined;
395
408
  FROM(): TerminalNode | undefined;
396
409
  BRACES_START(): TerminalNode | undefined;
397
410
  importSpecifier(): ImportSpecifierContext[];
@@ -406,8 +419,8 @@ export declare class ImportExternalContext extends ParserRuleContext {
406
419
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
407
420
  }
408
421
  export declare class ImportSpecifierContext extends ParserRuleContext {
409
- identifier(): IdentifierContext[];
410
- identifier(i: number): IdentifierContext;
422
+ looseIdentifier(): LooseIdentifierContext[];
423
+ looseIdentifier(i: number): LooseIdentifierContext;
411
424
  AS(): TerminalNode | undefined;
412
425
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
413
426
  get ruleIndex(): number;
@@ -428,7 +441,7 @@ export declare class ProgramDeclarationContext extends ParserRuleContext {
428
441
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
429
442
  }
430
443
  export declare class ProgramPropertyContext extends ParserRuleContext {
431
- identifier(): IdentifierContext;
444
+ looseIdentifier(): LooseIdentifierContext;
432
445
  valueInternal(): ValueInternalContext;
433
446
  lineEnd(): LineEndContext;
434
447
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -439,7 +452,7 @@ export declare class ProgramPropertyContext extends ParserRuleContext {
439
452
  }
440
453
  export declare class ExposeDeclarationContext extends ParserRuleContext {
441
454
  EXPOSE(): TerminalNode;
442
- identifier(): IdentifierContext;
455
+ looseIdentifier(): LooseIdentifierContext;
443
456
  BRACES_START(): TerminalNode;
444
457
  BRACES_END(): TerminalNode;
445
458
  groupDeclaration(): GroupDeclarationContext[];
@@ -454,7 +467,7 @@ export declare class ExposeDeclarationContext extends ParserRuleContext {
454
467
  }
455
468
  export declare class GroupDeclarationContext extends ParserRuleContext {
456
469
  GROUP(): TerminalNode;
457
- identifier(): IdentifierContext;
470
+ looseIdentifier(): LooseIdentifierContext;
458
471
  BRACES_START(): TerminalNode;
459
472
  BRACES_END(): TerminalNode;
460
473
  configPropertyBody(): ConfigPropertyBodyContext[];
@@ -467,7 +480,7 @@ export declare class GroupDeclarationContext extends ParserRuleContext {
467
480
  }
468
481
  export declare class ConfigPropertyContext extends ParserRuleContext {
469
482
  type(): TypeContext;
470
- identifier(): IdentifierContext;
483
+ looseIdentifier(): LooseIdentifierContext;
471
484
  BRACES_START(): TerminalNode;
472
485
  BRACES_END(): TerminalNode;
473
486
  lineEnd(): LineEndContext;
@@ -480,7 +493,7 @@ export declare class ConfigPropertyContext extends ParserRuleContext {
480
493
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
481
494
  }
482
495
  export declare class ConfigPropertyBodyContext extends ParserRuleContext {
483
- identifier(): IdentifierContext;
496
+ looseIdentifier(): LooseIdentifierContext;
484
497
  COLON(): TerminalNode;
485
498
  expression(): ExpressionContext;
486
499
  lineEnd(): LineEndContext;
@@ -510,8 +523,8 @@ export declare class RootBodyContext extends ParserRuleContext {
510
523
  }
511
524
  export declare class InterfaceDeclarationContext extends ParserRuleContext {
512
525
  INTERFACE(): TerminalNode;
513
- identifier(): IdentifierContext[];
514
- identifier(i: number): IdentifierContext;
526
+ looseIdentifier(): LooseIdentifierContext[];
527
+ looseIdentifier(i: number): LooseIdentifierContext;
515
528
  BRACES_START(): TerminalNode;
516
529
  BRACES_END(): TerminalNode;
517
530
  EXTENDS(): TerminalNode | undefined;
@@ -525,7 +538,7 @@ export declare class InterfaceDeclarationContext extends ParserRuleContext {
525
538
  }
526
539
  export declare class InterfacePropertyContext extends ParserRuleContext {
527
540
  type(): TypeContext;
528
- identifier(): IdentifierContext;
541
+ looseIdentifier(): LooseIdentifierContext;
529
542
  lineEnd(): LineEndContext;
530
543
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
531
544
  get ruleIndex(): number;
@@ -535,6 +548,9 @@ export declare class InterfacePropertyContext extends ParserRuleContext {
535
548
  }
536
549
  export declare class StatementContext extends ParserRuleContext {
537
550
  ifStatement(): IfStatementContext | undefined;
551
+ stopStatement(): StopStatementContext | undefined;
552
+ startStatement(): StartStatementContext | undefined;
553
+ resumeStatement(): ResumeStatementContext | undefined;
538
554
  variableDeclaration(): VariableDeclarationContext | undefined;
539
555
  functionDeclaration(): FunctionDeclarationContext | undefined;
540
556
  functionDefinition(): FunctionDefinitionContext | undefined;
@@ -583,8 +599,8 @@ export declare class ExportNamedContext extends ParserRuleContext {
583
599
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
584
600
  }
585
601
  export declare class ExportSpecifierContext extends ParserRuleContext {
586
- identifier(): IdentifierContext[];
587
- identifier(i: number): IdentifierContext;
602
+ looseIdentifier(): LooseIdentifierContext[];
603
+ looseIdentifier(i: number): LooseIdentifierContext;
588
604
  AS(): TerminalNode | undefined;
589
605
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
590
606
  get ruleIndex(): number;
@@ -633,8 +649,8 @@ export declare class ExpressionStatementContext extends ParserRuleContext {
633
649
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
634
650
  }
635
651
  export declare class NamespacedIdentifierContext extends ParserRuleContext {
636
- identifier(): IdentifierContext[];
637
- identifier(i: number): IdentifierContext;
652
+ looseIdentifier(): LooseIdentifierContext[];
653
+ looseIdentifier(i: number): LooseIdentifierContext;
638
654
  DOUBLE_COLON(): TerminalNode;
639
655
  PERIOD(): TerminalNode[];
640
656
  PERIOD(i: number): TerminalNode;
@@ -770,13 +786,14 @@ export declare class EveryExpressionContext extends ExpressionContext {
770
786
  expression(): ExpressionContext;
771
787
  blockStatement(): BlockStatementContext;
772
788
  limitClause(): LimitClauseContext | undefined;
789
+ KEEP(): TerminalNode | undefined;
773
790
  constructor(ctx: ExpressionContext);
774
791
  enterRule(listener: BattleScriptListener): void;
775
792
  exitRule(listener: BattleScriptListener): void;
776
793
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
777
794
  }
778
795
  export declare class PrimaryExpressionContext extends ParserRuleContext {
779
- identifier(): IdentifierContext | undefined;
796
+ looseIdentifier(): LooseIdentifierContext | undefined;
780
797
  PARENS_START(): TerminalNode | undefined;
781
798
  expression(): ExpressionContext | undefined;
782
799
  PARENS_END(): TerminalNode | undefined;
@@ -888,6 +905,36 @@ export declare class CancelStatementContext extends ParserRuleContext {
888
905
  exitRule(listener: BattleScriptListener): void;
889
906
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
890
907
  }
908
+ export declare class StopStatementContext extends ParserRuleContext {
909
+ STOP(): TerminalNode;
910
+ lineEnd(): LineEndContext;
911
+ token(): TokenContext | undefined;
912
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
913
+ get ruleIndex(): number;
914
+ enterRule(listener: BattleScriptListener): void;
915
+ exitRule(listener: BattleScriptListener): void;
916
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
917
+ }
918
+ export declare class StartStatementContext extends ParserRuleContext {
919
+ START(): TerminalNode;
920
+ lineEnd(): LineEndContext;
921
+ token(): TokenContext | undefined;
922
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
923
+ get ruleIndex(): number;
924
+ enterRule(listener: BattleScriptListener): void;
925
+ exitRule(listener: BattleScriptListener): void;
926
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
927
+ }
928
+ export declare class ResumeStatementContext extends ParserRuleContext {
929
+ RESUME(): TerminalNode;
930
+ lineEnd(): LineEndContext;
931
+ token(): TokenContext | undefined;
932
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
933
+ get ruleIndex(): number;
934
+ enterRule(listener: BattleScriptListener): void;
935
+ exitRule(listener: BattleScriptListener): void;
936
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
937
+ }
891
938
  export declare class BreakStatementContext extends ParserRuleContext {
892
939
  BREAK(): TerminalNode;
893
940
  lineEnd(): LineEndContext;
@@ -908,7 +955,7 @@ export declare class ContinueStatementContext extends ParserRuleContext {
908
955
  }
909
956
  export declare class FunctionNameIdentifierContext extends ParserRuleContext {
910
957
  namespacedIdentifier(): NamespacedIdentifierContext | undefined;
911
- identifier(): IdentifierContext | undefined;
958
+ looseIdentifier(): LooseIdentifierContext | undefined;
912
959
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
913
960
  get ruleIndex(): number;
914
961
  enterRule(listener: BattleScriptListener): void;
@@ -957,7 +1004,7 @@ export declare class FunctionParametersContext extends ParserRuleContext {
957
1004
  export declare class FunctionParameterContext extends ParserRuleContext {
958
1005
  assignmentPattern(): AssignmentPatternContext | undefined;
959
1006
  type(): TypeContext | undefined;
960
- identifier(): IdentifierContext | undefined;
1007
+ looseIdentifier(): LooseIdentifierContext | undefined;
961
1008
  restElement(): RestElementContext | undefined;
962
1009
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
963
1010
  get ruleIndex(): number;
@@ -969,7 +1016,7 @@ export declare class AssignmentPatternContext extends ParserRuleContext {
969
1016
  type(): TypeContext;
970
1017
  ASSIGN(): TerminalNode;
971
1018
  expression(): ExpressionContext;
972
- identifier(): IdentifierContext | undefined;
1019
+ looseIdentifier(): LooseIdentifierContext | undefined;
973
1020
  restElement(): RestElementContext | undefined;
974
1021
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
975
1022
  get ruleIndex(): number;
@@ -979,7 +1026,7 @@ export declare class AssignmentPatternContext extends ParserRuleContext {
979
1026
  }
980
1027
  export declare class RestElementContext extends ParserRuleContext {
981
1028
  REST(): TerminalNode;
982
- identifier(): IdentifierContext;
1029
+ looseIdentifier(): LooseIdentifierContext;
983
1030
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
984
1031
  get ruleIndex(): number;
985
1032
  enterRule(listener: BattleScriptListener): void;
@@ -1033,7 +1080,7 @@ export declare class VariableDeclarationContext extends ParserRuleContext {
1033
1080
  }
1034
1081
  export declare class VariableDeclaratorContext extends ParserRuleContext {
1035
1082
  type(): TypeContext;
1036
- identifier(): IdentifierContext;
1083
+ pureIdentifier(): PureIdentifierContext;
1037
1084
  ASSIGN(): TerminalNode | undefined;
1038
1085
  expression(): ExpressionContext | undefined;
1039
1086
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -1044,7 +1091,7 @@ export declare class VariableDeclaratorContext extends ParserRuleContext {
1044
1091
  }
1045
1092
  export declare class VariableDeclaratorWithInitContext extends ParserRuleContext {
1046
1093
  type(): TypeContext;
1047
- identifier(): IdentifierContext;
1094
+ pureIdentifier(): PureIdentifierContext;
1048
1095
  ASSIGN(): TerminalNode;
1049
1096
  expression(): ExpressionContext;
1050
1097
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -1055,7 +1102,7 @@ export declare class VariableDeclaratorWithInitContext extends ParserRuleContext
1055
1102
  }
1056
1103
  export declare class CatchStatementContext extends ParserRuleContext {
1057
1104
  CATCH(): TerminalNode;
1058
- identifier(): IdentifierContext;
1105
+ pureIdentifier(): PureIdentifierContext;
1059
1106
  blockStatement(): BlockStatementContext;
1060
1107
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1061
1108
  get ruleIndex(): number;
@@ -1065,8 +1112,8 @@ export declare class CatchStatementContext extends ParserRuleContext {
1065
1112
  }
1066
1113
  export declare class CatchAsStatementContext extends ParserRuleContext {
1067
1114
  CATCH(): TerminalNode;
1068
- identifier(): IdentifierContext[];
1069
- identifier(i: number): IdentifierContext;
1115
+ pureIdentifier(): PureIdentifierContext[];
1116
+ pureIdentifier(i: number): PureIdentifierContext;
1070
1117
  AS(): TerminalNode;
1071
1118
  blockStatement(): BlockStatementContext;
1072
1119
  COMMA(): TerminalNode[];
@@ -1223,7 +1270,7 @@ export declare class ProtocolDeclarationContext extends ParserRuleContext {
1223
1270
  export declare class ProtocolComparatorContext extends ParserRuleContext {
1224
1271
  EQUALS(): TerminalNode | undefined;
1225
1272
  NOT_EQUALS(): TerminalNode | undefined;
1226
- identifier(): IdentifierContext | undefined;
1273
+ looseIdentifier(): LooseIdentifierContext | undefined;
1227
1274
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1228
1275
  get ruleIndex(): number;
1229
1276
  enterRule(listener: BattleScriptListener): void;
@@ -1413,7 +1460,7 @@ export declare class EndStatementContext extends ParserRuleContext {
1413
1460
  }
1414
1461
  export declare class EnumDeclarationContext extends ParserRuleContext {
1415
1462
  ENUM(): TerminalNode;
1416
- identifier(): IdentifierContext;
1463
+ looseIdentifier(): LooseIdentifierContext;
1417
1464
  BRACES_START(): TerminalNode;
1418
1465
  BRACES_END(): TerminalNode;
1419
1466
  enumBody(): EnumBodyContext[];
@@ -1425,7 +1472,7 @@ export declare class EnumDeclarationContext extends ParserRuleContext {
1425
1472
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1426
1473
  }
1427
1474
  export declare class EnumBodyContext extends ParserRuleContext {
1428
- identifier(): IdentifierContext | undefined;
1475
+ looseIdentifier(): LooseIdentifierContext | undefined;
1429
1476
  SEMI_COLON(): TerminalNode | undefined;
1430
1477
  COMMA(): TerminalNode | undefined;
1431
1478
  enumAssignment(): EnumAssignmentContext | undefined;
@@ -1437,7 +1484,7 @@ export declare class EnumBodyContext extends ParserRuleContext {
1437
1484
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1438
1485
  }
1439
1486
  export declare class EnumAssignmentContext extends ParserRuleContext {
1440
- identifier(): IdentifierContext;
1487
+ looseIdentifier(): LooseIdentifierContext;
1441
1488
  ASSIGN(): TerminalNode;
1442
1489
  literal(): LiteralContext;
1443
1490
  SEMI_COLON(): TerminalNode | undefined;
@@ -1449,7 +1496,7 @@ export declare class EnumAssignmentContext extends ParserRuleContext {
1449
1496
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1450
1497
  }
1451
1498
  export declare class TokenContext extends ParserRuleContext {
1452
- identifier(): IdentifierContext | undefined;
1499
+ looseIdentifier(): LooseIdentifierContext | undefined;
1453
1500
  primaryExpression(): PrimaryExpressionContext | undefined;
1454
1501
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1455
1502
  get ruleIndex(): number;
@@ -1506,7 +1553,7 @@ export declare class LineEndContext extends ParserRuleContext {
1506
1553
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1507
1554
  }
1508
1555
  export declare class CustomTypeContext extends ParserRuleContext {
1509
- identifier(): IdentifierContext | undefined;
1556
+ pureIdentifier(): PureIdentifierContext | undefined;
1510
1557
  customType(): CustomTypeContext | undefined;
1511
1558
  BRACKETS_START(): TerminalNode | undefined;
1512
1559
  BRACKETS_END(): TerminalNode | undefined;
@@ -1588,6 +1635,8 @@ export declare class ArrayExpressionInternalContext extends ParserRuleContext {
1588
1635
  export declare class ObjectExpressionInternalContext extends ParserRuleContext {
1589
1636
  BRACES_START(): TerminalNode;
1590
1637
  BRACES_END(): TerminalNode;
1638
+ comment(): CommentContext[];
1639
+ comment(i: number): CommentContext;
1591
1640
  objectProperty(): ObjectPropertyContext[];
1592
1641
  objectProperty(i: number): ObjectPropertyContext;
1593
1642
  COMMA(): TerminalNode[];
@@ -1601,7 +1650,7 @@ export declare class ObjectExpressionInternalContext extends ParserRuleContext {
1601
1650
  export declare class ObjectPropertyContext extends ParserRuleContext {
1602
1651
  COLON(): TerminalNode;
1603
1652
  expression(): ExpressionContext;
1604
- identifier(): IdentifierContext | undefined;
1653
+ looseIdentifier(): LooseIdentifierContext | undefined;
1605
1654
  stringLiteral(): StringLiteralContext | undefined;
1606
1655
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1607
1656
  get ruleIndex(): number;
@@ -1649,7 +1698,15 @@ export declare class UndefinedLiteralContext extends ParserRuleContext {
1649
1698
  exitRule(listener: BattleScriptListener): void;
1650
1699
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1651
1700
  }
1652
- export declare class IdentifierContext extends ParserRuleContext {
1701
+ export declare class PureIdentifierContext extends ParserRuleContext {
1702
+ IDENTIFIER(): TerminalNode;
1703
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1704
+ get ruleIndex(): number;
1705
+ enterRule(listener: BattleScriptListener): void;
1706
+ exitRule(listener: BattleScriptListener): void;
1707
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1708
+ }
1709
+ export declare class LooseIdentifierContext extends ParserRuleContext {
1653
1710
  IDENTIFIER(): TerminalNode | undefined;
1654
1711
  PROTOCOL(): TerminalNode | undefined;
1655
1712
  DEFINE(): TerminalNode | undefined;
@@ -1662,6 +1719,9 @@ export declare class IdentifierContext extends ParserRuleContext {
1662
1719
  FORWARD(): TerminalNode | undefined;
1663
1720
  REWIND(): TerminalNode | undefined;
1664
1721
  OFFSET(): TerminalNode | undefined;
1722
+ STOP(): TerminalNode | undefined;
1723
+ START(): TerminalNode | undefined;
1724
+ RESUME(): TerminalNode | undefined;
1665
1725
  XOR(): TerminalNode | undefined;
1666
1726
  XNOR(): TerminalNode | undefined;
1667
1727
  BITS(): TerminalNode | undefined;