@irrelon/battlescript 3.2.2 → 3.2.3

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 (82) hide show
  1. package/bin/index.js +24682 -24130
  2. package/bin/index.js.map +1 -1
  3. package/dist/exports/typescript/enums/EnumNodeKind.d.ts +54 -51
  4. package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
  5. package/dist/exports/typescript/enums/EnumNodeProp.d.ts +6 -7
  6. package/dist/exports/typescript/enums/EnumNodeProp.d.ts.map +1 -1
  7. package/dist/exports/typescript/helpers/miniAstLayout.d.ts.map +1 -1
  8. package/dist/index.cjs +24699 -24141
  9. package/dist/index.cjs.map +1 -1
  10. package/dist/index.mjs +24688 -24139
  11. package/dist/index.mjs.map +1 -1
  12. package/dist/scripts/exportGen/helpers/generateHelpers.d.ts.map +1 -1
  13. package/dist/scripts/regenerateTestBinaries.d.ts +2 -0
  14. package/dist/scripts/regenerateTestBinaries.d.ts.map +1 -0
  15. package/dist/services/fullAst/BattleScriptFromAST.d.ts +6 -2
  16. package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
  17. package/dist/services/fullAst/BattleScriptToAST.d.ts +8 -3
  18. package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
  19. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +99 -97
  20. package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
  21. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +49 -16
  22. package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
  23. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +226 -176
  24. package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
  25. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +31 -10
  26. package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
  27. package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
  28. package/dist/services/miniAst/binaryTypeToByteSize.d.ts +1 -1
  29. package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
  30. package/dist/tsconfig.types.tsbuildinfo +1 -0
  31. package/dist/types/ast/nodes/AstNode.d.ts +3 -2
  32. package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
  33. package/dist/types/ast/nodes/DebuggerStatementNode.d.ts +12 -0
  34. package/dist/types/ast/nodes/DebuggerStatementNode.d.ts.map +1 -0
  35. package/dist/types/ast/nodes/EnumAssignmentNode.d.ts +14 -0
  36. package/dist/types/ast/nodes/EnumAssignmentNode.d.ts.map +1 -0
  37. package/dist/types/ast/nodes/EvaluateCaseNode.d.ts.map +1 -1
  38. package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts.map +1 -1
  39. package/dist/types/ast/nodes/EvaluateStatementNode.d.ts.map +1 -1
  40. package/dist/types/ast/nodes/EventDeclarationNode.d.ts +4 -4
  41. package/dist/types/ast/nodes/EventDeclarationNode.d.ts.map +1 -1
  42. package/dist/types/ast/nodes/StateDeclarationNode.d.ts +2 -2
  43. package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
  44. package/dist/types/ast/nodes/StateModuleDeclarationNode.d.ts +14 -0
  45. package/dist/types/ast/nodes/StateModuleDeclarationNode.d.ts.map +1 -0
  46. package/dist/types/ast/nodes/StateModuleEventDeclarationNode.d.ts +15 -0
  47. package/dist/types/ast/nodes/StateModuleEventDeclarationNode.d.ts.map +1 -0
  48. package/dist/types/ast/nodes/index.d.ts +4 -1
  49. package/dist/types/ast/nodes/index.d.ts.map +1 -1
  50. package/dist/types/ast/unions/BlockStatementUnion.d.ts +2 -2
  51. package/dist/types/ast/unions/BlockStatementUnion.d.ts.map +1 -1
  52. package/package.json +3 -2
  53. package/dist/services/byteCode/byteCodeInterpreter.d.ts +0 -17
  54. package/dist/services/byteCode/byteCodeInterpreter.d.ts.map +0 -1
  55. package/dist/services/byteCode/disassembler.d.ts +0 -3
  56. package/dist/services/byteCode/disassembler.d.ts.map +0 -1
  57. package/dist/services/byteCode/index.d.ts +0 -3
  58. package/dist/services/byteCode/index.d.ts.map +0 -1
  59. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/basic1-out.d.ts +0 -20
  60. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/basic1-out.d.ts.map +0 -1
  61. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/binary-expression1-out.d.ts +0 -20
  62. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/binary-expression1-out.d.ts.map +0 -1
  63. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression1-out.d.ts +0 -20
  64. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression1-out.d.ts.map +0 -1
  65. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression2-out.d.ts +0 -20
  66. package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression2-out.d.ts.map +0 -1
  67. package/dist/tests/bytecode/fixtures/IDENTIFIER/basic1-out.d.ts +0 -21
  68. package/dist/tests/bytecode/fixtures/IDENTIFIER/basic1-out.d.ts.map +0 -1
  69. package/dist/tests/bytecode/fixtures/LITERAL/basic1-int-out.d.ts +0 -21
  70. package/dist/tests/bytecode/fixtures/LITERAL/basic1-int-out.d.ts.map +0 -1
  71. package/dist/tests/bytecode/fixtures/MEMBER_EXPRESSION/basic1-out.d.ts +0 -20
  72. package/dist/tests/bytecode/fixtures/MEMBER_EXPRESSION/basic1-out.d.ts.map +0 -1
  73. package/dist/tests/bytecode/interpreter.test.d.ts +0 -2
  74. package/dist/tests/bytecode/interpreter.test.d.ts.map +0 -1
  75. package/dist/tests/bytecode/utils.d.ts +0 -21
  76. package/dist/tests/bytecode/utils.d.ts.map +0 -1
  77. package/dist/types/ast/nodes/TransportStatementNode.d.ts +0 -13
  78. package/dist/types/ast/nodes/TransportStatementNode.d.ts.map +0 -1
  79. package/dist/types/byteCode/ByteCodeInstruction.d.ts +0 -8
  80. package/dist/types/byteCode/ByteCodeInstruction.d.ts.map +0 -1
  81. package/dist/types/byteCode/ByteCodeJson.d.ts +0 -6
  82. package/dist/types/byteCode/ByteCodeJson.d.ts.map +0 -1
