@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.
- package/bin/index.js +24682 -24130
- package/bin/index.js.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts +54 -51
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts +6 -7
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts.map +1 -1
- package/dist/exports/typescript/helpers/miniAstLayout.d.ts.map +1 -1
- package/dist/index.cjs +24699 -24141
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24688 -24139
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/exportGen/helpers/generateHelpers.d.ts.map +1 -1
- package/dist/scripts/regenerateTestBinaries.d.ts +2 -0
- package/dist/scripts/regenerateTestBinaries.d.ts.map +1 -0
- package/dist/services/fullAst/BattleScriptFromAST.d.ts +6 -2
- package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
- package/dist/services/fullAst/BattleScriptToAST.d.ts +8 -3
- package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +99 -97
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +49 -16
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +226 -176
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +31 -10
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
- package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
- package/dist/services/miniAst/binaryTypeToByteSize.d.ts +1 -1
- package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -0
- package/dist/types/ast/nodes/AstNode.d.ts +3 -2
- package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/DebuggerStatementNode.d.ts +12 -0
- package/dist/types/ast/nodes/DebuggerStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/EnumAssignmentNode.d.ts +14 -0
- package/dist/types/ast/nodes/EnumAssignmentNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/EvaluateCaseNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EvaluateFallbackNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EvaluateStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts +4 -4
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts +2 -2
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/StateModuleDeclarationNode.d.ts +14 -0
- package/dist/types/ast/nodes/StateModuleDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/StateModuleEventDeclarationNode.d.ts +15 -0
- package/dist/types/ast/nodes/StateModuleEventDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/index.d.ts +4 -1
- package/dist/types/ast/nodes/index.d.ts.map +1 -1
- package/dist/types/ast/unions/BlockStatementUnion.d.ts +2 -2
- package/dist/types/ast/unions/BlockStatementUnion.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/services/byteCode/byteCodeInterpreter.d.ts +0 -17
- package/dist/services/byteCode/byteCodeInterpreter.d.ts.map +0 -1
- package/dist/services/byteCode/disassembler.d.ts +0 -3
- package/dist/services/byteCode/disassembler.d.ts.map +0 -1
- package/dist/services/byteCode/index.d.ts +0 -3
- package/dist/services/byteCode/index.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/basic1-out.d.ts +0 -20
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/basic1-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/binary-expression1-out.d.ts +0 -20
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/binary-expression1-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression1-out.d.ts +0 -20
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression1-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression2-out.d.ts +0 -20
- package/dist/tests/bytecode/fixtures/ASSIGNMENT_EXPRESSION/member-expression2-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/IDENTIFIER/basic1-out.d.ts +0 -21
- package/dist/tests/bytecode/fixtures/IDENTIFIER/basic1-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/LITERAL/basic1-int-out.d.ts +0 -21
- package/dist/tests/bytecode/fixtures/LITERAL/basic1-int-out.d.ts.map +0 -1
- package/dist/tests/bytecode/fixtures/MEMBER_EXPRESSION/basic1-out.d.ts +0 -20
- package/dist/tests/bytecode/fixtures/MEMBER_EXPRESSION/basic1-out.d.ts.map +0 -1
- package/dist/tests/bytecode/interpreter.test.d.ts +0 -2
- package/dist/tests/bytecode/interpreter.test.d.ts.map +0 -1
- package/dist/tests/bytecode/utils.d.ts +0 -21
- package/dist/tests/bytecode/utils.d.ts.map +0 -1
- package/dist/types/ast/nodes/TransportStatementNode.d.ts +0 -13
- package/dist/types/ast/nodes/TransportStatementNode.d.ts.map +0 -1
- package/dist/types/byteCode/ByteCodeInstruction.d.ts +0 -8
- package/dist/types/byteCode/ByteCodeInstruction.d.ts.map +0 -1
- package/dist/types/byteCode/ByteCodeJson.d.ts +0 -6
- 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
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
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
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
173
|
-
static readonly
|
|
174
|
-
static readonly
|
|
175
|
-
static readonly
|
|
176
|
-
static readonly
|
|
177
|
-
static readonly
|
|
178
|
-
static readonly
|
|
179
|
-
static readonly
|
|
180
|
-
static readonly
|
|
181
|
-
static readonly
|
|
182
|
-
static readonly
|
|
183
|
-
static readonly
|
|
184
|
-
static readonly
|
|
185
|
-
static readonly
|
|
186
|
-
static readonly
|
|
187
|
-
static readonly
|
|
188
|
-
static readonly
|
|
189
|
-
static readonly
|
|
190
|
-
static readonly
|
|
191
|
-
static readonly
|
|
192
|
-
static readonly
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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);
|