@irrelon/battlescript 3.2.3 → 3.2.6
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 +26364 -24686
- package/bin/index.js.map +1 -1
- package/bin/index.ts +12 -1
- package/dist/bin/functionality.js +41691 -0
- package/dist/bin/functionality.js.map +1 -0
- package/dist/bin/index.d.ts +2 -1
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts +9 -1
- package/dist/exports/typescript/enums/EnumNodeKind.d.ts.map +1 -1
- package/dist/exports/typescript/enums/EnumNodeProp.d.ts +7 -1
- 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 +26406 -24686
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26381 -24687
- package/dist/index.mjs.map +1 -1
- package/dist/services/fullAst/BattleScriptFromAST.d.ts +9 -1
- package/dist/services/fullAst/BattleScriptFromAST.d.ts.map +1 -1
- package/dist/services/fullAst/BattleScriptToAST.d.ts +10 -2
- package/dist/services/fullAst/BattleScriptToAST.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts +71 -63
- package/dist/services/grammar/ts/language/BattleScriptLexer.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts +132 -11
- package/dist/services/grammar/ts/language/BattleScriptListener.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts +292 -111
- package/dist/services/grammar/ts/language/BattleScriptParser.d.ts.map +1 -1
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts +84 -7
- package/dist/services/grammar/ts/language/BattleScriptVisitor.d.ts.map +1 -1
- package/dist/services/index.d.ts +4 -0
- package/dist/services/index.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 -1
- package/dist/types/ast/nodes/AstNode.d.ts +2 -3
- package/dist/types/ast/nodes/AstNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/DefineStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/EndStatementNode.d.ts +12 -0
- package/dist/types/ast/nodes/EndStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ForwardStatementNode.d.ts +11 -0
- package/dist/types/ast/nodes/ForwardStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/OffsetStatementNode.d.ts +11 -0
- package/dist/types/ast/nodes/OffsetStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ParityStatementNode.d.ts +12 -0
- package/dist/types/ast/nodes/ParityStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ProtocolOpStatementNode.d.ts +13 -0
- package/dist/types/ast/nodes/ProtocolOpStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ProtocolReadTypeNode.d.ts +14 -0
- package/dist/types/ast/nodes/ProtocolReadTypeNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/ProtocolTypeNode.d.ts +1 -0
- package/dist/types/ast/nodes/ProtocolTypeNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/RequireStatementNode.d.ts +1 -0
- package/dist/types/ast/nodes/RequireStatementNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/RewindStatementNode.d.ts +11 -0
- package/dist/types/ast/nodes/RewindStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/RuleStatementNode.d.ts +19 -0
- package/dist/types/ast/nodes/RuleStatementNode.d.ts.map +1 -0
- package/dist/types/ast/nodes/StepDeclarationNode.d.ts +2 -2
- package/dist/types/ast/nodes/StepDeclarationNode.d.ts.map +1 -1
- package/dist/types/ast/nodes/index.d.ts +8 -0
- package/dist/types/ast/nodes/index.d.ts.map +1 -1
- package/dist/types/ast/unions/index.d.ts +10 -8
- package/dist/types/ast/unions/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -45,69 +45,77 @@ export declare class BattleScriptParser extends Parser {
|
|
|
45
45
|
static readonly FALLBACK = 34;
|
|
46
46
|
static readonly CATCH = 35;
|
|
47
47
|
static readonly AS = 36;
|
|
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
|
|
48
|
+
static readonly ENUM = 37;
|
|
49
|
+
static readonly ANY = 38;
|
|
50
|
+
static readonly PROTOCOL = 39;
|
|
51
|
+
static readonly DEFINE = 40;
|
|
52
|
+
static readonly REQUIRE = 41;
|
|
53
|
+
static readonly TERMINATE = 42;
|
|
54
|
+
static readonly STEP = 43;
|
|
55
|
+
static readonly DECODE = 44;
|
|
56
|
+
static readonly ENCODE = 45;
|
|
57
|
+
static readonly END = 46;
|
|
58
|
+
static readonly FORWARD = 47;
|
|
59
|
+
static readonly REWIND = 48;
|
|
60
|
+
static readonly OFFSET = 49;
|
|
61
|
+
static readonly XOR = 50;
|
|
62
|
+
static readonly XNOR = 51;
|
|
63
|
+
static readonly BITS = 52;
|
|
64
|
+
static readonly BYTES = 53;
|
|
65
|
+
static readonly RULE = 54;
|
|
66
|
+
static readonly PARITY = 55;
|
|
67
|
+
static readonly CONST = 56;
|
|
68
|
+
static readonly TYPE_OBJECT = 57;
|
|
69
|
+
static readonly TYPE_ARRAY = 58;
|
|
70
|
+
static readonly TYPE_STRING = 59;
|
|
71
|
+
static readonly TYPE_INT = 60;
|
|
72
|
+
static readonly TYPE_UINT = 61;
|
|
73
|
+
static readonly TYPE_FLOAT = 62;
|
|
74
|
+
static readonly TYPE_DOUBLE = 63;
|
|
75
|
+
static readonly TYPE_BOOLEAN = 64;
|
|
76
|
+
static readonly TYPE_NULL = 65;
|
|
77
|
+
static readonly TYPE_VOID = 66;
|
|
78
|
+
static readonly TYPE_UNDEFINED = 67;
|
|
79
|
+
static readonly NUMBER = 68;
|
|
80
|
+
static readonly BOOLEAN = 69;
|
|
81
|
+
static readonly STRING = 70;
|
|
82
|
+
static readonly COMMENT = 71;
|
|
83
|
+
static readonly ARROW_OPERATOR = 72;
|
|
84
|
+
static readonly INCREMENT = 73;
|
|
85
|
+
static readonly DECREMENT = 74;
|
|
86
|
+
static readonly PLUS = 75;
|
|
87
|
+
static readonly MINUS = 76;
|
|
88
|
+
static readonly DIVIDE = 77;
|
|
89
|
+
static readonly MULTIPLY = 78;
|
|
90
|
+
static readonly REMAINDER = 79;
|
|
91
|
+
static readonly QUESTION_MARK = 80;
|
|
92
|
+
static readonly ASSIGN = 81;
|
|
93
|
+
static readonly PLUS_ASSIGN = 82;
|
|
94
|
+
static readonly MINUS_ASSIGN = 83;
|
|
95
|
+
static readonly AND = 84;
|
|
96
|
+
static readonly OR = 85;
|
|
97
|
+
static readonly NOT = 86;
|
|
98
|
+
static readonly EQUALS = 87;
|
|
99
|
+
static readonly NOT_EQUALS = 88;
|
|
100
|
+
static readonly GT = 89;
|
|
101
|
+
static readonly LT = 90;
|
|
102
|
+
static readonly GTE = 91;
|
|
103
|
+
static readonly LTE = 92;
|
|
104
|
+
static readonly REST = 93;
|
|
105
|
+
static readonly PERIOD = 94;
|
|
106
|
+
static readonly COMMA = 95;
|
|
107
|
+
static readonly WILDCARD = 96;
|
|
108
|
+
static readonly PARENS_START = 97;
|
|
109
|
+
static readonly PARENS_END = 98;
|
|
110
|
+
static readonly BRACES_START = 99;
|
|
111
|
+
static readonly BRACES_END = 100;
|
|
112
|
+
static readonly BRACKETS_START = 101;
|
|
113
|
+
static readonly BRACKETS_END = 102;
|
|
114
|
+
static readonly DOUBLE_COLON = 103;
|
|
115
|
+
static readonly SEMI_COLON = 104;
|
|
116
|
+
static readonly COLON = 105;
|
|
117
|
+
static readonly IDENTIFIER = 106;
|
|
118
|
+
static readonly WS = 107;
|
|
111
119
|
static readonly RULE_root = 0;
|
|
112
120
|
static readonly RULE_importDeclaration = 1;
|
|
113
121
|
static readonly RULE_importNative = 2;
|
|
@@ -167,34 +175,45 @@ export declare class BattleScriptParser extends Parser {
|
|
|
167
175
|
static readonly RULE_evaluateStatement = 56;
|
|
168
176
|
static readonly RULE_callArguments = 57;
|
|
169
177
|
static readonly RULE_protocolDeclaration = 58;
|
|
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
|
|
178
|
+
static readonly RULE_protocolComparator = 59;
|
|
179
|
+
static readonly RULE_defineStatement = 60;
|
|
180
|
+
static readonly RULE_requireStatement = 61;
|
|
181
|
+
static readonly RULE_terminateFlag = 62;
|
|
182
|
+
static readonly RULE_protocolOpStatement = 63;
|
|
183
|
+
static readonly RULE_booleanOp = 64;
|
|
184
|
+
static readonly RULE_forwardStatement = 65;
|
|
185
|
+
static readonly RULE_offsetStatement = 66;
|
|
186
|
+
static readonly RULE_rewindStatement = 67;
|
|
187
|
+
static readonly RULE_stepDeclaration = 68;
|
|
188
|
+
static readonly RULE_protocolPhase = 69;
|
|
189
|
+
static readonly RULE_parityStatement = 70;
|
|
190
|
+
static readonly RULE_ruleStatement = 71;
|
|
191
|
+
static readonly RULE_protocolBody = 72;
|
|
192
|
+
static readonly RULE_stepBody = 73;
|
|
193
|
+
static readonly RULE_endStatement = 74;
|
|
194
|
+
static readonly RULE_enumDeclaration = 75;
|
|
195
|
+
static readonly RULE_enumBody = 76;
|
|
196
|
+
static readonly RULE_enumAssignment = 77;
|
|
197
|
+
static readonly RULE_token = 78;
|
|
198
|
+
static readonly RULE_debuggerStatement = 79;
|
|
199
|
+
static readonly RULE_blockStatement = 80;
|
|
200
|
+
static readonly RULE_literal = 81;
|
|
201
|
+
static readonly RULE_valueInternal = 82;
|
|
202
|
+
static readonly RULE_lineEnd = 83;
|
|
203
|
+
static readonly RULE_customType = 84;
|
|
204
|
+
static readonly RULE_dataType = 85;
|
|
205
|
+
static readonly RULE_type = 86;
|
|
206
|
+
static readonly RULE_protocolType = 87;
|
|
207
|
+
static readonly RULE_protocolReadType = 88;
|
|
208
|
+
static readonly RULE_arrayExpressionInternal = 89;
|
|
209
|
+
static readonly RULE_objectExpressionInternal = 90;
|
|
210
|
+
static readonly RULE_objectProperty = 91;
|
|
211
|
+
static readonly RULE_stringLiteral = 92;
|
|
212
|
+
static readonly RULE_numberLiteral = 93;
|
|
213
|
+
static readonly RULE_booleanLiteral = 94;
|
|
214
|
+
static readonly RULE_nullLiteral = 95;
|
|
215
|
+
static readonly RULE_undefinedLiteral = 96;
|
|
216
|
+
static readonly RULE_identifier = 97;
|
|
198
217
|
static readonly ruleNames: string[];
|
|
199
218
|
private static readonly _LITERAL_NAMES;
|
|
200
219
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -265,12 +284,22 @@ export declare class BattleScriptParser extends Parser {
|
|
|
265
284
|
evaluateStatement(): EvaluateStatementContext;
|
|
266
285
|
callArguments(): CallArgumentsContext;
|
|
267
286
|
protocolDeclaration(): ProtocolDeclarationContext;
|
|
268
|
-
protocolBody(): ProtocolBodyContext;
|
|
269
287
|
protocolComparator(): ProtocolComparatorContext;
|
|
270
288
|
defineStatement(): DefineStatementContext;
|
|
271
289
|
requireStatement(): RequireStatementContext;
|
|
290
|
+
terminateFlag(): TerminateFlagContext;
|
|
291
|
+
protocolOpStatement(): ProtocolOpStatementContext;
|
|
292
|
+
booleanOp(): BooleanOpContext;
|
|
293
|
+
forwardStatement(): ForwardStatementContext;
|
|
294
|
+
offsetStatement(): OffsetStatementContext;
|
|
295
|
+
rewindStatement(): RewindStatementContext;
|
|
272
296
|
stepDeclaration(): StepDeclarationContext;
|
|
297
|
+
protocolPhase(): ProtocolPhaseContext;
|
|
298
|
+
parityStatement(): ParityStatementContext;
|
|
299
|
+
ruleStatement(): RuleStatementContext;
|
|
300
|
+
protocolBody(): ProtocolBodyContext;
|
|
273
301
|
stepBody(): StepBodyContext;
|
|
302
|
+
endStatement(): EndStatementContext;
|
|
274
303
|
enumDeclaration(): EnumDeclarationContext;
|
|
275
304
|
enumBody(): EnumBodyContext;
|
|
276
305
|
enumAssignment(): EnumAssignmentContext;
|
|
@@ -286,6 +315,7 @@ export declare class BattleScriptParser extends Parser {
|
|
|
286
315
|
dataType(_p: number): DataTypeContext;
|
|
287
316
|
type(): TypeContext;
|
|
288
317
|
protocolType(): ProtocolTypeContext;
|
|
318
|
+
protocolReadType(): ProtocolReadTypeContext;
|
|
289
319
|
arrayExpressionInternal(): ArrayExpressionInternalContext;
|
|
290
320
|
objectExpressionInternal(): ObjectExpressionInternalContext;
|
|
291
321
|
objectProperty(): ObjectPropertyContext;
|
|
@@ -1128,18 +1158,6 @@ export declare class ProtocolDeclarationContext extends ParserRuleContext {
|
|
|
1128
1158
|
exitRule(listener: BattleScriptListener): void;
|
|
1129
1159
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1130
1160
|
}
|
|
1131
|
-
export declare class ProtocolBodyContext extends ParserRuleContext {
|
|
1132
|
-
enumDeclaration(): EnumDeclarationContext | undefined;
|
|
1133
|
-
defineStatement(): DefineStatementContext | undefined;
|
|
1134
|
-
requireStatement(): RequireStatementContext | undefined;
|
|
1135
|
-
stepDeclaration(): StepDeclarationContext | undefined;
|
|
1136
|
-
comment(): CommentContext | undefined;
|
|
1137
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1138
|
-
get ruleIndex(): number;
|
|
1139
|
-
enterRule(listener: BattleScriptListener): void;
|
|
1140
|
-
exitRule(listener: BattleScriptListener): void;
|
|
1141
|
-
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1142
|
-
}
|
|
1143
1161
|
export declare class ProtocolComparatorContext extends ParserRuleContext {
|
|
1144
1162
|
EQUALS(): TerminalNode | undefined;
|
|
1145
1163
|
NOT_EQUALS(): TerminalNode | undefined;
|
|
@@ -1167,6 +1185,65 @@ export declare class RequireStatementContext extends ParserRuleContext {
|
|
|
1167
1185
|
protocolComparator(): ProtocolComparatorContext;
|
|
1168
1186
|
expression(): ExpressionContext;
|
|
1169
1187
|
lineEnd(): LineEndContext;
|
|
1188
|
+
terminateFlag(): TerminateFlagContext | undefined;
|
|
1189
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1190
|
+
get ruleIndex(): number;
|
|
1191
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1192
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1193
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1194
|
+
}
|
|
1195
|
+
export declare class TerminateFlagContext extends ParserRuleContext {
|
|
1196
|
+
TERMINATE(): TerminalNode;
|
|
1197
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1198
|
+
get ruleIndex(): number;
|
|
1199
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1200
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1201
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1202
|
+
}
|
|
1203
|
+
export declare class ProtocolOpStatementContext extends ParserRuleContext {
|
|
1204
|
+
booleanOp(): BooleanOpContext;
|
|
1205
|
+
protocolReadType(): ProtocolReadTypeContext;
|
|
1206
|
+
stringLiteral(): StringLiteralContext;
|
|
1207
|
+
lineEnd(): LineEndContext;
|
|
1208
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1209
|
+
get ruleIndex(): number;
|
|
1210
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1211
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1212
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1213
|
+
}
|
|
1214
|
+
export declare class BooleanOpContext extends ParserRuleContext {
|
|
1215
|
+
XOR(): TerminalNode | undefined;
|
|
1216
|
+
XNOR(): TerminalNode | undefined;
|
|
1217
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1218
|
+
get ruleIndex(): number;
|
|
1219
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1220
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1221
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1222
|
+
}
|
|
1223
|
+
export declare class ForwardStatementContext extends ParserRuleContext {
|
|
1224
|
+
FORWARD(): TerminalNode;
|
|
1225
|
+
numberLiteral(): NumberLiteralContext;
|
|
1226
|
+
lineEnd(): LineEndContext;
|
|
1227
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1228
|
+
get ruleIndex(): number;
|
|
1229
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1230
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1231
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1232
|
+
}
|
|
1233
|
+
export declare class OffsetStatementContext extends ParserRuleContext {
|
|
1234
|
+
OFFSET(): TerminalNode;
|
|
1235
|
+
numberLiteral(): NumberLiteralContext;
|
|
1236
|
+
lineEnd(): LineEndContext;
|
|
1237
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1238
|
+
get ruleIndex(): number;
|
|
1239
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1240
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1241
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1242
|
+
}
|
|
1243
|
+
export declare class RewindStatementContext extends ParserRuleContext {
|
|
1244
|
+
REWIND(): TerminalNode;
|
|
1245
|
+
numberLiteral(): NumberLiteralContext;
|
|
1246
|
+
lineEnd(): LineEndContext;
|
|
1170
1247
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1171
1248
|
get ruleIndex(): number;
|
|
1172
1249
|
enterRule(listener: BattleScriptListener): void;
|
|
@@ -1177,6 +1254,29 @@ export declare class StepDeclarationContext extends ParserRuleContext {
|
|
|
1177
1254
|
STEP(): TerminalNode;
|
|
1178
1255
|
BRACES_START(): TerminalNode;
|
|
1179
1256
|
BRACES_END(): TerminalNode;
|
|
1257
|
+
protocolPhase(): ProtocolPhaseContext | undefined;
|
|
1258
|
+
stepBody(): StepBodyContext[];
|
|
1259
|
+
stepBody(i: number): StepBodyContext;
|
|
1260
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1261
|
+
get ruleIndex(): number;
|
|
1262
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1263
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1264
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1265
|
+
}
|
|
1266
|
+
export declare class ProtocolPhaseContext extends ParserRuleContext {
|
|
1267
|
+
DECODE(): TerminalNode | undefined;
|
|
1268
|
+
ENCODE(): TerminalNode | undefined;
|
|
1269
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1270
|
+
get ruleIndex(): number;
|
|
1271
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1272
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1273
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1274
|
+
}
|
|
1275
|
+
export declare class ParityStatementContext extends ParserRuleContext {
|
|
1276
|
+
PARITY(): TerminalNode;
|
|
1277
|
+
BRACES_START(): TerminalNode;
|
|
1278
|
+
BRACES_END(): TerminalNode;
|
|
1279
|
+
protocolPhase(): ProtocolPhaseContext | undefined;
|
|
1180
1280
|
stepBody(): StepBodyContext[];
|
|
1181
1281
|
stepBody(i: number): StepBodyContext;
|
|
1182
1282
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
@@ -1185,9 +1285,52 @@ export declare class StepDeclarationContext extends ParserRuleContext {
|
|
|
1185
1285
|
exitRule(listener: BattleScriptListener): void;
|
|
1186
1286
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1187
1287
|
}
|
|
1288
|
+
export declare class RuleStatementContext extends ParserRuleContext {
|
|
1289
|
+
RULE(): TerminalNode;
|
|
1290
|
+
protocolType(): ProtocolTypeContext;
|
|
1291
|
+
stringLiteral(): StringLiteralContext[];
|
|
1292
|
+
stringLiteral(i: number): StringLiteralContext;
|
|
1293
|
+
ASSIGN(): TerminalNode;
|
|
1294
|
+
protocolComparator(): ProtocolComparatorContext;
|
|
1295
|
+
numberLiteral(): NumberLiteralContext[];
|
|
1296
|
+
numberLiteral(i: number): NumberLiteralContext;
|
|
1297
|
+
QUESTION_MARK(): TerminalNode;
|
|
1298
|
+
COLON(): TerminalNode;
|
|
1299
|
+
lineEnd(): LineEndContext;
|
|
1300
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1301
|
+
get ruleIndex(): number;
|
|
1302
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1303
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1304
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1305
|
+
}
|
|
1306
|
+
export declare class ProtocolBodyContext extends ParserRuleContext {
|
|
1307
|
+
enumDeclaration(): EnumDeclarationContext | undefined;
|
|
1308
|
+
defineStatement(): DefineStatementContext | undefined;
|
|
1309
|
+
requireStatement(): RequireStatementContext | undefined;
|
|
1310
|
+
protocolOpStatement(): ProtocolOpStatementContext | undefined;
|
|
1311
|
+
forwardStatement(): ForwardStatementContext | undefined;
|
|
1312
|
+
offsetStatement(): OffsetStatementContext | undefined;
|
|
1313
|
+
rewindStatement(): RewindStatementContext | undefined;
|
|
1314
|
+
parityStatement(): ParityStatementContext | undefined;
|
|
1315
|
+
stepDeclaration(): StepDeclarationContext | undefined;
|
|
1316
|
+
ruleStatement(): RuleStatementContext | undefined;
|
|
1317
|
+
comment(): CommentContext | undefined;
|
|
1318
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1319
|
+
get ruleIndex(): number;
|
|
1320
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1321
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1322
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1323
|
+
}
|
|
1188
1324
|
export declare class StepBodyContext extends ParserRuleContext {
|
|
1189
1325
|
defineStatement(): DefineStatementContext | undefined;
|
|
1190
1326
|
requireStatement(): RequireStatementContext | undefined;
|
|
1327
|
+
protocolOpStatement(): ProtocolOpStatementContext | undefined;
|
|
1328
|
+
forwardStatement(): ForwardStatementContext | undefined;
|
|
1329
|
+
offsetStatement(): OffsetStatementContext | undefined;
|
|
1330
|
+
rewindStatement(): RewindStatementContext | undefined;
|
|
1331
|
+
ruleStatement(): RuleStatementContext | undefined;
|
|
1332
|
+
endStatement(): EndStatementContext | undefined;
|
|
1333
|
+
statement(): StatementContext | undefined;
|
|
1191
1334
|
comment(): CommentContext | undefined;
|
|
1192
1335
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1193
1336
|
get ruleIndex(): number;
|
|
@@ -1195,6 +1338,16 @@ export declare class StepBodyContext extends ParserRuleContext {
|
|
|
1195
1338
|
exitRule(listener: BattleScriptListener): void;
|
|
1196
1339
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1197
1340
|
}
|
|
1341
|
+
export declare class EndStatementContext extends ParserRuleContext {
|
|
1342
|
+
END(): TerminalNode;
|
|
1343
|
+
booleanLiteral(): BooleanLiteralContext;
|
|
1344
|
+
lineEnd(): LineEndContext;
|
|
1345
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1346
|
+
get ruleIndex(): number;
|
|
1347
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1348
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1349
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1350
|
+
}
|
|
1198
1351
|
export declare class EnumDeclarationContext extends ParserRuleContext {
|
|
1199
1352
|
ENUM(): TerminalNode;
|
|
1200
1353
|
identifier(): IdentifierContext;
|
|
@@ -1332,12 +1485,11 @@ export declare class TypeContext extends ParserRuleContext {
|
|
|
1332
1485
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1333
1486
|
}
|
|
1334
1487
|
export declare class ProtocolTypeContext extends ParserRuleContext {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
PROTOCOL_TYPE_I4(): TerminalNode | undefined;
|
|
1488
|
+
TYPE_UINT(): TerminalNode | undefined;
|
|
1489
|
+
LT(): TerminalNode | undefined;
|
|
1490
|
+
numberLiteral(): NumberLiteralContext | undefined;
|
|
1491
|
+
GT(): TerminalNode | undefined;
|
|
1492
|
+
TYPE_INT(): TerminalNode | undefined;
|
|
1341
1493
|
TYPE_STRING(): TerminalNode | undefined;
|
|
1342
1494
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1343
1495
|
get ruleIndex(): number;
|
|
@@ -1345,6 +1497,18 @@ export declare class ProtocolTypeContext extends ParserRuleContext {
|
|
|
1345
1497
|
exitRule(listener: BattleScriptListener): void;
|
|
1346
1498
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1347
1499
|
}
|
|
1500
|
+
export declare class ProtocolReadTypeContext extends ParserRuleContext {
|
|
1501
|
+
BITS(): TerminalNode | undefined;
|
|
1502
|
+
LT(): TerminalNode;
|
|
1503
|
+
numberLiteral(): NumberLiteralContext;
|
|
1504
|
+
GT(): TerminalNode;
|
|
1505
|
+
BYTES(): TerminalNode | undefined;
|
|
1506
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1507
|
+
get ruleIndex(): number;
|
|
1508
|
+
enterRule(listener: BattleScriptListener): void;
|
|
1509
|
+
exitRule(listener: BattleScriptListener): void;
|
|
1510
|
+
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1511
|
+
}
|
|
1348
1512
|
export declare class ArrayExpressionInternalContext extends ParserRuleContext {
|
|
1349
1513
|
BRACKETS_START(): TerminalNode;
|
|
1350
1514
|
BRACKETS_END(): TerminalNode;
|
|
@@ -1423,7 +1587,24 @@ export declare class UndefinedLiteralContext extends ParserRuleContext {
|
|
|
1423
1587
|
accept<Result>(visitor: BattleScriptVisitor<Result>): Result;
|
|
1424
1588
|
}
|
|
1425
1589
|
export declare class IdentifierContext extends ParserRuleContext {
|
|
1426
|
-
IDENTIFIER(): TerminalNode;
|
|
1590
|
+
IDENTIFIER(): TerminalNode | undefined;
|
|
1591
|
+
PROTOCOL(): TerminalNode | undefined;
|
|
1592
|
+
DEFINE(): TerminalNode | undefined;
|
|
1593
|
+
REQUIRE(): TerminalNode | undefined;
|
|
1594
|
+
TERMINATE(): TerminalNode | undefined;
|
|
1595
|
+
STEP(): TerminalNode | undefined;
|
|
1596
|
+
DECODE(): TerminalNode | undefined;
|
|
1597
|
+
ENCODE(): TerminalNode | undefined;
|
|
1598
|
+
END(): TerminalNode | undefined;
|
|
1599
|
+
FORWARD(): TerminalNode | undefined;
|
|
1600
|
+
REWIND(): TerminalNode | undefined;
|
|
1601
|
+
OFFSET(): TerminalNode | undefined;
|
|
1602
|
+
XOR(): TerminalNode | undefined;
|
|
1603
|
+
XNOR(): TerminalNode | undefined;
|
|
1604
|
+
BITS(): TerminalNode | undefined;
|
|
1605
|
+
BYTES(): TerminalNode | undefined;
|
|
1606
|
+
RULE(): TerminalNode | undefined;
|
|
1607
|
+
PARITY(): TerminalNode | undefined;
|
|
1427
1608
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1428
1609
|
get ruleIndex(): number;
|
|
1429
1610
|
enterRule(listener: BattleScriptListener): void;
|