@irrelon/battlescript 3.2.6 → 4.0.1
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/functionality.ts +16 -3
- package/bin/index.js +3767 -2232
- package/bin/index.js.map +1 -1
- package/dist/bin/functionality.cjs +43245 -0
- package/dist/bin/functionality.cjs.map +1 -0
- package/dist/bin/functionality.d.ts +5 -0
- package/dist/bin/functionality.d.ts.map +1 -1
- package/dist/bin/functionality.js +3769 -2234
- package/dist/bin/functionality.js.map +1 -1
- package/dist/exports/index.d.ts +0 -1
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts +50 -46
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts +54 -46
- 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 +4280 -2448
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4237 -2422
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/exportGen/enums/generateEnums.d.ts.map +1 -1
- 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 +10 -3
- package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +102 -101
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +59 -15
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +276 -213
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +37 -9
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
- package/dist/services/index.d.ts +2 -0
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/miniAst/BattleScriptToMiniAST.d.ts +8 -0
- package/dist/services/miniAst/BattleScriptToMiniAST.d.ts.map +1 -1
- package/dist/services/miniAst/binaryReader.d.ts.map +1 -1
- package/dist/services/miniAst/binaryWriter.d.ts.map +1 -1
- package/dist/services/miniAst/index.d.ts +0 -1
- package/dist/services/miniAst/index.d.ts.map +1 -1
- package/dist/services/miniAst/miniAstLayout.d.ts.map +1 -1
- package/dist/services/moduleResolver.d.ts +151 -0
- package/dist/services/moduleResolver.d.ts.map +1 -0
- package/dist/services/treeShaker/DependencyAnalyzer.d.ts +38 -0
- package/dist/services/treeShaker/DependencyAnalyzer.d.ts.map +1 -0
- package/dist/services/treeShaker/EntryPointCollector.d.ts +17 -0
- package/dist/services/treeShaker/EntryPointCollector.d.ts.map +1 -0
- package/dist/services/treeShaker/TreeShaker.d.ts +17 -0
- package/dist/services/treeShaker/TreeShaker.d.ts.map +1 -0
- package/dist/services/treeShaker/index.d.ts +6 -0
- package/dist/services/treeShaker/index.d.ts.map +1 -0
- package/dist/services/treeShaker/treeShake.d.ts +12 -0
- package/dist/services/treeShaker/treeShake.d.ts.map +1 -0
- package/dist/services/treeShaker/types.d.ts +50 -0
- package/dist/services/treeShaker/types.d.ts.map +1 -0
- package/dist/tests/ast/export.test.d.ts +2 -0
- package/dist/tests/ast/export.test.d.ts.map +1 -0
- package/dist/tests/ast/import.test.d.ts +2 -0
- package/dist/tests/ast/import.test.d.ts.map +1 -0
- package/dist/tests/ast/moduleResolver.test.d.ts +2 -0
- package/dist/tests/ast/moduleResolver.test.d.ts.map +1 -0
- package/dist/tests/ast/tree-shaking.test.d.ts +2 -0
- package/dist/tests/ast/tree-shaking.test.d.ts.map +1 -0
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/types/BattleScriptTransformerOptions.d.ts +1 -0
- package/dist/types/BattleScriptTransformerOptions.d.ts.map +1 -1
- package/dist/types/MiniAstJson.d.ts +18 -1
- package/dist/types/MiniAstJson.d.ts.map +1 -1
- package/dist/types/TokenMetaData.d.ts +2 -0
- package/dist/types/TokenMetaData.d.ts.map +1 -1
- package/dist/types/ast/nodes/AstNode.d.ts +2 -2
- package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/AstNodeBase.d.ts +2 -0
- package/dist/types/ast/nodes/AstNodeBase.d.ts.map +1 -1
- package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts +2 -1
- package/dist/types/ast/nodes/ConstantDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EndStatementNode.d.ts +1 -0
- package/dist/types/ast/nodes/EndStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EnumDeclarationNode.d.ts +2 -1
- package/dist/types/ast/nodes/EnumDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ExportNamedDeclarationNode.d.ts +32 -0
- package/dist/types/ast/nodes/ExportNamedDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ExportSpecifierNode.d.ts +27 -0
- package/dist/types/ast/nodes/ExportSpecifierNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts +2 -1
- package/dist/types/ast/nodes/FunctionDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts +2 -1
- package/dist/types/ast/nodes/FunctionDefinitionNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ImportDeclarationNode.d.ts +4 -2
- package/dist/types/ast/nodes/ImportDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ImportSpecifierNode.d.ts +27 -0
- package/dist/types/ast/nodes/ImportSpecifierNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/IncludeStatementNode.d.ts +13 -0
- package/dist/types/ast/nodes/IncludeStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/InterfaceNode.d.ts +2 -1
- package/dist/types/ast/nodes/InterfaceNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/OffsetStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ParityDeclarationNode.d.ts +12 -0
- package/dist/types/ast/nodes/ParityDeclarationNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ProtocolOpStatementNode.d.ts +1 -1
- package/dist/types/ast/nodes/ProtocolOpStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/ProtocolReadTypeNode.d.ts +1 -1
- package/dist/types/ast/nodes/ProtocolReadTypeNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/RootNode.d.ts +1 -0
- package/dist/types/ast/nodes/RootNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/RuleStatementNode.d.ts +4 -4
- package/dist/types/ast/nodes/RuleStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts +2 -1
- package/dist/types/ast/nodes/StateDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/VariableDeclarationNode.d.ts +2 -1
- package/dist/types/ast/nodes/VariableDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/index.d.ts +5 -1
- package/dist/types/ast/nodes/index.d.ts.map +1 -1
- package/package.json +77 -72
- package/dist/exports/typescript/enums/EnumOpCode.d.ts +0 -28
- package/dist/exports/typescript/enums/EnumOpCode.d.ts.map +0 -1
- package/dist/scripts/exportGen/enums/opCodes.d.ts +0 -2
- package/dist/scripts/exportGen/enums/opCodes.d.ts.map +0 -1
- package/dist/services/miniAst/miniAstInterpreter.d.ts +0 -17
- package/dist/services/miniAst/miniAstInterpreter.d.ts.map +0 -1
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts +0 -15
- package/dist/types/ast/nodes/EventDeclarationNode.d.ts.map +0 -1
- package/dist/types/ast/nodes/ParityStatementNode.d.ts +0 -12
- package/dist/types/ast/nodes/ParityStatementNode.d.ts.map +0 -1
|
@@ -15,205 +15,210 @@ export declare class BattleScriptParser extends Parser {
|
|
|
15
15
|
static readonly PURE = 4;
|
|
16
16
|
static readonly DECLARE = 5;
|
|
17
17
|
static readonly IMPORT = 6;
|
|
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
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
18
|
+
static readonly INCLUDE = 7;
|
|
19
|
+
static readonly EXPORT = 8;
|
|
20
|
+
static readonly USE = 9;
|
|
21
|
+
static readonly FROM = 10;
|
|
22
|
+
static readonly NAMESPACE = 11;
|
|
23
|
+
static readonly PROGRAM = 12;
|
|
24
|
+
static readonly EXPOSE = 13;
|
|
25
|
+
static readonly GROUP = 14;
|
|
26
|
+
static readonly DEFAULT = 15;
|
|
27
|
+
static readonly SWITCH = 16;
|
|
28
|
+
static readonly FUNCTION = 17;
|
|
29
|
+
static readonly INTERFACE = 18;
|
|
30
|
+
static readonly EXTENDS = 19;
|
|
31
|
+
static readonly STATE = 20;
|
|
32
|
+
static readonly MODULE = 21;
|
|
33
|
+
static readonly EVENT = 22;
|
|
34
|
+
static readonly IF = 23;
|
|
35
|
+
static readonly ELSE = 24;
|
|
36
|
+
static readonly RETURN = 25;
|
|
37
|
+
static readonly EVERY = 26;
|
|
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;
|
|
119
120
|
static readonly RULE_root = 0;
|
|
120
121
|
static readonly RULE_importDeclaration = 1;
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
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
|
|
193
|
-
static readonly
|
|
194
|
-
static readonly
|
|
195
|
-
static readonly
|
|
196
|
-
static readonly
|
|
197
|
-
static readonly
|
|
198
|
-
static readonly
|
|
199
|
-
static readonly
|
|
200
|
-
static readonly
|
|
201
|
-
static readonly
|
|
202
|
-
static readonly
|
|
203
|
-
static readonly
|
|
204
|
-
static readonly
|
|
205
|
-
static readonly
|
|
206
|
-
static readonly
|
|
207
|
-
static readonly
|
|
208
|
-
static readonly
|
|
209
|
-
static readonly
|
|
210
|
-
static readonly
|
|
211
|
-
static readonly
|
|
212
|
-
static readonly
|
|
213
|
-
static readonly
|
|
214
|
-
static readonly
|
|
215
|
-
static readonly
|
|
216
|
-
static readonly
|
|
122
|
+
static readonly RULE_includeStatement = 2;
|
|
123
|
+
static readonly RULE_importNative = 3;
|
|
124
|
+
static readonly RULE_importExternal = 4;
|
|
125
|
+
static readonly RULE_importSpecifier = 5;
|
|
126
|
+
static readonly RULE_programDeclaration = 6;
|
|
127
|
+
static readonly RULE_programProperty = 7;
|
|
128
|
+
static readonly RULE_exposeDeclaration = 8;
|
|
129
|
+
static readonly RULE_groupDeclaration = 9;
|
|
130
|
+
static readonly RULE_configProperty = 10;
|
|
131
|
+
static readonly RULE_configPropertyBody = 11;
|
|
132
|
+
static readonly RULE_rootBody = 12;
|
|
133
|
+
static readonly RULE_interfaceDeclaration = 13;
|
|
134
|
+
static readonly RULE_interfaceProperty = 14;
|
|
135
|
+
static readonly RULE_statement = 15;
|
|
136
|
+
static readonly RULE_exportStatement = 16;
|
|
137
|
+
static readonly RULE_exportNamed = 17;
|
|
138
|
+
static readonly RULE_exportSpecifier = 18;
|
|
139
|
+
static readonly RULE_exportInline = 19;
|
|
140
|
+
static readonly RULE_exportReexport = 20;
|
|
141
|
+
static readonly RULE_expressionStatement = 21;
|
|
142
|
+
static readonly RULE_namespacedIdentifier = 22;
|
|
143
|
+
static readonly RULE_expression = 23;
|
|
144
|
+
static readonly RULE_primaryExpression = 24;
|
|
145
|
+
static readonly RULE_stateDeclaration = 25;
|
|
146
|
+
static readonly RULE_stateBody = 26;
|
|
147
|
+
static readonly RULE_stateModuleDeclaration = 27;
|
|
148
|
+
static readonly RULE_stateModuleBody = 28;
|
|
149
|
+
static readonly RULE_stateModuleEventDeclaration = 29;
|
|
150
|
+
static readonly RULE_afterDeclaration = 30;
|
|
151
|
+
static readonly RULE_everyDeclaration = 31;
|
|
152
|
+
static readonly RULE_limitClause = 32;
|
|
153
|
+
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;
|
|
217
222
|
static readonly ruleNames: string[];
|
|
218
223
|
private static readonly _LITERAL_NAMES;
|
|
219
224
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -226,8 +231,10 @@ export declare class BattleScriptParser extends Parser {
|
|
|
226
231
|
constructor(input: TokenStream);
|
|
227
232
|
root(): RootContext;
|
|
228
233
|
importDeclaration(): ImportDeclarationContext;
|
|
234
|
+
includeStatement(): IncludeStatementContext;
|
|
229
235
|
importNative(): ImportNativeContext;
|
|
230
236
|
importExternal(): ImportExternalContext;
|
|
237
|
+
importSpecifier(): ImportSpecifierContext;
|
|
231
238
|
programDeclaration(): ProgramDeclarationContext;
|
|
232
239
|
programProperty(): ProgramPropertyContext;
|
|
233
240
|
exposeDeclaration(): ExposeDeclarationContext;
|
|
@@ -239,8 +246,10 @@ export declare class BattleScriptParser extends Parser {
|
|
|
239
246
|
interfaceProperty(): InterfacePropertyContext;
|
|
240
247
|
statement(): StatementContext;
|
|
241
248
|
exportStatement(): ExportStatementContext;
|
|
242
|
-
|
|
243
|
-
|
|
249
|
+
exportNamed(): ExportNamedContext;
|
|
250
|
+
exportSpecifier(): ExportSpecifierContext;
|
|
251
|
+
exportInline(): ExportInlineContext;
|
|
252
|
+
exportReexport(): ExportReexportContext;
|
|
244
253
|
expressionStatement(): ExpressionStatementContext;
|
|
245
254
|
namespacedIdentifier(): NamespacedIdentifierContext;
|
|
246
255
|
expression(): ExpressionContext;
|
|
@@ -295,7 +304,7 @@ export declare class BattleScriptParser extends Parser {
|
|
|
295
304
|
rewindStatement(): RewindStatementContext;
|
|
296
305
|
stepDeclaration(): StepDeclarationContext;
|
|
297
306
|
protocolPhase(): ProtocolPhaseContext;
|
|
298
|
-
|
|
307
|
+
parityDeclaration(): ParityDeclarationContext;
|
|
299
308
|
ruleStatement(): RuleStatementContext;
|
|
300
309
|
protocolBody(): ProtocolBodyContext;
|
|
301
310
|
stepBody(): StepBodyContext;
|
|
@@ -355,6 +364,16 @@ export declare class ImportDeclarationContext extends ParserRuleContext {
|
|
|
355
364
|
exitRule(listener: BattleScriptListener): void;
|
|
356
365
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
357
366
|
}
|
|
367
|
+
export declare class IncludeStatementContext extends ParserRuleContext {
|
|
368
|
+
INCLUDE(): TerminalNode;
|
|
369
|
+
stringLiteral(): StringLiteralContext;
|
|
370
|
+
lineEnd(): LineEndContext;
|
|
371
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
372
|
+
get ruleIndex(): number;
|
|
373
|
+
enterRule(listener: BattleScriptListener): void;
|
|
374
|
+
exitRule(listener: BattleScriptListener): void;
|
|
375
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
376
|
+
}
|
|
358
377
|
export declare class ImportNativeContext extends ParserRuleContext {
|
|
359
378
|
IMPORT(): TerminalNode;
|
|
360
379
|
identifier(): IdentifierContext[];
|
|
@@ -372,10 +391,11 @@ export declare class ImportExternalContext extends ParserRuleContext {
|
|
|
372
391
|
NAMESPACE(): TerminalNode | undefined;
|
|
373
392
|
stringLiteral(): StringLiteralContext;
|
|
374
393
|
lineEnd(): LineEndContext;
|
|
375
|
-
identifier(): IdentifierContext
|
|
376
|
-
identifier(i: number): IdentifierContext;
|
|
394
|
+
identifier(): IdentifierContext | undefined;
|
|
377
395
|
FROM(): TerminalNode | undefined;
|
|
378
396
|
BRACES_START(): TerminalNode | undefined;
|
|
397
|
+
importSpecifier(): ImportSpecifierContext[];
|
|
398
|
+
importSpecifier(i: number): ImportSpecifierContext;
|
|
379
399
|
BRACES_END(): TerminalNode | undefined;
|
|
380
400
|
COMMA(): TerminalNode[];
|
|
381
401
|
COMMA(i: number): TerminalNode;
|
|
@@ -385,6 +405,16 @@ export declare class ImportExternalContext extends ParserRuleContext {
|
|
|
385
405
|
exitRule(listener: BattleScriptListener): void;
|
|
386
406
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
387
407
|
}
|
|
408
|
+
export declare class ImportSpecifierContext extends ParserRuleContext {
|
|
409
|
+
identifier(): IdentifierContext[];
|
|
410
|
+
identifier(i: number): IdentifierContext;
|
|
411
|
+
AS(): TerminalNode | undefined;
|
|
412
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
413
|
+
get ruleIndex(): number;
|
|
414
|
+
enterRule(listener: BattleScriptListener): void;
|
|
415
|
+
exitRule(listener: BattleScriptListener): void;
|
|
416
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
417
|
+
}
|
|
388
418
|
export declare class ProgramDeclarationContext extends ParserRuleContext {
|
|
389
419
|
PROGRAM(): TerminalNode;
|
|
390
420
|
BRACES_START(): TerminalNode;
|
|
@@ -463,6 +493,8 @@ export declare class ConfigPropertyBodyContext extends ParserRuleContext {
|
|
|
463
493
|
}
|
|
464
494
|
export declare class RootBodyContext extends ParserRuleContext {
|
|
465
495
|
importDeclaration(): ImportDeclarationContext | undefined;
|
|
496
|
+
includeStatement(): IncludeStatementContext | undefined;
|
|
497
|
+
exportStatement(): ExportStatementContext | undefined;
|
|
466
498
|
interfaceDeclaration(): InterfaceDeclarationContext | undefined;
|
|
467
499
|
exposeDeclaration(): ExposeDeclarationContext | undefined;
|
|
468
500
|
programDeclaration(): ProgramDeclarationContext | undefined;
|
|
@@ -517,7 +549,6 @@ export declare class StatementContext extends ParserRuleContext {
|
|
|
517
549
|
catchStatement(): CatchStatementContext | undefined;
|
|
518
550
|
forStatement(): ForStatementContext | undefined;
|
|
519
551
|
evaluateStatement(): EvaluateStatementContext | undefined;
|
|
520
|
-
exportStatement(): ExportStatementContext | undefined;
|
|
521
552
|
debuggerStatement(): DebuggerStatementContext | undefined;
|
|
522
553
|
comment(): CommentContext | undefined;
|
|
523
554
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
@@ -527,20 +558,20 @@ export declare class StatementContext extends ParserRuleContext {
|
|
|
527
558
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
528
559
|
}
|
|
529
560
|
export declare class ExportStatementContext extends ParserRuleContext {
|
|
530
|
-
|
|
531
|
-
|
|
561
|
+
exportNamed(): ExportNamedContext | undefined;
|
|
562
|
+
exportInline(): ExportInlineContext | undefined;
|
|
563
|
+
exportReexport(): ExportReexportContext | undefined;
|
|
532
564
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
533
565
|
get ruleIndex(): number;
|
|
534
566
|
enterRule(listener: BattleScriptListener): void;
|
|
535
567
|
exitRule(listener: BattleScriptListener): void;
|
|
536
568
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
537
569
|
}
|
|
538
|
-
export declare class
|
|
570
|
+
export declare class ExportNamedContext extends ParserRuleContext {
|
|
539
571
|
EXPORT(): TerminalNode;
|
|
540
|
-
NAMESPACE(): TerminalNode;
|
|
541
|
-
identifier(): IdentifierContext[];
|
|
542
|
-
identifier(i: number): IdentifierContext;
|
|
543
572
|
BRACES_START(): TerminalNode;
|
|
573
|
+
exportSpecifier(): ExportSpecifierContext[];
|
|
574
|
+
exportSpecifier(i: number): ExportSpecifierContext;
|
|
544
575
|
BRACES_END(): TerminalNode;
|
|
545
576
|
lineEnd(): LineEndContext;
|
|
546
577
|
COMMA(): TerminalNode[];
|
|
@@ -551,10 +582,41 @@ export declare class ExportNamespaceContext extends ParserRuleContext {
|
|
|
551
582
|
exitRule(listener: BattleScriptListener): void;
|
|
552
583
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
553
584
|
}
|
|
554
|
-
export declare class
|
|
585
|
+
export declare class ExportSpecifierContext extends ParserRuleContext {
|
|
586
|
+
identifier(): IdentifierContext[];
|
|
587
|
+
identifier(i: number): IdentifierContext;
|
|
588
|
+
AS(): TerminalNode | undefined;
|
|
589
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
590
|
+
get ruleIndex(): number;
|
|
591
|
+
enterRule(listener: BattleScriptListener): void;
|
|
592
|
+
exitRule(listener: BattleScriptListener): void;
|
|
593
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
594
|
+
}
|
|
595
|
+
export declare class ExportInlineContext extends ParserRuleContext {
|
|
555
596
|
EXPORT(): TerminalNode;
|
|
556
|
-
|
|
597
|
+
variableDeclaration(): VariableDeclarationContext | undefined;
|
|
598
|
+
functionDefinition(): FunctionDefinitionContext | undefined;
|
|
599
|
+
functionDeclaration(): FunctionDeclarationContext | undefined;
|
|
600
|
+
enumDeclaration(): EnumDeclarationContext | undefined;
|
|
601
|
+
interfaceDeclaration(): InterfaceDeclarationContext | undefined;
|
|
602
|
+
stateDeclaration(): StateDeclarationContext | undefined;
|
|
603
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
604
|
+
get ruleIndex(): number;
|
|
605
|
+
enterRule(listener: BattleScriptListener): void;
|
|
606
|
+
exitRule(listener: BattleScriptListener): void;
|
|
607
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
608
|
+
}
|
|
609
|
+
export declare class ExportReexportContext extends ParserRuleContext {
|
|
610
|
+
EXPORT(): TerminalNode;
|
|
611
|
+
BRACES_START(): TerminalNode;
|
|
612
|
+
exportSpecifier(): ExportSpecifierContext[];
|
|
613
|
+
exportSpecifier(i: number): ExportSpecifierContext;
|
|
614
|
+
BRACES_END(): TerminalNode;
|
|
615
|
+
FROM(): TerminalNode;
|
|
616
|
+
stringLiteral(): StringLiteralContext;
|
|
557
617
|
lineEnd(): LineEndContext;
|
|
618
|
+
COMMA(): TerminalNode[];
|
|
619
|
+
COMMA(i: number): TerminalNode;
|
|
558
620
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
559
621
|
get ruleIndex(): number;
|
|
560
622
|
enterRule(listener: BattleScriptListener): void;
|
|
@@ -1272,7 +1334,7 @@ export declare class ProtocolPhaseContext extends ParserRuleContext {
|
|
|
1272
1334
|
exitRule(listener: BattleScriptListener): void;
|
|
1273
1335
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1274
1336
|
}
|
|
1275
|
-
export declare class
|
|
1337
|
+
export declare class ParityDeclarationContext extends ParserRuleContext {
|
|
1276
1338
|
PARITY(): TerminalNode;
|
|
1277
1339
|
BRACES_START(): TerminalNode;
|
|
1278
1340
|
BRACES_END(): TerminalNode;
|
|
@@ -1311,9 +1373,10 @@ export declare class ProtocolBodyContext extends ParserRuleContext {
|
|
|
1311
1373
|
forwardStatement(): ForwardStatementContext | undefined;
|
|
1312
1374
|
offsetStatement(): OffsetStatementContext | undefined;
|
|
1313
1375
|
rewindStatement(): RewindStatementContext | undefined;
|
|
1314
|
-
|
|
1376
|
+
parityDeclaration(): ParityDeclarationContext | undefined;
|
|
1315
1377
|
stepDeclaration(): StepDeclarationContext | undefined;
|
|
1316
1378
|
ruleStatement(): RuleStatementContext | undefined;
|
|
1379
|
+
endStatement(): EndStatementContext | undefined;
|
|
1317
1380
|
comment(): CommentContext | undefined;
|
|
1318
1381
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1319
1382
|
get ruleIndex(): number;
|