@@ -9,103 +9,105 @@ import { Vocabulary } from "antlr4ts/Vocabulary";
9
9
  import { BattleScriptListener } from "./BattleScriptListener";
10
10
  import { BattleScriptVisitor } from "./BattleScriptVisitor";
11
11
  export declare class BattleScriptParser extends Parser {
12
- static readonly EXTERNAL = 1;
13
- static readonly NATIVE = 2;
14
- static readonly PURE = 3;
15
- static readonly DECLARE = 4;
16
- static readonly IMPORT = 5;
17
- static readonly EXPORT = 6;
18
- static readonly USE = 7;
19
- static readonly FROM = 8;
20
- static readonly NAMESPACE = 9;
21
- static readonly PROGRAM = 10;
22
- static readonly EXPOSE = 11;
23
- static readonly GROUP = 12;
24
- static readonly DEFAULT = 13;
25
- static readonly SWITCH = 14;
26
- static readonly FUNCTION = 15;
27
- static readonly INTERFACE = 16;
28
- static readonly EXTENDS = 17;
29
- static readonly STATE = 18;
30
- static readonly EVENT = 19;
31
- static readonly IF = 20;
32
- static readonly ELSE = 21;
33
- static readonly RETURN = 22;
34
- static readonly EVERY = 23;
35
- static readonly LIMIT = 24;
36
- static readonly AFTER = 25;
37
- static readonly CANCEL = 26;
38
- static readonly FOR = 27;
39
- static readonly EVALUATE = 28;
40
- static readonly CASE = 29;
41
- static readonly BREAK = 30;
42
- static readonly CONTINUE = 31;
43
- static readonly FALLBACK = 32;
44
- static readonly CATCH = 33;
45
- static readonly AS = 34;
46
- static readonly PROTOCOL = 35;
47
- static readonly DEFINE = 36;
48
- static readonly REQUIRE = 37;
49
- static readonly STEP = 38;
50
- static readonly ENUM = 39;
51
- static readonly CONST = 40;
52
- static readonly TYPE_OBJECT = 41;
53
- static readonly TYPE_ARRAY = 42;
54
- static readonly TYPE_STRING = 43;
55
- static readonly TYPE_INT = 44;
56
- static readonly TYPE_UINT = 45;
57
- static readonly TYPE_FLOAT = 46;
58
- static readonly TYPE_DOUBLE = 47;
59
- static readonly TYPE_BOOLEAN = 48;
60
- static readonly TYPE_NULL = 49;
61
- static readonly TYPE_VOID = 50;
62
- static readonly TYPE_UNDEFINED = 51;
63
- static readonly TYPE_ANY = 52;
64
- static readonly PROTOCOL_TYPE_U1 = 53;
65
- static readonly PROTOCOL_TYPE_U2 = 54;
66
- static readonly PROTOCOL_TYPE_U4 = 55;
67
- static readonly PROTOCOL_TYPE_I1 = 56;
68
- static readonly PROTOCOL_TYPE_I2 = 57;
69
- static readonly PROTOCOL_TYPE_I4 = 58;
70
- static readonly NUMBER = 59;
71
- static readonly BOOLEAN = 60;
72
- static readonly STRING = 61;
73
- static readonly COMMENT = 62;
74
- static readonly IDENTIFIER = 63;
75
- static readonly ARROW_OPERATOR = 64;
76
- static readonly INCREMENT = 65;
77
- static readonly DECREMENT = 66;
78
- static readonly PLUS = 67;
79
- static readonly MINUS = 68;
80
- static readonly DIVIDE = 69;
81
- static readonly MULTIPLY = 70;
82
- static readonly REMAINDER = 71;
83
- static readonly ASSIGN = 72;
84
- static readonly PLUS_ASSIGN = 73;
85
- static readonly MINUS_ASSIGN = 74;
86
- static readonly AND = 75;
87
- static readonly OR = 76;
88
- static readonly NOT = 77;
89
- static readonly EQUALS = 78;
90
- static readonly NOT_EQUALS = 79;
91
- static readonly GT = 80;
92
- static readonly LT = 81;
93
- static readonly GTE = 82;
94
- static readonly LTE = 83;
95
- static readonly REST = 84;
96
- static readonly PERIOD = 85;
97
- static readonly COMMA = 86;
98
- static readonly WILDCARD = 87;
99
- static readonly PARENS_START = 88;
100
- static readonly PARENS_END = 89;
101
- static readonly BRACES_START = 90;
102
- static readonly BRACES_END = 91;
103
- static readonly BRACKETS_START = 92;
104
- static readonly BRACKETS_END = 93;
105
- static readonly DOUBLE_COLON = 94;
106
- static readonly SEMI_COLON = 95;
107
- static readonly COLON = 96;
108
- static readonly WS = 97;
12
+ static readonly DEBUGGER = 1;
13
+ static readonly EXTERNAL = 2;
14
+ static readonly NATIVE = 3;
15
+ static readonly PURE = 4;
16
+ static readonly DECLARE = 5;
17
+ static readonly IMPORT = 6;
18
+ static readonly EXPORT = 7;
19
+ static readonly USE = 8;
20
+ static readonly FROM = 9;
21
+ static readonly NAMESPACE = 10;
22
+ static readonly PROGRAM = 11;
23
+ static readonly EXPOSE = 12;
24
+ static readonly GROUP = 13;
25
+ static readonly DEFAULT = 14;
26
+ static readonly SWITCH = 15;
27
+ static readonly FUNCTION = 16;
28
+ static readonly INTERFACE = 17;
29
+ static readonly EXTENDS = 18;
30
+ static readonly STATE = 19;
31
+ static readonly MODULE = 20;
32
+ static readonly EVENT = 21;
33
+ static readonly IF = 22;
34
+ static readonly ELSE = 23;
35
+ static readonly RETURN = 24;
36
+ static readonly EVERY = 25;
37
+ static readonly LIMIT = 26;
38
+ static readonly AFTER = 27;
39
+ static readonly CANCEL = 28;
40
+ static readonly FOR = 29;
41
+ static readonly EVALUATE = 30;
42
+ static readonly CASE = 31;
43
+ static readonly BREAK = 32;
44
+ static readonly CONTINUE = 33;
45
+ static readonly FALLBACK = 34;
46
+ static readonly CATCH = 35;
47
+ static readonly AS = 36;
48
+ static readonly PROTOCOL = 37;
49
+ static readonly DEFINE = 38;
50
+ static readonly REQUIRE = 39;
51
+ static readonly STEP = 40;
52
+ static readonly ENUM = 41;
53
+ static readonly ANY = 42;
54
+ static readonly CONST = 43;
55
+ static readonly TYPE_OBJECT = 44;
56
+ static readonly TYPE_ARRAY = 45;
57
+ static readonly TYPE_STRING = 46;
58
+ static readonly TYPE_INT = 47;
59
+ static readonly TYPE_UINT = 48;
60
+ static readonly TYPE_FLOAT = 49;
61
+ static readonly TYPE_DOUBLE = 50;
62
+ static readonly TYPE_BOOLEAN = 51;
63
+ static readonly TYPE_NULL = 52;
64
+ static readonly TYPE_VOID = 53;
65
+ static readonly TYPE_UNDEFINED = 54;
66
+ static readonly PROTOCOL_TYPE_U1 = 55;
67
+ static readonly PROTOCOL_TYPE_U2 = 56;
68
+ static readonly PROTOCOL_TYPE_U4 = 57;
69
+ static readonly PROTOCOL_TYPE_I1 = 58;
70
+ static readonly PROTOCOL_TYPE_I2 = 59;
71
+ static readonly PROTOCOL_TYPE_I4 = 60;
72
+ static readonly NUMBER = 61;
73
+ static readonly BOOLEAN = 62;
74
+ static readonly STRING = 63;
75
+ static readonly COMMENT = 64;
76
+ static readonly ARROW_OPERATOR = 65;
77
+ static readonly INCREMENT = 66;
78
+ static readonly DECREMENT = 67;
79
+ static readonly PLUS = 68;
80
+ static readonly MINUS = 69;
81
+ static readonly DIVIDE = 70;
82
+ static readonly MULTIPLY = 71;
83
+ static readonly REMAINDER = 72;
84
+ static readonly ASSIGN = 73;
85
+ static readonly PLUS_ASSIGN = 74;
86
+ static readonly MINUS_ASSIGN = 75;
87
+ static readonly AND = 76;
88
+ static readonly OR = 77;
89
+ static readonly NOT = 78;
90
+ static readonly EQUALS = 79;
91
+ static readonly NOT_EQUALS = 80;
92
+ static readonly GT = 81;
93
+ static readonly LT = 82;
94
+ static readonly GTE = 83;
95
+ static readonly LTE = 84;
96
+ static readonly REST = 85;
97
+ static readonly PERIOD = 86;
98
+ static readonly COMMA = 87;
99
+ static readonly WILDCARD = 88;
100
+ static readonly PARENS_START = 89;
101
+ static readonly PARENS_END = 90;
102
+ static readonly BRACES_START = 91;
103
+ static readonly BRACES_END = 92;
104
+ static readonly BRACKETS_START = 93;
105
+ static readonly BRACKETS_END = 94;
106
+ static readonly DOUBLE_COLON = 95;
107
+ static readonly SEMI_COLON = 96;
108
+ static readonly COLON = 97;
109
+ static readonly IDENTIFIER = 98;
110
+ static readonly WS = 99;
109
111
  static readonly RULE_root = 0;
110
112
  static readonly RULE_importDeclaration = 1;
111
113
  static readonly RULE_importNative = 2;
@@ -129,67 +131,70 @@ export declare class BattleScriptParser extends Parser {
129
131
  static readonly RULE_primaryExpression = 20;
130
132
  static readonly RULE_stateDeclaration = 21;
131
133
  static readonly RULE_stateBody = 22;
132
- static readonly RULE_eventDeclaration = 23;
133
- static readonly RULE_afterDeclaration = 24;
134
- static readonly RULE_everyDeclaration = 25;
135
- static readonly RULE_limitClause = 26;
136
- static readonly RULE_cancelStatement = 27;
137
- static readonly RULE_breakStatement = 28;
138
- static readonly RULE_continueStatement = 29;
139
- static readonly RULE_functionNameIdentifier = 30;
140
- static readonly RULE_functionDeclaration = 31;
141
- static readonly RULE_functionDefinition = 32;
142
- static readonly RULE_functionParameters = 33;
143
- static readonly RULE_functionParameter = 34;
144
- static readonly RULE_assignmentPattern = 35;
145
- static readonly RULE_restElement = 36;
146
- static readonly RULE_ifStatement = 37;
147
- static readonly RULE_elseStatement = 38;
148
- static readonly RULE_elseIfStatement = 39;
149
- static readonly RULE_variableDeclaration = 40;
150
- static readonly RULE_variableDeclarator = 41;
151
- static readonly RULE_variableDeclaratorWithInit = 42;
152
- static readonly RULE_catchStatement = 43;
153
- static readonly RULE_catchAsStatement = 44;
154
- static readonly RULE_comment = 45;
155
- static readonly RULE_returnStatement = 46;
156
- static readonly RULE_forStatement = 47;
157
- static readonly RULE_evaluateCase = 48;
158
- static readonly RULE_evaluateCaseTest = 49;
159
- static readonly RULE_wildcard = 50;
160
- static readonly RULE_evaluateFallback = 51;
161
- static readonly RULE_evaluateBranch = 52;
162
- static readonly RULE_evaluateArguments = 53;
163
- static readonly RULE_evaluateStatement = 54;
164
- static readonly RULE_callArguments = 55;
165
- static readonly RULE_protocolDeclaration = 56;
166
- static readonly RULE_protocolBody = 57;
167
- static readonly RULE_protocolComparator = 58;
168
- static readonly RULE_defineStatement = 59;
169
- static readonly RULE_requireStatement = 60;
170
- static readonly RULE_stepDeclaration = 61;
171
- static readonly RULE_stepBody = 62;
172
- static readonly RULE_enumDeclaration = 63;
173
- static readonly RULE_enumBody = 64;
174
- static readonly RULE_token = 65;
175
- static readonly RULE_blockStatement = 66;
176
- static readonly RULE_literal = 67;
177
- static readonly RULE_valueInternal = 68;
178
- static readonly RULE_lineEnd = 69;
179
- static readonly RULE_customType = 70;
180
- static readonly RULE_dataType = 71;
181
- static readonly RULE_type = 72;
182
- static readonly RULE_protocolType = 73;
183
- static readonly RULE_arrayExpressionInternal = 74;
184
- static readonly RULE_objectExpressionInternal = 75;
185
- static readonly RULE_objectProperty = 76;
186
- static readonly RULE_stringLiteral = 77;
187
- static readonly RULE_numberLiteral = 78;
188
- static readonly RULE_booleanLiteral = 79;
189
- static readonly RULE_nullLiteral = 80;
190
- static readonly RULE_undefinedLiteral = 81;
191
- static readonly RULE_expandedIdentifier = 82;
192
- static readonly RULE_identifier = 83;
134
+ static readonly RULE_stateModuleDeclaration = 23;
135
+ static readonly RULE_stateModuleBody = 24;
136
+ static readonly RULE_stateModuleEventDeclaration = 25;
137
+ static readonly RULE_afterDeclaration = 26;
138
+ static readonly RULE_everyDeclaration = 27;
139
+ static readonly RULE_limitClause = 28;
140
+ static readonly RULE_cancelStatement = 29;
141
+ static readonly RULE_breakStatement = 30;
142
+ static readonly RULE_continueStatement = 31;
143
+ static readonly RULE_functionNameIdentifier = 32;
144
+ static readonly RULE_functionDeclaration = 33;
145
+ static readonly RULE_functionDefinition = 34;
146
+ static readonly RULE_functionParameters = 35;
147
+ static readonly RULE_functionParameter = 36;
148
+ static readonly RULE_assignmentPattern = 37;
149
+ static readonly RULE_restElement = 38;
150
+ static readonly RULE_ifStatement = 39;
151
+ static readonly RULE_elseStatement = 40;
152
+ static readonly RULE_elseIfStatement = 41;
153
+ static readonly RULE_variableDeclaration = 42;
154
+ static readonly RULE_variableDeclarator = 43;
155
+ static readonly RULE_variableDeclaratorWithInit = 44;
156
+ static readonly RULE_catchStatement = 45;
157
+ static readonly RULE_catchAsStatement = 46;
158
+ static readonly RULE_comment = 47;
159
+ static readonly RULE_returnStatement = 48;
160
+ static readonly RULE_forStatement = 49;
161
+ static readonly RULE_evaluateCase = 50;
162
+ static readonly RULE_evaluateCaseTest = 51;
163
+ static readonly RULE_wildcard = 52;
164
+ static readonly RULE_evaluateFallback = 53;
165
+ static readonly RULE_evaluateBranch = 54;
166
+ static readonly RULE_evaluateArguments = 55;
167
+ static readonly RULE_evaluateStatement = 56;
168
+ static readonly RULE_callArguments = 57;
169
+ static readonly RULE_protocolDeclaration = 58;
170
+ static readonly RULE_protocolBody = 59;
171
+ static readonly RULE_protocolComparator = 60;
172
+ static readonly RULE_defineStatement = 61;
173
+ static readonly RULE_requireStatement = 62;
174
+ static readonly RULE_stepDeclaration = 63;
175
+ static readonly RULE_stepBody = 64;
176
+ static readonly RULE_enumDeclaration = 65;
177
+ static readonly RULE_enumBody = 66;
178
+ static readonly RULE_enumAssignment = 67;
179
+ static readonly RULE_token = 68;
180
+ static readonly RULE_debuggerStatement = 69;
181
+ static readonly RULE_blockStatement = 70;
182
+ static readonly RULE_literal = 71;
183
+ static readonly RULE_valueInternal = 72;
184
+ static readonly RULE_lineEnd = 73;
185
+ static readonly RULE_customType = 74;
186
+ static readonly RULE_dataType = 75;
187
+ static readonly RULE_type = 76;
188
+ static readonly RULE_protocolType = 77;
189
+ static readonly RULE_arrayExpressionInternal = 78;
190
+ static readonly RULE_objectExpressionInternal = 79;
191
+ static readonly RULE_objectProperty = 80;
192
+ static readonly RULE_stringLiteral = 81;
193
+ static readonly RULE_numberLiteral = 82;
194
+ static readonly RULE_booleanLiteral = 83;
195
+ static readonly RULE_nullLiteral = 84;
196
+ static readonly RULE_undefinedLiteral = 85;
197
+ static readonly RULE_identifier = 86;
193
198
  static readonly ruleNames: string[];
194
199
  private static readonly _LITERAL_NAMES;
195
200
  private static readonly _SYMBOLIC_NAMES;
@@ -224,7 +229,9 @@ export declare class BattleScriptParser extends Parser {
224
229
  primaryExpression(): PrimaryExpressionContext;
225
230
  stateDeclaration(): StateDeclarationContext;
226
231
  stateBody(): StateBodyContext;
227
- eventDeclaration(): EventDeclarationContext;
232
+ stateModuleDeclaration(): StateModuleDeclarationContext;
233
+ stateModuleBody(): StateModuleBodyContext;
234
+ stateModuleEventDeclaration(): StateModuleEventDeclarationContext;
228
235
  afterDeclaration(): AfterDeclarationContext;
229
236
  everyDeclaration(): EveryDeclarationContext;
230
237
  limitClause(): LimitClauseContext;
@@ -266,7 +273,9 @@ export declare class BattleScriptParser extends Parser {
266
273
  stepBody(): StepBodyContext;
267
274
  enumDeclaration(): EnumDeclarationContext;
268
275
  enumBody(): EnumBodyContext;
276
+ enumAssignment(): EnumAssignmentContext;
269
277
  token(): TokenContext;
278
+ debuggerStatement(): DebuggerStatementContext;
270
279
  blockStatement(): BlockStatementContext;
271
280
  literal(): LiteralContext;
272
281
  valueInternal(): ValueInternalContext;
@@ -285,7 +294,6 @@ export declare class BattleScriptParser extends Parser {
285
294
  booleanLiteral(): BooleanLiteralContext;
286
295
  nullLiteral(): NullLiteralContext;
287
296
  undefinedLiteral(): UndefinedLiteralContext;
288
- expandedIdentifier(): ExpandedIdentifierContext;
289
297
  identifier(): IdentifierContext;
290
298
  sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
291
299
  private expression_sempred;
@@ -480,6 +488,7 @@ export declare class StatementContext extends ParserRuleContext {
480
488
  forStatement(): ForStatementContext | undefined;
481
489
  evaluateStatement(): EvaluateStatementContext | undefined;
482
490
  exportStatement(): ExportStatementContext | undefined;
491
+ debuggerStatement(): DebuggerStatementContext | undefined;
483
492
  comment(): CommentContext | undefined;
484
493
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
485
494
  get ruleIndex(): number;
@@ -690,9 +699,10 @@ export declare class PrimaryExpressionContext extends ParserRuleContext {
690
699
  }
691
700
  export declare class StateDeclarationContext extends ParserRuleContext {
692
701
  STATE(): TerminalNode;
693
- valueInternal(): ValueInternalContext;
694
702
  BRACES_START(): TerminalNode;
695
703
  BRACES_END(): TerminalNode;
704
+ expression(): ExpressionContext | undefined;
705
+ wildcard(): WildcardContext | undefined;
696
706
  stateBody(): StateBodyContext[];
697
707
  stateBody(i: number): StateBodyContext;
698
708
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -703,19 +713,43 @@ export declare class StateDeclarationContext extends ParserRuleContext {
703
713
  }
704
714
  export declare class StateBodyContext extends ParserRuleContext {
705
715
  statement(): StatementContext | undefined;
706
- eventDeclaration(): EventDeclarationContext | undefined;
716
+ stateModuleDeclaration(): StateModuleDeclarationContext | undefined;
717
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
718
+ get ruleIndex(): number;
719
+ enterRule(listener: BattleScriptListener): void;
720
+ exitRule(listener: BattleScriptListener): void;
721
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
722
+ }
723
+ export declare class StateModuleDeclarationContext extends ParserRuleContext {
724
+ MODULE(): TerminalNode;
725
+ BRACES_START(): TerminalNode;
726
+ BRACES_END(): TerminalNode;
727
+ expression(): ExpressionContext | undefined;
728
+ wildcard(): WildcardContext | undefined;
729
+ stateModuleBody(): StateModuleBodyContext[];
730
+ stateModuleBody(i: number): StateModuleBodyContext;
707
731
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
708
732
  get ruleIndex(): number;
709
733
  enterRule(listener: BattleScriptListener): void;
710
734
  exitRule(listener: BattleScriptListener): void;
711
735
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
712
736
  }
713
- export declare class EventDeclarationContext extends ParserRuleContext {
737
+ export declare class StateModuleBodyContext extends ParserRuleContext {
738
+ statement(): StatementContext | undefined;
739
+ stateModuleEventDeclaration(): StateModuleEventDeclarationContext | undefined;
740
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
741
+ get ruleIndex(): number;
742
+ enterRule(listener: BattleScriptListener): void;
743
+ exitRule(listener: BattleScriptListener): void;
744
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
745
+ }
746
+ export declare class StateModuleEventDeclarationContext extends ParserRuleContext {
714
747
  EVENT(): TerminalNode;
715
- valueInternal(): ValueInternalContext;
716
748
  functionParameters(): FunctionParametersContext;
717
749
  ARROW_OPERATOR(): TerminalNode;
718
750
  blockStatement(): BlockStatementContext;
751
+ expression(): ExpressionContext | undefined;
752
+ wildcard(): WildcardContext | undefined;
719
753
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
720
754
  get ruleIndex(): number;
721
755
  enterRule(listener: BattleScriptListener): void;
@@ -991,6 +1025,7 @@ export declare class EvaluateCaseContext extends ParserRuleContext {
991
1025
  PARENS_END(): TerminalNode;
992
1026
  ARROW_OPERATOR(): TerminalNode;
993
1027
  blockStatement(): BlockStatementContext;
1028
+ lineEnd(): LineEndContext;
994
1029
  evaluateCaseTest(): EvaluateCaseTestContext[];
995
1030
  evaluateCaseTest(i: number): EvaluateCaseTestContext;
996
1031
  COMMA(): TerminalNode[];
@@ -1021,6 +1056,7 @@ export declare class WildcardContext extends ParserRuleContext {
1021
1056
  export declare class EvaluateFallbackContext extends ParserRuleContext {
1022
1057
  FALLBACK(): TerminalNode;
1023
1058
  blockStatement(): BlockStatementContext;
1059
+ lineEnd(): LineEndContext;
1024
1060
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1025
1061
  get ruleIndex(): number;
1026
1062
  enterRule(listener: BattleScriptListener): void;
@@ -1030,6 +1066,7 @@ export declare class EvaluateFallbackContext extends ParserRuleContext {
1030
1066
  export declare class EvaluateBranchContext extends ParserRuleContext {
1031
1067
  evaluateCase(): EvaluateCaseContext | undefined;
1032
1068
  evaluateFallback(): EvaluateFallbackContext | undefined;
1069
+ comment(): CommentContext | undefined;
1033
1070
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1034
1071
  get ruleIndex(): number;
1035
1072
  enterRule(listener: BattleScriptListener): void;
@@ -1053,6 +1090,7 @@ export declare class EvaluateStatementContext extends ParserRuleContext {
1053
1090
  EVALUATE(): TerminalNode;
1054
1091
  BRACES_START(): TerminalNode;
1055
1092
  BRACES_END(): TerminalNode;
1093
+ lineEnd(): LineEndContext;
1056
1094
  evaluateArguments(): EvaluateArgumentsContext | undefined;
1057
1095
  evaluateBranch(): EvaluateBranchContext[];
1058
1096
  evaluateBranch(i: number): EvaluateBranchContext;
@@ -1174,6 +1212,7 @@ export declare class EnumBodyContext extends ParserRuleContext {
1174
1212
  identifier(): IdentifierContext | undefined;
1175
1213
  SEMI_COLON(): TerminalNode | undefined;
1176
1214
  COMMA(): TerminalNode | undefined;
1215
+ enumAssignment(): EnumAssignmentContext | undefined;
1177
1216
  comment(): CommentContext | undefined;
1178
1217
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1179
1218
  get ruleIndex(): number;
@@ -1181,6 +1220,18 @@ export declare class EnumBodyContext extends ParserRuleContext {
1181
1220
  exitRule(listener: BattleScriptListener): void;
1182
1221
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1183
1222
  }
1223
+ export declare class EnumAssignmentContext extends ParserRuleContext {
1224
+ identifier(): IdentifierContext;
1225
+ ASSIGN(): TerminalNode;
1226
+ literal(): LiteralContext;
1227
+ SEMI_COLON(): TerminalNode | undefined;
1228
+ COMMA(): TerminalNode | undefined;
1229
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1230
+ get ruleIndex(): number;
1231
+ enterRule(listener: BattleScriptListener): void;
1232
+ exitRule(listener: BattleScriptListener): void;
1233
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1234
+ }
1184
1235
  export declare class TokenContext extends ParserRuleContext {
1185
1236
  identifier(): IdentifierContext | undefined;
1186
1237
  primaryExpression(): PrimaryExpressionContext | undefined;
@@ -1190,6 +1241,15 @@ export declare class TokenContext extends ParserRuleContext {
1190
1241
  exitRule(listener: BattleScriptListener): void;
1191
1242
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1192
1243
  }
1244
+ export declare class DebuggerStatementContext extends ParserRuleContext {
1245
+ DEBUGGER(): TerminalNode;
1246
+ lineEnd(): LineEndContext;
1247
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
1248
+ get ruleIndex(): number;
1249
+ enterRule(listener: BattleScriptListener): void;
1250
+ exitRule(listener: BattleScriptListener): void;
1251
+ accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1252
+ }
1193
1253
  export declare class BlockStatementContext extends ParserRuleContext {
1194
1254
  BRACES_START(): TerminalNode;
1195
1255
  BRACES_END(): TerminalNode;
@@ -1214,8 +1274,7 @@ export declare class LiteralContext extends ParserRuleContext {
1214
1274
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1215
1275
  }
1216
1276
  export declare class ValueInternalContext extends ParserRuleContext {
1217
- literal(): LiteralContext | undefined;
1218
- token(): TokenContext | undefined;
1277
+ primaryExpression(): PrimaryExpressionContext;
1219
1278
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1220
1279
  get ruleIndex(): number;
1221
1280
  enterRule(listener: BattleScriptListener): void;
@@ -1253,7 +1312,7 @@ export declare class DataTypeContext extends ParserRuleContext {
1253
1312
  TYPE_NULL(): TerminalNode | undefined;
1254
1313
  TYPE_UNDEFINED(): TerminalNode | undefined;
1255
1314
  TYPE_VOID(): TerminalNode | undefined;
1256
- TYPE_ANY(): TerminalNode | undefined;
1315
+ ANY(): TerminalNode | undefined;
1257
1316
  dataType(): DataTypeContext | undefined;
1258
1317
  BRACKETS_START(): TerminalNode | undefined;
1259
1318
  BRACKETS_END(): TerminalNode | undefined;
@@ -1363,15 +1422,6 @@ export declare class UndefinedLiteralContext extends ParserRuleContext {
1363
1422
  exitRule(listener: BattleScriptListener): void;
1364
1423
  accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1365
1424
  }
1366
- export declare class ExpandedIdentifierContext extends ParserRuleContext {
1367
- IDENTIFIER(): TerminalNode | undefined;
1368
- STATE(): TerminalNode | undefined;
1369
- constructor(parent: ParserRuleContext | undefined, invokingState: number);
1370
- get ruleIndex(): number;
1371
- enterRule(listener: BattleScriptListener): void;
1372
- exitRule(listener: BattleScriptListener): void;
1373
- accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
1374
- }
1375
1425
  export declare class IdentifierContext extends ParserRuleContext {
1376
1426
  IDENTIFIER(): TerminalNode;
1377
1427
  constructor(parent: ParserRuleContext | undefined, invokingState: number);