@zenuml/core 2.0.0 → 2.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/dist/zenuml/core.common.js +37977 -0
- package/dist/zenuml/core.common.js.map +1 -0
- package/dist/{vue-sequence.css → zenuml/core.css} +0 -0
- package/dist/zenuml/core.umd.js +37988 -0
- package/dist/zenuml/core.umd.js.map +1 -0
- package/dist/{vue-sequence.umd.min.js → zenuml/core.umd.min.js} +3 -3
- package/dist/zenuml/core.umd.min.js.map +1 -0
- package/package.json +6 -6
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/Interaction.vue.html +0 -532
- package/coverage/lcov-report/Owner.js.html +0 -175
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/components/interaction/Interaction.vue.html +0 -544
- package/coverage/lcov-report/components/interaction/index.html +0 -110
- package/coverage/lcov-report/index.html +0 -95
- package/coverage/lcov-report/positioning/david/DavidEisenstat2.ts.html +0 -196
- package/coverage/lcov-report/positioning/david/index.html +0 -110
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -0
- package/cypress/fixtures/example.json +0 -5
- package/cypress/fixtures/profile.json +0 -5
- package/cypress/fixtures/users.json +0 -232
- package/cypress/integration/__image_snapshots__/Smoke test creation #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test fragment #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test fragmentIssue #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test interaction #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test return #0.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test return #1.png +0 -0
- package/cypress/integration/__image_snapshots__/Smoke test should load the home page #0.png +0 -0
- package/cypress/integration/smoke.spec.js +0 -64
- package/cypress/plugins/index.js +0 -30
- package/cypress/support/commands.js +0 -25
- package/cypress/support/index.js +0 -20
- package/cypress/videos/smoke.spec.js.mp4 +0 -0
- package/gen/css3.interp +0 -214
- package/gen/css3.tokens +0 -92
- package/gen/css3BaseListener.java +0 -1106
- package/gen/css3BaseVisitor.java +0 -636
- package/gen/css3Lexer.interp +0 -251
- package/gen/css3Lexer.java +0 -672
- package/gen/css3Lexer.tokens +0 -92
- package/gen/css3Listener.java +0 -939
- package/gen/css3Parser.java +0 -8113
- package/gen/css3Visitor.java +0 -566
- package/gen/sequenceLexer.interp +0 -206
- package/gen/sequenceLexer.java +0 -419
- package/gen/sequenceLexer.tokens +0 -104
- package/gen/sequenceParser.interp +0 -180
- package/gen/sequenceParser.java +0 -4659
- package/gen/sequenceParser.tokens +0 -101
- package/gen/sequenceParserBaseListener.java +0 -830
- package/gen/sequenceParserBaseVisitor.java +0 -475
- package/gen/sequenceParserListener.java +0 -703
- package/gen/sequenceParserVisitor.java +0 -425
package/gen/sequenceParser.java
DELETED
|
@@ -1,4659 +0,0 @@
|
|
|
1
|
-
// Generated from /Users/pengxiao/workspaces/zenuml/vue-sequence/src/g4/sequenceParser.g4 by ANTLR 4.9.2
|
|
2
|
-
import org.antlr.v4.runtime.atn.*;
|
|
3
|
-
import org.antlr.v4.runtime.dfa.DFA;
|
|
4
|
-
import org.antlr.v4.runtime.*;
|
|
5
|
-
import org.antlr.v4.runtime.misc.*;
|
|
6
|
-
import org.antlr.v4.runtime.tree.*;
|
|
7
|
-
import java.util.List;
|
|
8
|
-
import java.util.Iterator;
|
|
9
|
-
import java.util.ArrayList;
|
|
10
|
-
|
|
11
|
-
@SuppressWarnings({"all", "warnings", "unchecked", "unused", "cast"})
|
|
12
|
-
public class sequenceParser extends Parser {
|
|
13
|
-
static { RuntimeMetaData.checkVersion("4.9.2", RuntimeMetaData.VERSION); }
|
|
14
|
-
|
|
15
|
-
protected static final DFA[] _decisionToDFA;
|
|
16
|
-
protected static final PredictionContextCache _sharedContextCache =
|
|
17
|
-
new PredictionContextCache();
|
|
18
|
-
public static final int
|
|
19
|
-
TITLE=1, COL=2, SOPEN=3, SCLOSE=4, ARROW=5, OR=6, AND=7, EQ=8, NEQ=9,
|
|
20
|
-
GT=10, LT=11, GTEQ=12, LTEQ=13, PLUS=14, MINUS=15, MULT=16, DIV=17, MOD=18,
|
|
21
|
-
POW=19, NOT=20, SCOL=21, COMMA=22, ASSIGN=23, OPAR=24, CPAR=25, OBRACE=26,
|
|
22
|
-
CBRACE=27, TRUE=28, FALSE=29, NIL=30, IF=31, ELSE=32, WHILE=33, RETURN=34,
|
|
23
|
-
NEW=35, PAR=36, GROUP=37, OPT=38, AS=39, TRY=40, CATCH=41, FINALLY=42,
|
|
24
|
-
STARTER_LXR=43, ANNOTATION_RET=44, ANNOTATION=45, DOT=46, ID=47, INT=48,
|
|
25
|
-
FLOAT=49, STRING=50, CR=51, SPACE=52, COMMENT=53, OTHER=54, EVENT_PAYLOAD_LXR=55,
|
|
26
|
-
EVENT_END=56, WS=57, TITLE_CONTENT=58, TITLE_END=59;
|
|
27
|
-
public static final int
|
|
28
|
-
RULE_prog = 0, RULE_title = 1, RULE_head = 2, RULE_group = 3, RULE_starterExp = 4,
|
|
29
|
-
RULE_starter = 5, RULE_participant = 6, RULE_stereotype = 7, RULE_label = 8,
|
|
30
|
-
RULE_participantType = 9, RULE_name = 10, RULE_width = 11, RULE_block = 12,
|
|
31
|
-
RULE_ret = 13, RULE_divider = 14, RULE_stat = 15, RULE_par = 16, RULE_opt = 17,
|
|
32
|
-
RULE_creation = 18, RULE_creationBody = 19, RULE_message = 20, RULE_messageBody = 21,
|
|
33
|
-
RULE_func = 22, RULE_from = 23, RULE_to = 24, RULE_signature = 25, RULE_invocation = 26,
|
|
34
|
-
RULE_assignment = 27, RULE_asyncMessage = 28, RULE_content = 29, RULE_construct = 30,
|
|
35
|
-
RULE_type = 31, RULE_assignee = 32, RULE_methodName = 33, RULE_parameters = 34,
|
|
36
|
-
RULE_parameter = 35, RULE_declaration = 36, RULE_tcf = 37, RULE_tryBlock = 38,
|
|
37
|
-
RULE_catchBlock = 39, RULE_finallyBlock = 40, RULE_alt = 41, RULE_ifBlock = 42,
|
|
38
|
-
RULE_elseIfBlock = 43, RULE_elseBlock = 44, RULE_braceBlock = 45, RULE_loop = 46,
|
|
39
|
-
RULE_expr = 47, RULE_atom = 48, RULE_parExpr = 49, RULE_condition = 50;
|
|
40
|
-
private static String[] makeRuleNames() {
|
|
41
|
-
return new String[] {
|
|
42
|
-
"prog", "title", "head", "group", "starterExp", "starter", "participant",
|
|
43
|
-
"stereotype", "label", "participantType", "name", "width", "block", "ret",
|
|
44
|
-
"divider", "stat", "par", "opt", "creation", "creationBody", "message",
|
|
45
|
-
"messageBody", "func", "from", "to", "signature", "invocation", "assignment",
|
|
46
|
-
"asyncMessage", "content", "construct", "type", "assignee", "methodName",
|
|
47
|
-
"parameters", "parameter", "declaration", "tcf", "tryBlock", "catchBlock",
|
|
48
|
-
"finallyBlock", "alt", "ifBlock", "elseIfBlock", "elseBlock", "braceBlock",
|
|
49
|
-
"loop", "expr", "atom", "parExpr", "condition"
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
public static final String[] ruleNames = makeRuleNames();
|
|
53
|
-
|
|
54
|
-
private static String[] makeLiteralNames() {
|
|
55
|
-
return new String[] {
|
|
56
|
-
null, "'title'", "':'", "'<<'", "'>>'", "'->'", "'||'", "'&&'", "'=='",
|
|
57
|
-
"'!='", "'>'", "'<'", "'>='", "'<='", "'+'", "'-'", "'*'", "'/'", "'%'",
|
|
58
|
-
"'^'", "'!'", "';'", "','", "'='", "'('", "')'", "'{'", "'}'", "'true'",
|
|
59
|
-
"'false'", "'nil'", "'if'", "'else'", null, "'return'", "'new'", "'par'",
|
|
60
|
-
"'group'", "'opt'", "'as'", "'try'", "'catch'", "'finally'", null, null,
|
|
61
|
-
null, "'.'"
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
private static final String[] _LITERAL_NAMES = makeLiteralNames();
|
|
65
|
-
private static String[] makeSymbolicNames() {
|
|
66
|
-
return new String[] {
|
|
67
|
-
null, "TITLE", "COL", "SOPEN", "SCLOSE", "ARROW", "OR", "AND", "EQ",
|
|
68
|
-
"NEQ", "GT", "LT", "GTEQ", "LTEQ", "PLUS", "MINUS", "MULT", "DIV", "MOD",
|
|
69
|
-
"POW", "NOT", "SCOL", "COMMA", "ASSIGN", "OPAR", "CPAR", "OBRACE", "CBRACE",
|
|
70
|
-
"TRUE", "FALSE", "NIL", "IF", "ELSE", "WHILE", "RETURN", "NEW", "PAR",
|
|
71
|
-
"GROUP", "OPT", "AS", "TRY", "CATCH", "FINALLY", "STARTER_LXR", "ANNOTATION_RET",
|
|
72
|
-
"ANNOTATION", "DOT", "ID", "INT", "FLOAT", "STRING", "CR", "SPACE", "COMMENT",
|
|
73
|
-
"OTHER", "EVENT_PAYLOAD_LXR", "EVENT_END", "WS", "TITLE_CONTENT", "TITLE_END"
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
private static final String[] _SYMBOLIC_NAMES = makeSymbolicNames();
|
|
77
|
-
public static final Vocabulary VOCABULARY = new VocabularyImpl(_LITERAL_NAMES, _SYMBOLIC_NAMES);
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @deprecated Use {@link #VOCABULARY} instead.
|
|
81
|
-
*/
|
|
82
|
-
@Deprecated
|
|
83
|
-
public static final String[] tokenNames;
|
|
84
|
-
static {
|
|
85
|
-
tokenNames = new String[_SYMBOLIC_NAMES.length];
|
|
86
|
-
for (int i = 0; i < tokenNames.length; i++) {
|
|
87
|
-
tokenNames[i] = VOCABULARY.getLiteralName(i);
|
|
88
|
-
if (tokenNames[i] == null) {
|
|
89
|
-
tokenNames[i] = VOCABULARY.getSymbolicName(i);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
if (tokenNames[i] == null) {
|
|
93
|
-
tokenNames[i] = "<INVALID>";
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@Override
|
|
99
|
-
@Deprecated
|
|
100
|
-
public String[] getTokenNames() {
|
|
101
|
-
return tokenNames;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@Override
|
|
105
|
-
|
|
106
|
-
public Vocabulary getVocabulary() {
|
|
107
|
-
return VOCABULARY;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@Override
|
|
111
|
-
public String getGrammarFileName() { return "sequenceParser.g4"; }
|
|
112
|
-
|
|
113
|
-
@Override
|
|
114
|
-
public String[] getRuleNames() { return ruleNames; }
|
|
115
|
-
|
|
116
|
-
@Override
|
|
117
|
-
public String getSerializedATN() { return _serializedATN; }
|
|
118
|
-
|
|
119
|
-
@Override
|
|
120
|
-
public ATN getATN() { return _ATN; }
|
|
121
|
-
|
|
122
|
-
public sequenceParser(TokenStream input) {
|
|
123
|
-
super(input);
|
|
124
|
-
_interp = new ParserATNSimulator(this,_ATN,_decisionToDFA,_sharedContextCache);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
public static class ProgContext extends ParserRuleContext {
|
|
128
|
-
public TerminalNode EOF() { return getToken(sequenceParser.EOF, 0); }
|
|
129
|
-
public TitleContext title() {
|
|
130
|
-
return getRuleContext(TitleContext.class,0);
|
|
131
|
-
}
|
|
132
|
-
public HeadContext head() {
|
|
133
|
-
return getRuleContext(HeadContext.class,0);
|
|
134
|
-
}
|
|
135
|
-
public BlockContext block() {
|
|
136
|
-
return getRuleContext(BlockContext.class,0);
|
|
137
|
-
}
|
|
138
|
-
public ProgContext(ParserRuleContext parent, int invokingState) {
|
|
139
|
-
super(parent, invokingState);
|
|
140
|
-
}
|
|
141
|
-
@Override public int getRuleIndex() { return RULE_prog; }
|
|
142
|
-
@Override
|
|
143
|
-
public void enterRule(ParseTreeListener listener) {
|
|
144
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterProg(this);
|
|
145
|
-
}
|
|
146
|
-
@Override
|
|
147
|
-
public void exitRule(ParseTreeListener listener) {
|
|
148
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitProg(this);
|
|
149
|
-
}
|
|
150
|
-
@Override
|
|
151
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
152
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitProg(this);
|
|
153
|
-
else return visitor.visitChildren(this);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
public final ProgContext prog() throws RecognitionException {
|
|
158
|
-
ProgContext _localctx = new ProgContext(_ctx, getState());
|
|
159
|
-
enterRule(_localctx, 0, RULE_prog);
|
|
160
|
-
int _la;
|
|
161
|
-
try {
|
|
162
|
-
setState(121);
|
|
163
|
-
_errHandler.sync(this);
|
|
164
|
-
switch ( getInterpreter().adaptivePredict(_input,4,_ctx) ) {
|
|
165
|
-
case 1:
|
|
166
|
-
enterOuterAlt(_localctx, 1);
|
|
167
|
-
{
|
|
168
|
-
setState(103);
|
|
169
|
-
_errHandler.sync(this);
|
|
170
|
-
_la = _input.LA(1);
|
|
171
|
-
if (_la==TITLE) {
|
|
172
|
-
{
|
|
173
|
-
setState(102);
|
|
174
|
-
title();
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
setState(105);
|
|
179
|
-
match(EOF);
|
|
180
|
-
}
|
|
181
|
-
break;
|
|
182
|
-
case 2:
|
|
183
|
-
enterOuterAlt(_localctx, 2);
|
|
184
|
-
{
|
|
185
|
-
setState(107);
|
|
186
|
-
_errHandler.sync(this);
|
|
187
|
-
_la = _input.LA(1);
|
|
188
|
-
if (_la==TITLE) {
|
|
189
|
-
{
|
|
190
|
-
setState(106);
|
|
191
|
-
title();
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
setState(109);
|
|
196
|
-
head();
|
|
197
|
-
setState(110);
|
|
198
|
-
match(EOF);
|
|
199
|
-
}
|
|
200
|
-
break;
|
|
201
|
-
case 3:
|
|
202
|
-
enterOuterAlt(_localctx, 3);
|
|
203
|
-
{
|
|
204
|
-
setState(113);
|
|
205
|
-
_errHandler.sync(this);
|
|
206
|
-
_la = _input.LA(1);
|
|
207
|
-
if (_la==TITLE) {
|
|
208
|
-
{
|
|
209
|
-
setState(112);
|
|
210
|
-
title();
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
setState(116);
|
|
215
|
-
_errHandler.sync(this);
|
|
216
|
-
switch ( getInterpreter().adaptivePredict(_input,3,_ctx) ) {
|
|
217
|
-
case 1:
|
|
218
|
-
{
|
|
219
|
-
setState(115);
|
|
220
|
-
head();
|
|
221
|
-
}
|
|
222
|
-
break;
|
|
223
|
-
}
|
|
224
|
-
setState(118);
|
|
225
|
-
block();
|
|
226
|
-
setState(119);
|
|
227
|
-
match(EOF);
|
|
228
|
-
}
|
|
229
|
-
break;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
catch (RecognitionException re) {
|
|
233
|
-
_localctx.exception = re;
|
|
234
|
-
_errHandler.reportError(this, re);
|
|
235
|
-
_errHandler.recover(this, re);
|
|
236
|
-
}
|
|
237
|
-
finally {
|
|
238
|
-
exitRule();
|
|
239
|
-
}
|
|
240
|
-
return _localctx;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
public static class TitleContext extends ParserRuleContext {
|
|
244
|
-
public TerminalNode TITLE() { return getToken(sequenceParser.TITLE, 0); }
|
|
245
|
-
public TerminalNode TITLE_CONTENT() { return getToken(sequenceParser.TITLE_CONTENT, 0); }
|
|
246
|
-
public TerminalNode TITLE_END() { return getToken(sequenceParser.TITLE_END, 0); }
|
|
247
|
-
public TitleContext(ParserRuleContext parent, int invokingState) {
|
|
248
|
-
super(parent, invokingState);
|
|
249
|
-
}
|
|
250
|
-
@Override public int getRuleIndex() { return RULE_title; }
|
|
251
|
-
@Override
|
|
252
|
-
public void enterRule(ParseTreeListener listener) {
|
|
253
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterTitle(this);
|
|
254
|
-
}
|
|
255
|
-
@Override
|
|
256
|
-
public void exitRule(ParseTreeListener listener) {
|
|
257
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitTitle(this);
|
|
258
|
-
}
|
|
259
|
-
@Override
|
|
260
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
261
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitTitle(this);
|
|
262
|
-
else return visitor.visitChildren(this);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
public final TitleContext title() throws RecognitionException {
|
|
267
|
-
TitleContext _localctx = new TitleContext(_ctx, getState());
|
|
268
|
-
enterRule(_localctx, 2, RULE_title);
|
|
269
|
-
int _la;
|
|
270
|
-
try {
|
|
271
|
-
enterOuterAlt(_localctx, 1);
|
|
272
|
-
{
|
|
273
|
-
setState(123);
|
|
274
|
-
match(TITLE);
|
|
275
|
-
setState(124);
|
|
276
|
-
match(TITLE_CONTENT);
|
|
277
|
-
setState(126);
|
|
278
|
-
_errHandler.sync(this);
|
|
279
|
-
_la = _input.LA(1);
|
|
280
|
-
if (_la==TITLE_END) {
|
|
281
|
-
{
|
|
282
|
-
setState(125);
|
|
283
|
-
match(TITLE_END);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
catch (RecognitionException re) {
|
|
290
|
-
_localctx.exception = re;
|
|
291
|
-
_errHandler.reportError(this, re);
|
|
292
|
-
_errHandler.recover(this, re);
|
|
293
|
-
}
|
|
294
|
-
finally {
|
|
295
|
-
exitRule();
|
|
296
|
-
}
|
|
297
|
-
return _localctx;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
public static class HeadContext extends ParserRuleContext {
|
|
301
|
-
public List<GroupContext> group() {
|
|
302
|
-
return getRuleContexts(GroupContext.class);
|
|
303
|
-
}
|
|
304
|
-
public GroupContext group(int i) {
|
|
305
|
-
return getRuleContext(GroupContext.class,i);
|
|
306
|
-
}
|
|
307
|
-
public List<ParticipantContext> participant() {
|
|
308
|
-
return getRuleContexts(ParticipantContext.class);
|
|
309
|
-
}
|
|
310
|
-
public ParticipantContext participant(int i) {
|
|
311
|
-
return getRuleContext(ParticipantContext.class,i);
|
|
312
|
-
}
|
|
313
|
-
public StarterExpContext starterExp() {
|
|
314
|
-
return getRuleContext(StarterExpContext.class,0);
|
|
315
|
-
}
|
|
316
|
-
public HeadContext(ParserRuleContext parent, int invokingState) {
|
|
317
|
-
super(parent, invokingState);
|
|
318
|
-
}
|
|
319
|
-
@Override public int getRuleIndex() { return RULE_head; }
|
|
320
|
-
@Override
|
|
321
|
-
public void enterRule(ParseTreeListener listener) {
|
|
322
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterHead(this);
|
|
323
|
-
}
|
|
324
|
-
@Override
|
|
325
|
-
public void exitRule(ParseTreeListener listener) {
|
|
326
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitHead(this);
|
|
327
|
-
}
|
|
328
|
-
@Override
|
|
329
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
330
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitHead(this);
|
|
331
|
-
else return visitor.visitChildren(this);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
public final HeadContext head() throws RecognitionException {
|
|
336
|
-
HeadContext _localctx = new HeadContext(_ctx, getState());
|
|
337
|
-
enterRule(_localctx, 4, RULE_head);
|
|
338
|
-
try {
|
|
339
|
-
int _alt;
|
|
340
|
-
setState(142);
|
|
341
|
-
_errHandler.sync(this);
|
|
342
|
-
switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) {
|
|
343
|
-
case 1:
|
|
344
|
-
enterOuterAlt(_localctx, 1);
|
|
345
|
-
{
|
|
346
|
-
setState(130);
|
|
347
|
-
_errHandler.sync(this);
|
|
348
|
-
_alt = 1;
|
|
349
|
-
do {
|
|
350
|
-
switch (_alt) {
|
|
351
|
-
case 1:
|
|
352
|
-
{
|
|
353
|
-
setState(130);
|
|
354
|
-
_errHandler.sync(this);
|
|
355
|
-
switch (_input.LA(1)) {
|
|
356
|
-
case GROUP:
|
|
357
|
-
{
|
|
358
|
-
setState(128);
|
|
359
|
-
group();
|
|
360
|
-
}
|
|
361
|
-
break;
|
|
362
|
-
case SOPEN:
|
|
363
|
-
case LT:
|
|
364
|
-
case ANNOTATION:
|
|
365
|
-
case ID:
|
|
366
|
-
case STRING:
|
|
367
|
-
{
|
|
368
|
-
setState(129);
|
|
369
|
-
participant();
|
|
370
|
-
}
|
|
371
|
-
break;
|
|
372
|
-
default:
|
|
373
|
-
throw new NoViableAltException(this);
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
break;
|
|
377
|
-
default:
|
|
378
|
-
throw new NoViableAltException(this);
|
|
379
|
-
}
|
|
380
|
-
setState(132);
|
|
381
|
-
_errHandler.sync(this);
|
|
382
|
-
_alt = getInterpreter().adaptivePredict(_input,7,_ctx);
|
|
383
|
-
} while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER );
|
|
384
|
-
}
|
|
385
|
-
break;
|
|
386
|
-
case 2:
|
|
387
|
-
enterOuterAlt(_localctx, 2);
|
|
388
|
-
{
|
|
389
|
-
setState(138);
|
|
390
|
-
_errHandler.sync(this);
|
|
391
|
-
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
|
|
392
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
393
|
-
if ( _alt==1 ) {
|
|
394
|
-
{
|
|
395
|
-
setState(136);
|
|
396
|
-
_errHandler.sync(this);
|
|
397
|
-
switch (_input.LA(1)) {
|
|
398
|
-
case GROUP:
|
|
399
|
-
{
|
|
400
|
-
setState(134);
|
|
401
|
-
group();
|
|
402
|
-
}
|
|
403
|
-
break;
|
|
404
|
-
case SOPEN:
|
|
405
|
-
case LT:
|
|
406
|
-
case ANNOTATION:
|
|
407
|
-
case ID:
|
|
408
|
-
case STRING:
|
|
409
|
-
{
|
|
410
|
-
setState(135);
|
|
411
|
-
participant();
|
|
412
|
-
}
|
|
413
|
-
break;
|
|
414
|
-
default:
|
|
415
|
-
throw new NoViableAltException(this);
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
setState(140);
|
|
420
|
-
_errHandler.sync(this);
|
|
421
|
-
_alt = getInterpreter().adaptivePredict(_input,9,_ctx);
|
|
422
|
-
}
|
|
423
|
-
setState(141);
|
|
424
|
-
starterExp();
|
|
425
|
-
}
|
|
426
|
-
break;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
catch (RecognitionException re) {
|
|
430
|
-
_localctx.exception = re;
|
|
431
|
-
_errHandler.reportError(this, re);
|
|
432
|
-
_errHandler.recover(this, re);
|
|
433
|
-
}
|
|
434
|
-
finally {
|
|
435
|
-
exitRule();
|
|
436
|
-
}
|
|
437
|
-
return _localctx;
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
public static class GroupContext extends ParserRuleContext {
|
|
441
|
-
public TerminalNode GROUP() { return getToken(sequenceParser.GROUP, 0); }
|
|
442
|
-
public TerminalNode OBRACE() { return getToken(sequenceParser.OBRACE, 0); }
|
|
443
|
-
public TerminalNode CBRACE() { return getToken(sequenceParser.CBRACE, 0); }
|
|
444
|
-
public NameContext name() {
|
|
445
|
-
return getRuleContext(NameContext.class,0);
|
|
446
|
-
}
|
|
447
|
-
public List<ParticipantContext> participant() {
|
|
448
|
-
return getRuleContexts(ParticipantContext.class);
|
|
449
|
-
}
|
|
450
|
-
public ParticipantContext participant(int i) {
|
|
451
|
-
return getRuleContext(ParticipantContext.class,i);
|
|
452
|
-
}
|
|
453
|
-
public GroupContext(ParserRuleContext parent, int invokingState) {
|
|
454
|
-
super(parent, invokingState);
|
|
455
|
-
}
|
|
456
|
-
@Override public int getRuleIndex() { return RULE_group; }
|
|
457
|
-
@Override
|
|
458
|
-
public void enterRule(ParseTreeListener listener) {
|
|
459
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterGroup(this);
|
|
460
|
-
}
|
|
461
|
-
@Override
|
|
462
|
-
public void exitRule(ParseTreeListener listener) {
|
|
463
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitGroup(this);
|
|
464
|
-
}
|
|
465
|
-
@Override
|
|
466
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
467
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitGroup(this);
|
|
468
|
-
else return visitor.visitChildren(this);
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
public final GroupContext group() throws RecognitionException {
|
|
473
|
-
GroupContext _localctx = new GroupContext(_ctx, getState());
|
|
474
|
-
enterRule(_localctx, 6, RULE_group);
|
|
475
|
-
int _la;
|
|
476
|
-
try {
|
|
477
|
-
setState(165);
|
|
478
|
-
_errHandler.sync(this);
|
|
479
|
-
switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) {
|
|
480
|
-
case 1:
|
|
481
|
-
enterOuterAlt(_localctx, 1);
|
|
482
|
-
{
|
|
483
|
-
setState(144);
|
|
484
|
-
match(GROUP);
|
|
485
|
-
setState(146);
|
|
486
|
-
_errHandler.sync(this);
|
|
487
|
-
_la = _input.LA(1);
|
|
488
|
-
if (_la==ID || _la==STRING) {
|
|
489
|
-
{
|
|
490
|
-
setState(145);
|
|
491
|
-
name();
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
setState(148);
|
|
496
|
-
match(OBRACE);
|
|
497
|
-
setState(152);
|
|
498
|
-
_errHandler.sync(this);
|
|
499
|
-
_la = _input.LA(1);
|
|
500
|
-
while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << SOPEN) | (1L << LT) | (1L << ANNOTATION) | (1L << ID) | (1L << STRING))) != 0)) {
|
|
501
|
-
{
|
|
502
|
-
{
|
|
503
|
-
setState(149);
|
|
504
|
-
participant();
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
setState(154);
|
|
508
|
-
_errHandler.sync(this);
|
|
509
|
-
_la = _input.LA(1);
|
|
510
|
-
}
|
|
511
|
-
setState(155);
|
|
512
|
-
match(CBRACE);
|
|
513
|
-
}
|
|
514
|
-
break;
|
|
515
|
-
case 2:
|
|
516
|
-
enterOuterAlt(_localctx, 2);
|
|
517
|
-
{
|
|
518
|
-
setState(156);
|
|
519
|
-
match(GROUP);
|
|
520
|
-
setState(158);
|
|
521
|
-
_errHandler.sync(this);
|
|
522
|
-
_la = _input.LA(1);
|
|
523
|
-
if (_la==ID || _la==STRING) {
|
|
524
|
-
{
|
|
525
|
-
setState(157);
|
|
526
|
-
name();
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
setState(160);
|
|
531
|
-
match(OBRACE);
|
|
532
|
-
}
|
|
533
|
-
break;
|
|
534
|
-
case 3:
|
|
535
|
-
enterOuterAlt(_localctx, 3);
|
|
536
|
-
{
|
|
537
|
-
setState(161);
|
|
538
|
-
match(GROUP);
|
|
539
|
-
setState(163);
|
|
540
|
-
_errHandler.sync(this);
|
|
541
|
-
switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) {
|
|
542
|
-
case 1:
|
|
543
|
-
{
|
|
544
|
-
setState(162);
|
|
545
|
-
name();
|
|
546
|
-
}
|
|
547
|
-
break;
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
break;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
catch (RecognitionException re) {
|
|
554
|
-
_localctx.exception = re;
|
|
555
|
-
_errHandler.reportError(this, re);
|
|
556
|
-
_errHandler.recover(this, re);
|
|
557
|
-
}
|
|
558
|
-
finally {
|
|
559
|
-
exitRule();
|
|
560
|
-
}
|
|
561
|
-
return _localctx;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
public static class StarterExpContext extends ParserRuleContext {
|
|
565
|
-
public TerminalNode STARTER_LXR() { return getToken(sequenceParser.STARTER_LXR, 0); }
|
|
566
|
-
public TerminalNode OPAR() { return getToken(sequenceParser.OPAR, 0); }
|
|
567
|
-
public TerminalNode CPAR() { return getToken(sequenceParser.CPAR, 0); }
|
|
568
|
-
public StarterContext starter() {
|
|
569
|
-
return getRuleContext(StarterContext.class,0);
|
|
570
|
-
}
|
|
571
|
-
public TerminalNode ANNOTATION() { return getToken(sequenceParser.ANNOTATION, 0); }
|
|
572
|
-
public StarterExpContext(ParserRuleContext parent, int invokingState) {
|
|
573
|
-
super(parent, invokingState);
|
|
574
|
-
}
|
|
575
|
-
@Override public int getRuleIndex() { return RULE_starterExp; }
|
|
576
|
-
@Override
|
|
577
|
-
public void enterRule(ParseTreeListener listener) {
|
|
578
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterStarterExp(this);
|
|
579
|
-
}
|
|
580
|
-
@Override
|
|
581
|
-
public void exitRule(ParseTreeListener listener) {
|
|
582
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitStarterExp(this);
|
|
583
|
-
}
|
|
584
|
-
@Override
|
|
585
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
586
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitStarterExp(this);
|
|
587
|
-
else return visitor.visitChildren(this);
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
public final StarterExpContext starterExp() throws RecognitionException {
|
|
592
|
-
StarterExpContext _localctx = new StarterExpContext(_ctx, getState());
|
|
593
|
-
enterRule(_localctx, 8, RULE_starterExp);
|
|
594
|
-
int _la;
|
|
595
|
-
try {
|
|
596
|
-
setState(176);
|
|
597
|
-
_errHandler.sync(this);
|
|
598
|
-
switch (_input.LA(1)) {
|
|
599
|
-
case STARTER_LXR:
|
|
600
|
-
enterOuterAlt(_localctx, 1);
|
|
601
|
-
{
|
|
602
|
-
setState(167);
|
|
603
|
-
match(STARTER_LXR);
|
|
604
|
-
setState(173);
|
|
605
|
-
_errHandler.sync(this);
|
|
606
|
-
_la = _input.LA(1);
|
|
607
|
-
if (_la==OPAR) {
|
|
608
|
-
{
|
|
609
|
-
setState(168);
|
|
610
|
-
match(OPAR);
|
|
611
|
-
setState(170);
|
|
612
|
-
_errHandler.sync(this);
|
|
613
|
-
_la = _input.LA(1);
|
|
614
|
-
if (_la==ID || _la==STRING) {
|
|
615
|
-
{
|
|
616
|
-
setState(169);
|
|
617
|
-
starter();
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
setState(172);
|
|
622
|
-
match(CPAR);
|
|
623
|
-
}
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
break;
|
|
628
|
-
case ANNOTATION:
|
|
629
|
-
enterOuterAlt(_localctx, 2);
|
|
630
|
-
{
|
|
631
|
-
setState(175);
|
|
632
|
-
match(ANNOTATION);
|
|
633
|
-
}
|
|
634
|
-
break;
|
|
635
|
-
default:
|
|
636
|
-
throw new NoViableAltException(this);
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
catch (RecognitionException re) {
|
|
640
|
-
_localctx.exception = re;
|
|
641
|
-
_errHandler.reportError(this, re);
|
|
642
|
-
_errHandler.recover(this, re);
|
|
643
|
-
}
|
|
644
|
-
finally {
|
|
645
|
-
exitRule();
|
|
646
|
-
}
|
|
647
|
-
return _localctx;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
public static class StarterContext extends ParserRuleContext {
|
|
651
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
652
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
653
|
-
public StarterContext(ParserRuleContext parent, int invokingState) {
|
|
654
|
-
super(parent, invokingState);
|
|
655
|
-
}
|
|
656
|
-
@Override public int getRuleIndex() { return RULE_starter; }
|
|
657
|
-
@Override
|
|
658
|
-
public void enterRule(ParseTreeListener listener) {
|
|
659
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterStarter(this);
|
|
660
|
-
}
|
|
661
|
-
@Override
|
|
662
|
-
public void exitRule(ParseTreeListener listener) {
|
|
663
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitStarter(this);
|
|
664
|
-
}
|
|
665
|
-
@Override
|
|
666
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
667
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitStarter(this);
|
|
668
|
-
else return visitor.visitChildren(this);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
public final StarterContext starter() throws RecognitionException {
|
|
673
|
-
StarterContext _localctx = new StarterContext(_ctx, getState());
|
|
674
|
-
enterRule(_localctx, 10, RULE_starter);
|
|
675
|
-
int _la;
|
|
676
|
-
try {
|
|
677
|
-
enterOuterAlt(_localctx, 1);
|
|
678
|
-
{
|
|
679
|
-
setState(178);
|
|
680
|
-
_la = _input.LA(1);
|
|
681
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
682
|
-
_errHandler.recoverInline(this);
|
|
683
|
-
}
|
|
684
|
-
else {
|
|
685
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
686
|
-
_errHandler.reportMatch(this);
|
|
687
|
-
consume();
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
catch (RecognitionException re) {
|
|
692
|
-
_localctx.exception = re;
|
|
693
|
-
_errHandler.reportError(this, re);
|
|
694
|
-
_errHandler.recover(this, re);
|
|
695
|
-
}
|
|
696
|
-
finally {
|
|
697
|
-
exitRule();
|
|
698
|
-
}
|
|
699
|
-
return _localctx;
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
public static class ParticipantContext extends ParserRuleContext {
|
|
703
|
-
public NameContext name() {
|
|
704
|
-
return getRuleContext(NameContext.class,0);
|
|
705
|
-
}
|
|
706
|
-
public ParticipantTypeContext participantType() {
|
|
707
|
-
return getRuleContext(ParticipantTypeContext.class,0);
|
|
708
|
-
}
|
|
709
|
-
public StereotypeContext stereotype() {
|
|
710
|
-
return getRuleContext(StereotypeContext.class,0);
|
|
711
|
-
}
|
|
712
|
-
public WidthContext width() {
|
|
713
|
-
return getRuleContext(WidthContext.class,0);
|
|
714
|
-
}
|
|
715
|
-
public LabelContext label() {
|
|
716
|
-
return getRuleContext(LabelContext.class,0);
|
|
717
|
-
}
|
|
718
|
-
public ParticipantContext(ParserRuleContext parent, int invokingState) {
|
|
719
|
-
super(parent, invokingState);
|
|
720
|
-
}
|
|
721
|
-
@Override public int getRuleIndex() { return RULE_participant; }
|
|
722
|
-
@Override
|
|
723
|
-
public void enterRule(ParseTreeListener listener) {
|
|
724
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterParticipant(this);
|
|
725
|
-
}
|
|
726
|
-
@Override
|
|
727
|
-
public void exitRule(ParseTreeListener listener) {
|
|
728
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitParticipant(this);
|
|
729
|
-
}
|
|
730
|
-
@Override
|
|
731
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
732
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitParticipant(this);
|
|
733
|
-
else return visitor.visitChildren(this);
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
public final ParticipantContext participant() throws RecognitionException {
|
|
738
|
-
ParticipantContext _localctx = new ParticipantContext(_ctx, getState());
|
|
739
|
-
enterRule(_localctx, 12, RULE_participant);
|
|
740
|
-
int _la;
|
|
741
|
-
try {
|
|
742
|
-
setState(195);
|
|
743
|
-
_errHandler.sync(this);
|
|
744
|
-
switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) {
|
|
745
|
-
case 1:
|
|
746
|
-
enterOuterAlt(_localctx, 1);
|
|
747
|
-
{
|
|
748
|
-
setState(181);
|
|
749
|
-
_errHandler.sync(this);
|
|
750
|
-
_la = _input.LA(1);
|
|
751
|
-
if (_la==ANNOTATION) {
|
|
752
|
-
{
|
|
753
|
-
setState(180);
|
|
754
|
-
participantType();
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
setState(184);
|
|
759
|
-
_errHandler.sync(this);
|
|
760
|
-
_la = _input.LA(1);
|
|
761
|
-
if (_la==SOPEN || _la==LT) {
|
|
762
|
-
{
|
|
763
|
-
setState(183);
|
|
764
|
-
stereotype();
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
|
|
768
|
-
setState(186);
|
|
769
|
-
name();
|
|
770
|
-
setState(188);
|
|
771
|
-
_errHandler.sync(this);
|
|
772
|
-
switch ( getInterpreter().adaptivePredict(_input,21,_ctx) ) {
|
|
773
|
-
case 1:
|
|
774
|
-
{
|
|
775
|
-
setState(187);
|
|
776
|
-
width();
|
|
777
|
-
}
|
|
778
|
-
break;
|
|
779
|
-
}
|
|
780
|
-
setState(191);
|
|
781
|
-
_errHandler.sync(this);
|
|
782
|
-
_la = _input.LA(1);
|
|
783
|
-
if (_la==AS) {
|
|
784
|
-
{
|
|
785
|
-
setState(190);
|
|
786
|
-
label();
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
}
|
|
791
|
-
break;
|
|
792
|
-
case 2:
|
|
793
|
-
enterOuterAlt(_localctx, 2);
|
|
794
|
-
{
|
|
795
|
-
setState(193);
|
|
796
|
-
stereotype();
|
|
797
|
-
}
|
|
798
|
-
break;
|
|
799
|
-
case 3:
|
|
800
|
-
enterOuterAlt(_localctx, 3);
|
|
801
|
-
{
|
|
802
|
-
setState(194);
|
|
803
|
-
participantType();
|
|
804
|
-
}
|
|
805
|
-
break;
|
|
806
|
-
}
|
|
807
|
-
}
|
|
808
|
-
catch (RecognitionException re) {
|
|
809
|
-
_localctx.exception = re;
|
|
810
|
-
_errHandler.reportError(this, re);
|
|
811
|
-
_errHandler.recover(this, re);
|
|
812
|
-
}
|
|
813
|
-
finally {
|
|
814
|
-
exitRule();
|
|
815
|
-
}
|
|
816
|
-
return _localctx;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
public static class StereotypeContext extends ParserRuleContext {
|
|
820
|
-
public TerminalNode SOPEN() { return getToken(sequenceParser.SOPEN, 0); }
|
|
821
|
-
public NameContext name() {
|
|
822
|
-
return getRuleContext(NameContext.class,0);
|
|
823
|
-
}
|
|
824
|
-
public TerminalNode SCLOSE() { return getToken(sequenceParser.SCLOSE, 0); }
|
|
825
|
-
public TerminalNode GT() { return getToken(sequenceParser.GT, 0); }
|
|
826
|
-
public TerminalNode LT() { return getToken(sequenceParser.LT, 0); }
|
|
827
|
-
public StereotypeContext(ParserRuleContext parent, int invokingState) {
|
|
828
|
-
super(parent, invokingState);
|
|
829
|
-
}
|
|
830
|
-
@Override public int getRuleIndex() { return RULE_stereotype; }
|
|
831
|
-
@Override
|
|
832
|
-
public void enterRule(ParseTreeListener listener) {
|
|
833
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterStereotype(this);
|
|
834
|
-
}
|
|
835
|
-
@Override
|
|
836
|
-
public void exitRule(ParseTreeListener listener) {
|
|
837
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitStereotype(this);
|
|
838
|
-
}
|
|
839
|
-
@Override
|
|
840
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
841
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitStereotype(this);
|
|
842
|
-
else return visitor.visitChildren(this);
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
public final StereotypeContext stereotype() throws RecognitionException {
|
|
847
|
-
StereotypeContext _localctx = new StereotypeContext(_ctx, getState());
|
|
848
|
-
enterRule(_localctx, 14, RULE_stereotype);
|
|
849
|
-
int _la;
|
|
850
|
-
try {
|
|
851
|
-
setState(210);
|
|
852
|
-
_errHandler.sync(this);
|
|
853
|
-
switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) {
|
|
854
|
-
case 1:
|
|
855
|
-
enterOuterAlt(_localctx, 1);
|
|
856
|
-
{
|
|
857
|
-
setState(197);
|
|
858
|
-
match(SOPEN);
|
|
859
|
-
setState(198);
|
|
860
|
-
name();
|
|
861
|
-
setState(199);
|
|
862
|
-
match(SCLOSE);
|
|
863
|
-
}
|
|
864
|
-
break;
|
|
865
|
-
case 2:
|
|
866
|
-
enterOuterAlt(_localctx, 2);
|
|
867
|
-
{
|
|
868
|
-
setState(201);
|
|
869
|
-
match(SOPEN);
|
|
870
|
-
setState(202);
|
|
871
|
-
name();
|
|
872
|
-
setState(204);
|
|
873
|
-
_errHandler.sync(this);
|
|
874
|
-
_la = _input.LA(1);
|
|
875
|
-
if (_la==GT) {
|
|
876
|
-
{
|
|
877
|
-
setState(203);
|
|
878
|
-
match(GT);
|
|
879
|
-
}
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
}
|
|
883
|
-
break;
|
|
884
|
-
case 3:
|
|
885
|
-
enterOuterAlt(_localctx, 3);
|
|
886
|
-
{
|
|
887
|
-
setState(206);
|
|
888
|
-
_la = _input.LA(1);
|
|
889
|
-
if ( !(_la==SOPEN || _la==LT) ) {
|
|
890
|
-
_errHandler.recoverInline(this);
|
|
891
|
-
}
|
|
892
|
-
else {
|
|
893
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
894
|
-
_errHandler.reportMatch(this);
|
|
895
|
-
consume();
|
|
896
|
-
}
|
|
897
|
-
setState(208);
|
|
898
|
-
_errHandler.sync(this);
|
|
899
|
-
_la = _input.LA(1);
|
|
900
|
-
if (_la==SCLOSE || _la==GT) {
|
|
901
|
-
{
|
|
902
|
-
setState(207);
|
|
903
|
-
_la = _input.LA(1);
|
|
904
|
-
if ( !(_la==SCLOSE || _la==GT) ) {
|
|
905
|
-
_errHandler.recoverInline(this);
|
|
906
|
-
}
|
|
907
|
-
else {
|
|
908
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
909
|
-
_errHandler.reportMatch(this);
|
|
910
|
-
consume();
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
}
|
|
916
|
-
break;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
catch (RecognitionException re) {
|
|
920
|
-
_localctx.exception = re;
|
|
921
|
-
_errHandler.reportError(this, re);
|
|
922
|
-
_errHandler.recover(this, re);
|
|
923
|
-
}
|
|
924
|
-
finally {
|
|
925
|
-
exitRule();
|
|
926
|
-
}
|
|
927
|
-
return _localctx;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
public static class LabelContext extends ParserRuleContext {
|
|
931
|
-
public TerminalNode AS() { return getToken(sequenceParser.AS, 0); }
|
|
932
|
-
public NameContext name() {
|
|
933
|
-
return getRuleContext(NameContext.class,0);
|
|
934
|
-
}
|
|
935
|
-
public LabelContext(ParserRuleContext parent, int invokingState) {
|
|
936
|
-
super(parent, invokingState);
|
|
937
|
-
}
|
|
938
|
-
@Override public int getRuleIndex() { return RULE_label; }
|
|
939
|
-
@Override
|
|
940
|
-
public void enterRule(ParseTreeListener listener) {
|
|
941
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterLabel(this);
|
|
942
|
-
}
|
|
943
|
-
@Override
|
|
944
|
-
public void exitRule(ParseTreeListener listener) {
|
|
945
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitLabel(this);
|
|
946
|
-
}
|
|
947
|
-
@Override
|
|
948
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
949
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitLabel(this);
|
|
950
|
-
else return visitor.visitChildren(this);
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
public final LabelContext label() throws RecognitionException {
|
|
955
|
-
LabelContext _localctx = new LabelContext(_ctx, getState());
|
|
956
|
-
enterRule(_localctx, 16, RULE_label);
|
|
957
|
-
try {
|
|
958
|
-
setState(215);
|
|
959
|
-
_errHandler.sync(this);
|
|
960
|
-
switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) {
|
|
961
|
-
case 1:
|
|
962
|
-
enterOuterAlt(_localctx, 1);
|
|
963
|
-
{
|
|
964
|
-
setState(212);
|
|
965
|
-
match(AS);
|
|
966
|
-
setState(213);
|
|
967
|
-
name();
|
|
968
|
-
}
|
|
969
|
-
break;
|
|
970
|
-
case 2:
|
|
971
|
-
enterOuterAlt(_localctx, 2);
|
|
972
|
-
{
|
|
973
|
-
setState(214);
|
|
974
|
-
match(AS);
|
|
975
|
-
}
|
|
976
|
-
break;
|
|
977
|
-
}
|
|
978
|
-
}
|
|
979
|
-
catch (RecognitionException re) {
|
|
980
|
-
_localctx.exception = re;
|
|
981
|
-
_errHandler.reportError(this, re);
|
|
982
|
-
_errHandler.recover(this, re);
|
|
983
|
-
}
|
|
984
|
-
finally {
|
|
985
|
-
exitRule();
|
|
986
|
-
}
|
|
987
|
-
return _localctx;
|
|
988
|
-
}
|
|
989
|
-
|
|
990
|
-
public static class ParticipantTypeContext extends ParserRuleContext {
|
|
991
|
-
public TerminalNode ANNOTATION() { return getToken(sequenceParser.ANNOTATION, 0); }
|
|
992
|
-
public ParticipantTypeContext(ParserRuleContext parent, int invokingState) {
|
|
993
|
-
super(parent, invokingState);
|
|
994
|
-
}
|
|
995
|
-
@Override public int getRuleIndex() { return RULE_participantType; }
|
|
996
|
-
@Override
|
|
997
|
-
public void enterRule(ParseTreeListener listener) {
|
|
998
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterParticipantType(this);
|
|
999
|
-
}
|
|
1000
|
-
@Override
|
|
1001
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1002
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitParticipantType(this);
|
|
1003
|
-
}
|
|
1004
|
-
@Override
|
|
1005
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1006
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitParticipantType(this);
|
|
1007
|
-
else return visitor.visitChildren(this);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
public final ParticipantTypeContext participantType() throws RecognitionException {
|
|
1012
|
-
ParticipantTypeContext _localctx = new ParticipantTypeContext(_ctx, getState());
|
|
1013
|
-
enterRule(_localctx, 18, RULE_participantType);
|
|
1014
|
-
try {
|
|
1015
|
-
enterOuterAlt(_localctx, 1);
|
|
1016
|
-
{
|
|
1017
|
-
setState(217);
|
|
1018
|
-
match(ANNOTATION);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
catch (RecognitionException re) {
|
|
1022
|
-
_localctx.exception = re;
|
|
1023
|
-
_errHandler.reportError(this, re);
|
|
1024
|
-
_errHandler.recover(this, re);
|
|
1025
|
-
}
|
|
1026
|
-
finally {
|
|
1027
|
-
exitRule();
|
|
1028
|
-
}
|
|
1029
|
-
return _localctx;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
public static class NameContext extends ParserRuleContext {
|
|
1033
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
1034
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
1035
|
-
public NameContext(ParserRuleContext parent, int invokingState) {
|
|
1036
|
-
super(parent, invokingState);
|
|
1037
|
-
}
|
|
1038
|
-
@Override public int getRuleIndex() { return RULE_name; }
|
|
1039
|
-
@Override
|
|
1040
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1041
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterName(this);
|
|
1042
|
-
}
|
|
1043
|
-
@Override
|
|
1044
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1045
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitName(this);
|
|
1046
|
-
}
|
|
1047
|
-
@Override
|
|
1048
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1049
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitName(this);
|
|
1050
|
-
else return visitor.visitChildren(this);
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
public final NameContext name() throws RecognitionException {
|
|
1055
|
-
NameContext _localctx = new NameContext(_ctx, getState());
|
|
1056
|
-
enterRule(_localctx, 20, RULE_name);
|
|
1057
|
-
int _la;
|
|
1058
|
-
try {
|
|
1059
|
-
enterOuterAlt(_localctx, 1);
|
|
1060
|
-
{
|
|
1061
|
-
setState(219);
|
|
1062
|
-
_la = _input.LA(1);
|
|
1063
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
1064
|
-
_errHandler.recoverInline(this);
|
|
1065
|
-
}
|
|
1066
|
-
else {
|
|
1067
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
1068
|
-
_errHandler.reportMatch(this);
|
|
1069
|
-
consume();
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
catch (RecognitionException re) {
|
|
1074
|
-
_localctx.exception = re;
|
|
1075
|
-
_errHandler.reportError(this, re);
|
|
1076
|
-
_errHandler.recover(this, re);
|
|
1077
|
-
}
|
|
1078
|
-
finally {
|
|
1079
|
-
exitRule();
|
|
1080
|
-
}
|
|
1081
|
-
return _localctx;
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
public static class WidthContext extends ParserRuleContext {
|
|
1085
|
-
public TerminalNode INT() { return getToken(sequenceParser.INT, 0); }
|
|
1086
|
-
public WidthContext(ParserRuleContext parent, int invokingState) {
|
|
1087
|
-
super(parent, invokingState);
|
|
1088
|
-
}
|
|
1089
|
-
@Override public int getRuleIndex() { return RULE_width; }
|
|
1090
|
-
@Override
|
|
1091
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1092
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterWidth(this);
|
|
1093
|
-
}
|
|
1094
|
-
@Override
|
|
1095
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1096
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitWidth(this);
|
|
1097
|
-
}
|
|
1098
|
-
@Override
|
|
1099
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1100
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitWidth(this);
|
|
1101
|
-
else return visitor.visitChildren(this);
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
public final WidthContext width() throws RecognitionException {
|
|
1106
|
-
WidthContext _localctx = new WidthContext(_ctx, getState());
|
|
1107
|
-
enterRule(_localctx, 22, RULE_width);
|
|
1108
|
-
try {
|
|
1109
|
-
enterOuterAlt(_localctx, 1);
|
|
1110
|
-
{
|
|
1111
|
-
setState(221);
|
|
1112
|
-
match(INT);
|
|
1113
|
-
}
|
|
1114
|
-
}
|
|
1115
|
-
catch (RecognitionException re) {
|
|
1116
|
-
_localctx.exception = re;
|
|
1117
|
-
_errHandler.reportError(this, re);
|
|
1118
|
-
_errHandler.recover(this, re);
|
|
1119
|
-
}
|
|
1120
|
-
finally {
|
|
1121
|
-
exitRule();
|
|
1122
|
-
}
|
|
1123
|
-
return _localctx;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
public static class BlockContext extends ParserRuleContext {
|
|
1127
|
-
public List<StatContext> stat() {
|
|
1128
|
-
return getRuleContexts(StatContext.class);
|
|
1129
|
-
}
|
|
1130
|
-
public StatContext stat(int i) {
|
|
1131
|
-
return getRuleContext(StatContext.class,i);
|
|
1132
|
-
}
|
|
1133
|
-
public BlockContext(ParserRuleContext parent, int invokingState) {
|
|
1134
|
-
super(parent, invokingState);
|
|
1135
|
-
}
|
|
1136
|
-
@Override public int getRuleIndex() { return RULE_block; }
|
|
1137
|
-
@Override
|
|
1138
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1139
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterBlock(this);
|
|
1140
|
-
}
|
|
1141
|
-
@Override
|
|
1142
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1143
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitBlock(this);
|
|
1144
|
-
}
|
|
1145
|
-
@Override
|
|
1146
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1147
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitBlock(this);
|
|
1148
|
-
else return visitor.visitChildren(this);
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
public final BlockContext block() throws RecognitionException {
|
|
1153
|
-
BlockContext _localctx = new BlockContext(_ctx, getState());
|
|
1154
|
-
enterRule(_localctx, 24, RULE_block);
|
|
1155
|
-
int _la;
|
|
1156
|
-
try {
|
|
1157
|
-
enterOuterAlt(_localctx, 1);
|
|
1158
|
-
{
|
|
1159
|
-
setState(224);
|
|
1160
|
-
_errHandler.sync(this);
|
|
1161
|
-
_la = _input.LA(1);
|
|
1162
|
-
do {
|
|
1163
|
-
{
|
|
1164
|
-
{
|
|
1165
|
-
setState(223);
|
|
1166
|
-
stat();
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
setState(226);
|
|
1170
|
-
_errHandler.sync(this);
|
|
1171
|
-
_la = _input.LA(1);
|
|
1172
|
-
} while ( (((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << EQ) | (1L << TRUE) | (1L << FALSE) | (1L << NIL) | (1L << IF) | (1L << WHILE) | (1L << RETURN) | (1L << NEW) | (1L << PAR) | (1L << OPT) | (1L << TRY) | (1L << ANNOTATION_RET) | (1L << ID) | (1L << INT) | (1L << FLOAT) | (1L << STRING) | (1L << COMMENT) | (1L << OTHER))) != 0) );
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
catch (RecognitionException re) {
|
|
1176
|
-
_localctx.exception = re;
|
|
1177
|
-
_errHandler.reportError(this, re);
|
|
1178
|
-
_errHandler.recover(this, re);
|
|
1179
|
-
}
|
|
1180
|
-
finally {
|
|
1181
|
-
exitRule();
|
|
1182
|
-
}
|
|
1183
|
-
return _localctx;
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
public static class RetContext extends ParserRuleContext {
|
|
1187
|
-
public TerminalNode RETURN() { return getToken(sequenceParser.RETURN, 0); }
|
|
1188
|
-
public ExprContext expr() {
|
|
1189
|
-
return getRuleContext(ExprContext.class,0);
|
|
1190
|
-
}
|
|
1191
|
-
public TerminalNode SCOL() { return getToken(sequenceParser.SCOL, 0); }
|
|
1192
|
-
public TerminalNode ANNOTATION_RET() { return getToken(sequenceParser.ANNOTATION_RET, 0); }
|
|
1193
|
-
public AsyncMessageContext asyncMessage() {
|
|
1194
|
-
return getRuleContext(AsyncMessageContext.class,0);
|
|
1195
|
-
}
|
|
1196
|
-
public TerminalNode EVENT_END() { return getToken(sequenceParser.EVENT_END, 0); }
|
|
1197
|
-
public RetContext(ParserRuleContext parent, int invokingState) {
|
|
1198
|
-
super(parent, invokingState);
|
|
1199
|
-
}
|
|
1200
|
-
@Override public int getRuleIndex() { return RULE_ret; }
|
|
1201
|
-
@Override
|
|
1202
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1203
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterRet(this);
|
|
1204
|
-
}
|
|
1205
|
-
@Override
|
|
1206
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1207
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitRet(this);
|
|
1208
|
-
}
|
|
1209
|
-
@Override
|
|
1210
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1211
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitRet(this);
|
|
1212
|
-
else return visitor.visitChildren(this);
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
public final RetContext ret() throws RecognitionException {
|
|
1217
|
-
RetContext _localctx = new RetContext(_ctx, getState());
|
|
1218
|
-
enterRule(_localctx, 26, RULE_ret);
|
|
1219
|
-
int _la;
|
|
1220
|
-
try {
|
|
1221
|
-
setState(240);
|
|
1222
|
-
_errHandler.sync(this);
|
|
1223
|
-
switch (_input.LA(1)) {
|
|
1224
|
-
case RETURN:
|
|
1225
|
-
enterOuterAlt(_localctx, 1);
|
|
1226
|
-
{
|
|
1227
|
-
setState(228);
|
|
1228
|
-
match(RETURN);
|
|
1229
|
-
setState(230);
|
|
1230
|
-
_errHandler.sync(this);
|
|
1231
|
-
switch ( getInterpreter().adaptivePredict(_input,29,_ctx) ) {
|
|
1232
|
-
case 1:
|
|
1233
|
-
{
|
|
1234
|
-
setState(229);
|
|
1235
|
-
expr(0);
|
|
1236
|
-
}
|
|
1237
|
-
break;
|
|
1238
|
-
}
|
|
1239
|
-
setState(233);
|
|
1240
|
-
_errHandler.sync(this);
|
|
1241
|
-
_la = _input.LA(1);
|
|
1242
|
-
if (_la==SCOL) {
|
|
1243
|
-
{
|
|
1244
|
-
setState(232);
|
|
1245
|
-
match(SCOL);
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
}
|
|
1250
|
-
break;
|
|
1251
|
-
case ANNOTATION_RET:
|
|
1252
|
-
enterOuterAlt(_localctx, 2);
|
|
1253
|
-
{
|
|
1254
|
-
setState(235);
|
|
1255
|
-
match(ANNOTATION_RET);
|
|
1256
|
-
setState(236);
|
|
1257
|
-
asyncMessage();
|
|
1258
|
-
setState(238);
|
|
1259
|
-
_errHandler.sync(this);
|
|
1260
|
-
_la = _input.LA(1);
|
|
1261
|
-
if (_la==EVENT_END) {
|
|
1262
|
-
{
|
|
1263
|
-
setState(237);
|
|
1264
|
-
match(EVENT_END);
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
}
|
|
1269
|
-
break;
|
|
1270
|
-
default:
|
|
1271
|
-
throw new NoViableAltException(this);
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
catch (RecognitionException re) {
|
|
1275
|
-
_localctx.exception = re;
|
|
1276
|
-
_errHandler.reportError(this, re);
|
|
1277
|
-
_errHandler.recover(this, re);
|
|
1278
|
-
}
|
|
1279
|
-
finally {
|
|
1280
|
-
exitRule();
|
|
1281
|
-
}
|
|
1282
|
-
return _localctx;
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
public static class DividerContext extends ParserRuleContext {
|
|
1286
|
-
public List<TerminalNode> EQ() { return getTokens(sequenceParser.EQ); }
|
|
1287
|
-
public TerminalNode EQ(int i) {
|
|
1288
|
-
return getToken(sequenceParser.EQ, i);
|
|
1289
|
-
}
|
|
1290
|
-
public NameContext name() {
|
|
1291
|
-
return getRuleContext(NameContext.class,0);
|
|
1292
|
-
}
|
|
1293
|
-
public List<TerminalNode> ASSIGN() { return getTokens(sequenceParser.ASSIGN); }
|
|
1294
|
-
public TerminalNode ASSIGN(int i) {
|
|
1295
|
-
return getToken(sequenceParser.ASSIGN, i);
|
|
1296
|
-
}
|
|
1297
|
-
public DividerContext(ParserRuleContext parent, int invokingState) {
|
|
1298
|
-
super(parent, invokingState);
|
|
1299
|
-
}
|
|
1300
|
-
@Override public int getRuleIndex() { return RULE_divider; }
|
|
1301
|
-
@Override
|
|
1302
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1303
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterDivider(this);
|
|
1304
|
-
}
|
|
1305
|
-
@Override
|
|
1306
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1307
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitDivider(this);
|
|
1308
|
-
}
|
|
1309
|
-
@Override
|
|
1310
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1311
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitDivider(this);
|
|
1312
|
-
else return visitor.visitChildren(this);
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
public final DividerContext divider() throws RecognitionException {
|
|
1317
|
-
DividerContext _localctx = new DividerContext(_ctx, getState());
|
|
1318
|
-
enterRule(_localctx, 28, RULE_divider);
|
|
1319
|
-
int _la;
|
|
1320
|
-
try {
|
|
1321
|
-
int _alt;
|
|
1322
|
-
enterOuterAlt(_localctx, 1);
|
|
1323
|
-
{
|
|
1324
|
-
setState(242);
|
|
1325
|
-
match(EQ);
|
|
1326
|
-
setState(246);
|
|
1327
|
-
_errHandler.sync(this);
|
|
1328
|
-
_la = _input.LA(1);
|
|
1329
|
-
while (_la==EQ || _la==ASSIGN) {
|
|
1330
|
-
{
|
|
1331
|
-
{
|
|
1332
|
-
setState(243);
|
|
1333
|
-
_la = _input.LA(1);
|
|
1334
|
-
if ( !(_la==EQ || _la==ASSIGN) ) {
|
|
1335
|
-
_errHandler.recoverInline(this);
|
|
1336
|
-
}
|
|
1337
|
-
else {
|
|
1338
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
1339
|
-
_errHandler.reportMatch(this);
|
|
1340
|
-
consume();
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
setState(248);
|
|
1345
|
-
_errHandler.sync(this);
|
|
1346
|
-
_la = _input.LA(1);
|
|
1347
|
-
}
|
|
1348
|
-
setState(249);
|
|
1349
|
-
name();
|
|
1350
|
-
setState(250);
|
|
1351
|
-
match(EQ);
|
|
1352
|
-
setState(254);
|
|
1353
|
-
_errHandler.sync(this);
|
|
1354
|
-
_alt = getInterpreter().adaptivePredict(_input,34,_ctx);
|
|
1355
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
1356
|
-
if ( _alt==1 ) {
|
|
1357
|
-
{
|
|
1358
|
-
{
|
|
1359
|
-
setState(251);
|
|
1360
|
-
_la = _input.LA(1);
|
|
1361
|
-
if ( !(_la==EQ || _la==ASSIGN) ) {
|
|
1362
|
-
_errHandler.recoverInline(this);
|
|
1363
|
-
}
|
|
1364
|
-
else {
|
|
1365
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
1366
|
-
_errHandler.reportMatch(this);
|
|
1367
|
-
consume();
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
setState(256);
|
|
1373
|
-
_errHandler.sync(this);
|
|
1374
|
-
_alt = getInterpreter().adaptivePredict(_input,34,_ctx);
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
catch (RecognitionException re) {
|
|
1379
|
-
_localctx.exception = re;
|
|
1380
|
-
_errHandler.reportError(this, re);
|
|
1381
|
-
_errHandler.recover(this, re);
|
|
1382
|
-
}
|
|
1383
|
-
finally {
|
|
1384
|
-
exitRule();
|
|
1385
|
-
}
|
|
1386
|
-
return _localctx;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
public static class StatContext extends ParserRuleContext {
|
|
1390
|
-
public Token OTHER;
|
|
1391
|
-
public AltContext alt() {
|
|
1392
|
-
return getRuleContext(AltContext.class,0);
|
|
1393
|
-
}
|
|
1394
|
-
public ParContext par() {
|
|
1395
|
-
return getRuleContext(ParContext.class,0);
|
|
1396
|
-
}
|
|
1397
|
-
public OptContext opt() {
|
|
1398
|
-
return getRuleContext(OptContext.class,0);
|
|
1399
|
-
}
|
|
1400
|
-
public LoopContext loop() {
|
|
1401
|
-
return getRuleContext(LoopContext.class,0);
|
|
1402
|
-
}
|
|
1403
|
-
public CreationContext creation() {
|
|
1404
|
-
return getRuleContext(CreationContext.class,0);
|
|
1405
|
-
}
|
|
1406
|
-
public MessageContext message() {
|
|
1407
|
-
return getRuleContext(MessageContext.class,0);
|
|
1408
|
-
}
|
|
1409
|
-
public AsyncMessageContext asyncMessage() {
|
|
1410
|
-
return getRuleContext(AsyncMessageContext.class,0);
|
|
1411
|
-
}
|
|
1412
|
-
public TerminalNode EVENT_END() { return getToken(sequenceParser.EVENT_END, 0); }
|
|
1413
|
-
public RetContext ret() {
|
|
1414
|
-
return getRuleContext(RetContext.class,0);
|
|
1415
|
-
}
|
|
1416
|
-
public DividerContext divider() {
|
|
1417
|
-
return getRuleContext(DividerContext.class,0);
|
|
1418
|
-
}
|
|
1419
|
-
public TcfContext tcf() {
|
|
1420
|
-
return getRuleContext(TcfContext.class,0);
|
|
1421
|
-
}
|
|
1422
|
-
public TerminalNode COMMENT() { return getToken(sequenceParser.COMMENT, 0); }
|
|
1423
|
-
public TerminalNode OTHER() { return getToken(sequenceParser.OTHER, 0); }
|
|
1424
|
-
public StatContext(ParserRuleContext parent, int invokingState) {
|
|
1425
|
-
super(parent, invokingState);
|
|
1426
|
-
}
|
|
1427
|
-
@Override public int getRuleIndex() { return RULE_stat; }
|
|
1428
|
-
@Override
|
|
1429
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1430
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterStat(this);
|
|
1431
|
-
}
|
|
1432
|
-
@Override
|
|
1433
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1434
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitStat(this);
|
|
1435
|
-
}
|
|
1436
|
-
@Override
|
|
1437
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1438
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitStat(this);
|
|
1439
|
-
else return visitor.visitChildren(this);
|
|
1440
|
-
}
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
public final StatContext stat() throws RecognitionException {
|
|
1444
|
-
StatContext _localctx = new StatContext(_ctx, getState());
|
|
1445
|
-
enterRule(_localctx, 30, RULE_stat);
|
|
1446
|
-
int _la;
|
|
1447
|
-
try {
|
|
1448
|
-
setState(273);
|
|
1449
|
-
_errHandler.sync(this);
|
|
1450
|
-
switch ( getInterpreter().adaptivePredict(_input,36,_ctx) ) {
|
|
1451
|
-
case 1:
|
|
1452
|
-
enterOuterAlt(_localctx, 1);
|
|
1453
|
-
{
|
|
1454
|
-
setState(257);
|
|
1455
|
-
alt();
|
|
1456
|
-
}
|
|
1457
|
-
break;
|
|
1458
|
-
case 2:
|
|
1459
|
-
enterOuterAlt(_localctx, 2);
|
|
1460
|
-
{
|
|
1461
|
-
setState(258);
|
|
1462
|
-
par();
|
|
1463
|
-
}
|
|
1464
|
-
break;
|
|
1465
|
-
case 3:
|
|
1466
|
-
enterOuterAlt(_localctx, 3);
|
|
1467
|
-
{
|
|
1468
|
-
setState(259);
|
|
1469
|
-
opt();
|
|
1470
|
-
}
|
|
1471
|
-
break;
|
|
1472
|
-
case 4:
|
|
1473
|
-
enterOuterAlt(_localctx, 4);
|
|
1474
|
-
{
|
|
1475
|
-
setState(260);
|
|
1476
|
-
loop();
|
|
1477
|
-
}
|
|
1478
|
-
break;
|
|
1479
|
-
case 5:
|
|
1480
|
-
enterOuterAlt(_localctx, 5);
|
|
1481
|
-
{
|
|
1482
|
-
setState(261);
|
|
1483
|
-
creation();
|
|
1484
|
-
}
|
|
1485
|
-
break;
|
|
1486
|
-
case 6:
|
|
1487
|
-
enterOuterAlt(_localctx, 6);
|
|
1488
|
-
{
|
|
1489
|
-
setState(262);
|
|
1490
|
-
message();
|
|
1491
|
-
}
|
|
1492
|
-
break;
|
|
1493
|
-
case 7:
|
|
1494
|
-
enterOuterAlt(_localctx, 7);
|
|
1495
|
-
{
|
|
1496
|
-
setState(263);
|
|
1497
|
-
asyncMessage();
|
|
1498
|
-
setState(265);
|
|
1499
|
-
_errHandler.sync(this);
|
|
1500
|
-
_la = _input.LA(1);
|
|
1501
|
-
if (_la==EVENT_END) {
|
|
1502
|
-
{
|
|
1503
|
-
setState(264);
|
|
1504
|
-
match(EVENT_END);
|
|
1505
|
-
}
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
}
|
|
1509
|
-
break;
|
|
1510
|
-
case 8:
|
|
1511
|
-
enterOuterAlt(_localctx, 8);
|
|
1512
|
-
{
|
|
1513
|
-
setState(267);
|
|
1514
|
-
ret();
|
|
1515
|
-
}
|
|
1516
|
-
break;
|
|
1517
|
-
case 9:
|
|
1518
|
-
enterOuterAlt(_localctx, 9);
|
|
1519
|
-
{
|
|
1520
|
-
setState(268);
|
|
1521
|
-
divider();
|
|
1522
|
-
}
|
|
1523
|
-
break;
|
|
1524
|
-
case 10:
|
|
1525
|
-
enterOuterAlt(_localctx, 10);
|
|
1526
|
-
{
|
|
1527
|
-
setState(269);
|
|
1528
|
-
tcf();
|
|
1529
|
-
}
|
|
1530
|
-
break;
|
|
1531
|
-
case 11:
|
|
1532
|
-
enterOuterAlt(_localctx, 11);
|
|
1533
|
-
{
|
|
1534
|
-
setState(270);
|
|
1535
|
-
match(COMMENT);
|
|
1536
|
-
}
|
|
1537
|
-
break;
|
|
1538
|
-
case 12:
|
|
1539
|
-
enterOuterAlt(_localctx, 12);
|
|
1540
|
-
{
|
|
1541
|
-
setState(271);
|
|
1542
|
-
((StatContext)_localctx).OTHER = match(OTHER);
|
|
1543
|
-
console.log("unknown char: " + (((StatContext)_localctx).OTHER!=null?((StatContext)_localctx).OTHER.getText():null));
|
|
1544
|
-
}
|
|
1545
|
-
break;
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
catch (RecognitionException re) {
|
|
1549
|
-
_localctx.exception = re;
|
|
1550
|
-
_errHandler.reportError(this, re);
|
|
1551
|
-
_errHandler.recover(this, re);
|
|
1552
|
-
}
|
|
1553
|
-
finally {
|
|
1554
|
-
exitRule();
|
|
1555
|
-
}
|
|
1556
|
-
return _localctx;
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
public static class ParContext extends ParserRuleContext {
|
|
1560
|
-
public TerminalNode PAR() { return getToken(sequenceParser.PAR, 0); }
|
|
1561
|
-
public BraceBlockContext braceBlock() {
|
|
1562
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
1563
|
-
}
|
|
1564
|
-
public ParContext(ParserRuleContext parent, int invokingState) {
|
|
1565
|
-
super(parent, invokingState);
|
|
1566
|
-
}
|
|
1567
|
-
@Override public int getRuleIndex() { return RULE_par; }
|
|
1568
|
-
@Override
|
|
1569
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1570
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterPar(this);
|
|
1571
|
-
}
|
|
1572
|
-
@Override
|
|
1573
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1574
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitPar(this);
|
|
1575
|
-
}
|
|
1576
|
-
@Override
|
|
1577
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1578
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitPar(this);
|
|
1579
|
-
else return visitor.visitChildren(this);
|
|
1580
|
-
}
|
|
1581
|
-
}
|
|
1582
|
-
|
|
1583
|
-
public final ParContext par() throws RecognitionException {
|
|
1584
|
-
ParContext _localctx = new ParContext(_ctx, getState());
|
|
1585
|
-
enterRule(_localctx, 32, RULE_par);
|
|
1586
|
-
try {
|
|
1587
|
-
setState(278);
|
|
1588
|
-
_errHandler.sync(this);
|
|
1589
|
-
switch ( getInterpreter().adaptivePredict(_input,37,_ctx) ) {
|
|
1590
|
-
case 1:
|
|
1591
|
-
enterOuterAlt(_localctx, 1);
|
|
1592
|
-
{
|
|
1593
|
-
setState(275);
|
|
1594
|
-
match(PAR);
|
|
1595
|
-
setState(276);
|
|
1596
|
-
braceBlock();
|
|
1597
|
-
}
|
|
1598
|
-
break;
|
|
1599
|
-
case 2:
|
|
1600
|
-
enterOuterAlt(_localctx, 2);
|
|
1601
|
-
{
|
|
1602
|
-
setState(277);
|
|
1603
|
-
match(PAR);
|
|
1604
|
-
}
|
|
1605
|
-
break;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
catch (RecognitionException re) {
|
|
1609
|
-
_localctx.exception = re;
|
|
1610
|
-
_errHandler.reportError(this, re);
|
|
1611
|
-
_errHandler.recover(this, re);
|
|
1612
|
-
}
|
|
1613
|
-
finally {
|
|
1614
|
-
exitRule();
|
|
1615
|
-
}
|
|
1616
|
-
return _localctx;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
public static class OptContext extends ParserRuleContext {
|
|
1620
|
-
public TerminalNode OPT() { return getToken(sequenceParser.OPT, 0); }
|
|
1621
|
-
public BraceBlockContext braceBlock() {
|
|
1622
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
1623
|
-
}
|
|
1624
|
-
public OptContext(ParserRuleContext parent, int invokingState) {
|
|
1625
|
-
super(parent, invokingState);
|
|
1626
|
-
}
|
|
1627
|
-
@Override public int getRuleIndex() { return RULE_opt; }
|
|
1628
|
-
@Override
|
|
1629
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1630
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterOpt(this);
|
|
1631
|
-
}
|
|
1632
|
-
@Override
|
|
1633
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1634
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitOpt(this);
|
|
1635
|
-
}
|
|
1636
|
-
@Override
|
|
1637
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1638
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitOpt(this);
|
|
1639
|
-
else return visitor.visitChildren(this);
|
|
1640
|
-
}
|
|
1641
|
-
}
|
|
1642
|
-
|
|
1643
|
-
public final OptContext opt() throws RecognitionException {
|
|
1644
|
-
OptContext _localctx = new OptContext(_ctx, getState());
|
|
1645
|
-
enterRule(_localctx, 34, RULE_opt);
|
|
1646
|
-
try {
|
|
1647
|
-
setState(283);
|
|
1648
|
-
_errHandler.sync(this);
|
|
1649
|
-
switch ( getInterpreter().adaptivePredict(_input,38,_ctx) ) {
|
|
1650
|
-
case 1:
|
|
1651
|
-
enterOuterAlt(_localctx, 1);
|
|
1652
|
-
{
|
|
1653
|
-
setState(280);
|
|
1654
|
-
match(OPT);
|
|
1655
|
-
setState(281);
|
|
1656
|
-
braceBlock();
|
|
1657
|
-
}
|
|
1658
|
-
break;
|
|
1659
|
-
case 2:
|
|
1660
|
-
enterOuterAlt(_localctx, 2);
|
|
1661
|
-
{
|
|
1662
|
-
setState(282);
|
|
1663
|
-
match(OPT);
|
|
1664
|
-
}
|
|
1665
|
-
break;
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
catch (RecognitionException re) {
|
|
1669
|
-
_localctx.exception = re;
|
|
1670
|
-
_errHandler.reportError(this, re);
|
|
1671
|
-
_errHandler.recover(this, re);
|
|
1672
|
-
}
|
|
1673
|
-
finally {
|
|
1674
|
-
exitRule();
|
|
1675
|
-
}
|
|
1676
|
-
return _localctx;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
public static class CreationContext extends ParserRuleContext {
|
|
1680
|
-
public CreationBodyContext creationBody() {
|
|
1681
|
-
return getRuleContext(CreationBodyContext.class,0);
|
|
1682
|
-
}
|
|
1683
|
-
public TerminalNode SCOL() { return getToken(sequenceParser.SCOL, 0); }
|
|
1684
|
-
public BraceBlockContext braceBlock() {
|
|
1685
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
1686
|
-
}
|
|
1687
|
-
public CreationContext(ParserRuleContext parent, int invokingState) {
|
|
1688
|
-
super(parent, invokingState);
|
|
1689
|
-
}
|
|
1690
|
-
@Override public int getRuleIndex() { return RULE_creation; }
|
|
1691
|
-
@Override
|
|
1692
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1693
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterCreation(this);
|
|
1694
|
-
}
|
|
1695
|
-
@Override
|
|
1696
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1697
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitCreation(this);
|
|
1698
|
-
}
|
|
1699
|
-
@Override
|
|
1700
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1701
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitCreation(this);
|
|
1702
|
-
else return visitor.visitChildren(this);
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
public final CreationContext creation() throws RecognitionException {
|
|
1707
|
-
CreationContext _localctx = new CreationContext(_ctx, getState());
|
|
1708
|
-
enterRule(_localctx, 36, RULE_creation);
|
|
1709
|
-
try {
|
|
1710
|
-
enterOuterAlt(_localctx, 1);
|
|
1711
|
-
{
|
|
1712
|
-
setState(285);
|
|
1713
|
-
creationBody();
|
|
1714
|
-
setState(288);
|
|
1715
|
-
_errHandler.sync(this);
|
|
1716
|
-
switch ( getInterpreter().adaptivePredict(_input,39,_ctx) ) {
|
|
1717
|
-
case 1:
|
|
1718
|
-
{
|
|
1719
|
-
setState(286);
|
|
1720
|
-
match(SCOL);
|
|
1721
|
-
}
|
|
1722
|
-
break;
|
|
1723
|
-
case 2:
|
|
1724
|
-
{
|
|
1725
|
-
setState(287);
|
|
1726
|
-
braceBlock();
|
|
1727
|
-
}
|
|
1728
|
-
break;
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
catch (RecognitionException re) {
|
|
1733
|
-
_localctx.exception = re;
|
|
1734
|
-
_errHandler.reportError(this, re);
|
|
1735
|
-
_errHandler.recover(this, re);
|
|
1736
|
-
}
|
|
1737
|
-
finally {
|
|
1738
|
-
exitRule();
|
|
1739
|
-
}
|
|
1740
|
-
return _localctx;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
public static class CreationBodyContext extends ParserRuleContext {
|
|
1744
|
-
public TerminalNode NEW() { return getToken(sequenceParser.NEW, 0); }
|
|
1745
|
-
public ConstructContext construct() {
|
|
1746
|
-
return getRuleContext(ConstructContext.class,0);
|
|
1747
|
-
}
|
|
1748
|
-
public AssignmentContext assignment() {
|
|
1749
|
-
return getRuleContext(AssignmentContext.class,0);
|
|
1750
|
-
}
|
|
1751
|
-
public TerminalNode OPAR() { return getToken(sequenceParser.OPAR, 0); }
|
|
1752
|
-
public TerminalNode CPAR() { return getToken(sequenceParser.CPAR, 0); }
|
|
1753
|
-
public ParametersContext parameters() {
|
|
1754
|
-
return getRuleContext(ParametersContext.class,0);
|
|
1755
|
-
}
|
|
1756
|
-
public CreationBodyContext(ParserRuleContext parent, int invokingState) {
|
|
1757
|
-
super(parent, invokingState);
|
|
1758
|
-
}
|
|
1759
|
-
@Override public int getRuleIndex() { return RULE_creationBody; }
|
|
1760
|
-
@Override
|
|
1761
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1762
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterCreationBody(this);
|
|
1763
|
-
}
|
|
1764
|
-
@Override
|
|
1765
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1766
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitCreationBody(this);
|
|
1767
|
-
}
|
|
1768
|
-
@Override
|
|
1769
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1770
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitCreationBody(this);
|
|
1771
|
-
else return visitor.visitChildren(this);
|
|
1772
|
-
}
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
public final CreationBodyContext creationBody() throws RecognitionException {
|
|
1776
|
-
CreationBodyContext _localctx = new CreationBodyContext(_ctx, getState());
|
|
1777
|
-
enterRule(_localctx, 38, RULE_creationBody);
|
|
1778
|
-
int _la;
|
|
1779
|
-
try {
|
|
1780
|
-
enterOuterAlt(_localctx, 1);
|
|
1781
|
-
{
|
|
1782
|
-
setState(291);
|
|
1783
|
-
_errHandler.sync(this);
|
|
1784
|
-
_la = _input.LA(1);
|
|
1785
|
-
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << TRUE) | (1L << FALSE) | (1L << NIL) | (1L << ID) | (1L << INT) | (1L << FLOAT) | (1L << STRING))) != 0)) {
|
|
1786
|
-
{
|
|
1787
|
-
setState(290);
|
|
1788
|
-
assignment();
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
setState(293);
|
|
1793
|
-
match(NEW);
|
|
1794
|
-
setState(294);
|
|
1795
|
-
construct();
|
|
1796
|
-
setState(300);
|
|
1797
|
-
_errHandler.sync(this);
|
|
1798
|
-
switch ( getInterpreter().adaptivePredict(_input,42,_ctx) ) {
|
|
1799
|
-
case 1:
|
|
1800
|
-
{
|
|
1801
|
-
setState(295);
|
|
1802
|
-
match(OPAR);
|
|
1803
|
-
setState(297);
|
|
1804
|
-
_errHandler.sync(this);
|
|
1805
|
-
_la = _input.LA(1);
|
|
1806
|
-
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MINUS) | (1L << NOT) | (1L << TRUE) | (1L << FALSE) | (1L << NIL) | (1L << NEW) | (1L << ID) | (1L << INT) | (1L << FLOAT) | (1L << STRING))) != 0)) {
|
|
1807
|
-
{
|
|
1808
|
-
setState(296);
|
|
1809
|
-
parameters();
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
|
|
1813
|
-
setState(299);
|
|
1814
|
-
match(CPAR);
|
|
1815
|
-
}
|
|
1816
|
-
break;
|
|
1817
|
-
}
|
|
1818
|
-
}
|
|
1819
|
-
}
|
|
1820
|
-
catch (RecognitionException re) {
|
|
1821
|
-
_localctx.exception = re;
|
|
1822
|
-
_errHandler.reportError(this, re);
|
|
1823
|
-
_errHandler.recover(this, re);
|
|
1824
|
-
}
|
|
1825
|
-
finally {
|
|
1826
|
-
exitRule();
|
|
1827
|
-
}
|
|
1828
|
-
return _localctx;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
public static class MessageContext extends ParserRuleContext {
|
|
1832
|
-
public MessageBodyContext messageBody() {
|
|
1833
|
-
return getRuleContext(MessageBodyContext.class,0);
|
|
1834
|
-
}
|
|
1835
|
-
public TerminalNode SCOL() { return getToken(sequenceParser.SCOL, 0); }
|
|
1836
|
-
public BraceBlockContext braceBlock() {
|
|
1837
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
1838
|
-
}
|
|
1839
|
-
public MessageContext(ParserRuleContext parent, int invokingState) {
|
|
1840
|
-
super(parent, invokingState);
|
|
1841
|
-
}
|
|
1842
|
-
@Override public int getRuleIndex() { return RULE_message; }
|
|
1843
|
-
@Override
|
|
1844
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1845
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterMessage(this);
|
|
1846
|
-
}
|
|
1847
|
-
@Override
|
|
1848
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1849
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitMessage(this);
|
|
1850
|
-
}
|
|
1851
|
-
@Override
|
|
1852
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1853
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitMessage(this);
|
|
1854
|
-
else return visitor.visitChildren(this);
|
|
1855
|
-
}
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
public final MessageContext message() throws RecognitionException {
|
|
1859
|
-
MessageContext _localctx = new MessageContext(_ctx, getState());
|
|
1860
|
-
enterRule(_localctx, 40, RULE_message);
|
|
1861
|
-
try {
|
|
1862
|
-
enterOuterAlt(_localctx, 1);
|
|
1863
|
-
{
|
|
1864
|
-
setState(302);
|
|
1865
|
-
messageBody();
|
|
1866
|
-
setState(305);
|
|
1867
|
-
_errHandler.sync(this);
|
|
1868
|
-
switch (_input.LA(1)) {
|
|
1869
|
-
case SCOL:
|
|
1870
|
-
{
|
|
1871
|
-
setState(303);
|
|
1872
|
-
match(SCOL);
|
|
1873
|
-
}
|
|
1874
|
-
break;
|
|
1875
|
-
case OBRACE:
|
|
1876
|
-
{
|
|
1877
|
-
setState(304);
|
|
1878
|
-
braceBlock();
|
|
1879
|
-
}
|
|
1880
|
-
break;
|
|
1881
|
-
case EOF:
|
|
1882
|
-
case EQ:
|
|
1883
|
-
case CBRACE:
|
|
1884
|
-
case TRUE:
|
|
1885
|
-
case FALSE:
|
|
1886
|
-
case NIL:
|
|
1887
|
-
case IF:
|
|
1888
|
-
case WHILE:
|
|
1889
|
-
case RETURN:
|
|
1890
|
-
case NEW:
|
|
1891
|
-
case PAR:
|
|
1892
|
-
case OPT:
|
|
1893
|
-
case TRY:
|
|
1894
|
-
case ANNOTATION_RET:
|
|
1895
|
-
case ID:
|
|
1896
|
-
case INT:
|
|
1897
|
-
case FLOAT:
|
|
1898
|
-
case STRING:
|
|
1899
|
-
case COMMENT:
|
|
1900
|
-
case OTHER:
|
|
1901
|
-
break;
|
|
1902
|
-
default:
|
|
1903
|
-
break;
|
|
1904
|
-
}
|
|
1905
|
-
}
|
|
1906
|
-
}
|
|
1907
|
-
catch (RecognitionException re) {
|
|
1908
|
-
_localctx.exception = re;
|
|
1909
|
-
_errHandler.reportError(this, re);
|
|
1910
|
-
_errHandler.recover(this, re);
|
|
1911
|
-
}
|
|
1912
|
-
finally {
|
|
1913
|
-
exitRule();
|
|
1914
|
-
}
|
|
1915
|
-
return _localctx;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
public static class MessageBodyContext extends ParserRuleContext {
|
|
1919
|
-
public FuncContext func() {
|
|
1920
|
-
return getRuleContext(FuncContext.class,0);
|
|
1921
|
-
}
|
|
1922
|
-
public AssignmentContext assignment() {
|
|
1923
|
-
return getRuleContext(AssignmentContext.class,0);
|
|
1924
|
-
}
|
|
1925
|
-
public ToContext to() {
|
|
1926
|
-
return getRuleContext(ToContext.class,0);
|
|
1927
|
-
}
|
|
1928
|
-
public TerminalNode DOT() { return getToken(sequenceParser.DOT, 0); }
|
|
1929
|
-
public FromContext from() {
|
|
1930
|
-
return getRuleContext(FromContext.class,0);
|
|
1931
|
-
}
|
|
1932
|
-
public TerminalNode ARROW() { return getToken(sequenceParser.ARROW, 0); }
|
|
1933
|
-
public MessageBodyContext(ParserRuleContext parent, int invokingState) {
|
|
1934
|
-
super(parent, invokingState);
|
|
1935
|
-
}
|
|
1936
|
-
@Override public int getRuleIndex() { return RULE_messageBody; }
|
|
1937
|
-
@Override
|
|
1938
|
-
public void enterRule(ParseTreeListener listener) {
|
|
1939
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterMessageBody(this);
|
|
1940
|
-
}
|
|
1941
|
-
@Override
|
|
1942
|
-
public void exitRule(ParseTreeListener listener) {
|
|
1943
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitMessageBody(this);
|
|
1944
|
-
}
|
|
1945
|
-
@Override
|
|
1946
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
1947
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitMessageBody(this);
|
|
1948
|
-
else return visitor.visitChildren(this);
|
|
1949
|
-
}
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
public final MessageBodyContext messageBody() throws RecognitionException {
|
|
1953
|
-
MessageBodyContext _localctx = new MessageBodyContext(_ctx, getState());
|
|
1954
|
-
enterRule(_localctx, 42, RULE_messageBody);
|
|
1955
|
-
try {
|
|
1956
|
-
setState(330);
|
|
1957
|
-
_errHandler.sync(this);
|
|
1958
|
-
switch ( getInterpreter().adaptivePredict(_input,48,_ctx) ) {
|
|
1959
|
-
case 1:
|
|
1960
|
-
enterOuterAlt(_localctx, 1);
|
|
1961
|
-
{
|
|
1962
|
-
setState(308);
|
|
1963
|
-
_errHandler.sync(this);
|
|
1964
|
-
switch ( getInterpreter().adaptivePredict(_input,44,_ctx) ) {
|
|
1965
|
-
case 1:
|
|
1966
|
-
{
|
|
1967
|
-
setState(307);
|
|
1968
|
-
assignment();
|
|
1969
|
-
}
|
|
1970
|
-
break;
|
|
1971
|
-
}
|
|
1972
|
-
setState(318);
|
|
1973
|
-
_errHandler.sync(this);
|
|
1974
|
-
switch ( getInterpreter().adaptivePredict(_input,46,_ctx) ) {
|
|
1975
|
-
case 1:
|
|
1976
|
-
{
|
|
1977
|
-
setState(313);
|
|
1978
|
-
_errHandler.sync(this);
|
|
1979
|
-
switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) {
|
|
1980
|
-
case 1:
|
|
1981
|
-
{
|
|
1982
|
-
setState(310);
|
|
1983
|
-
from();
|
|
1984
|
-
setState(311);
|
|
1985
|
-
match(ARROW);
|
|
1986
|
-
}
|
|
1987
|
-
break;
|
|
1988
|
-
}
|
|
1989
|
-
setState(315);
|
|
1990
|
-
to();
|
|
1991
|
-
setState(316);
|
|
1992
|
-
match(DOT);
|
|
1993
|
-
}
|
|
1994
|
-
break;
|
|
1995
|
-
}
|
|
1996
|
-
setState(320);
|
|
1997
|
-
func();
|
|
1998
|
-
}
|
|
1999
|
-
break;
|
|
2000
|
-
case 2:
|
|
2001
|
-
enterOuterAlt(_localctx, 2);
|
|
2002
|
-
{
|
|
2003
|
-
setState(321);
|
|
2004
|
-
assignment();
|
|
2005
|
-
}
|
|
2006
|
-
break;
|
|
2007
|
-
case 3:
|
|
2008
|
-
enterOuterAlt(_localctx, 3);
|
|
2009
|
-
{
|
|
2010
|
-
setState(325);
|
|
2011
|
-
_errHandler.sync(this);
|
|
2012
|
-
switch ( getInterpreter().adaptivePredict(_input,47,_ctx) ) {
|
|
2013
|
-
case 1:
|
|
2014
|
-
{
|
|
2015
|
-
setState(322);
|
|
2016
|
-
from();
|
|
2017
|
-
setState(323);
|
|
2018
|
-
match(ARROW);
|
|
2019
|
-
}
|
|
2020
|
-
break;
|
|
2021
|
-
}
|
|
2022
|
-
setState(327);
|
|
2023
|
-
to();
|
|
2024
|
-
setState(328);
|
|
2025
|
-
match(DOT);
|
|
2026
|
-
}
|
|
2027
|
-
break;
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
catch (RecognitionException re) {
|
|
2031
|
-
_localctx.exception = re;
|
|
2032
|
-
_errHandler.reportError(this, re);
|
|
2033
|
-
_errHandler.recover(this, re);
|
|
2034
|
-
}
|
|
2035
|
-
finally {
|
|
2036
|
-
exitRule();
|
|
2037
|
-
}
|
|
2038
|
-
return _localctx;
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
public static class FuncContext extends ParserRuleContext {
|
|
2042
|
-
public List<SignatureContext> signature() {
|
|
2043
|
-
return getRuleContexts(SignatureContext.class);
|
|
2044
|
-
}
|
|
2045
|
-
public SignatureContext signature(int i) {
|
|
2046
|
-
return getRuleContext(SignatureContext.class,i);
|
|
2047
|
-
}
|
|
2048
|
-
public List<TerminalNode> DOT() { return getTokens(sequenceParser.DOT); }
|
|
2049
|
-
public TerminalNode DOT(int i) {
|
|
2050
|
-
return getToken(sequenceParser.DOT, i);
|
|
2051
|
-
}
|
|
2052
|
-
public FuncContext(ParserRuleContext parent, int invokingState) {
|
|
2053
|
-
super(parent, invokingState);
|
|
2054
|
-
}
|
|
2055
|
-
@Override public int getRuleIndex() { return RULE_func; }
|
|
2056
|
-
@Override
|
|
2057
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2058
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterFunc(this);
|
|
2059
|
-
}
|
|
2060
|
-
@Override
|
|
2061
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2062
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitFunc(this);
|
|
2063
|
-
}
|
|
2064
|
-
@Override
|
|
2065
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2066
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitFunc(this);
|
|
2067
|
-
else return visitor.visitChildren(this);
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
public final FuncContext func() throws RecognitionException {
|
|
2072
|
-
FuncContext _localctx = new FuncContext(_ctx, getState());
|
|
2073
|
-
enterRule(_localctx, 44, RULE_func);
|
|
2074
|
-
try {
|
|
2075
|
-
int _alt;
|
|
2076
|
-
enterOuterAlt(_localctx, 1);
|
|
2077
|
-
{
|
|
2078
|
-
setState(332);
|
|
2079
|
-
signature();
|
|
2080
|
-
setState(337);
|
|
2081
|
-
_errHandler.sync(this);
|
|
2082
|
-
_alt = getInterpreter().adaptivePredict(_input,49,_ctx);
|
|
2083
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
2084
|
-
if ( _alt==1 ) {
|
|
2085
|
-
{
|
|
2086
|
-
{
|
|
2087
|
-
setState(333);
|
|
2088
|
-
match(DOT);
|
|
2089
|
-
setState(334);
|
|
2090
|
-
signature();
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
setState(339);
|
|
2095
|
-
_errHandler.sync(this);
|
|
2096
|
-
_alt = getInterpreter().adaptivePredict(_input,49,_ctx);
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
}
|
|
2100
|
-
catch (RecognitionException re) {
|
|
2101
|
-
_localctx.exception = re;
|
|
2102
|
-
_errHandler.reportError(this, re);
|
|
2103
|
-
_errHandler.recover(this, re);
|
|
2104
|
-
}
|
|
2105
|
-
finally {
|
|
2106
|
-
exitRule();
|
|
2107
|
-
}
|
|
2108
|
-
return _localctx;
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
public static class FromContext extends ParserRuleContext {
|
|
2112
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2113
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2114
|
-
public FromContext(ParserRuleContext parent, int invokingState) {
|
|
2115
|
-
super(parent, invokingState);
|
|
2116
|
-
}
|
|
2117
|
-
@Override public int getRuleIndex() { return RULE_from; }
|
|
2118
|
-
@Override
|
|
2119
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2120
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterFrom(this);
|
|
2121
|
-
}
|
|
2122
|
-
@Override
|
|
2123
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2124
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitFrom(this);
|
|
2125
|
-
}
|
|
2126
|
-
@Override
|
|
2127
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2128
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitFrom(this);
|
|
2129
|
-
else return visitor.visitChildren(this);
|
|
2130
|
-
}
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
public final FromContext from() throws RecognitionException {
|
|
2134
|
-
FromContext _localctx = new FromContext(_ctx, getState());
|
|
2135
|
-
enterRule(_localctx, 46, RULE_from);
|
|
2136
|
-
int _la;
|
|
2137
|
-
try {
|
|
2138
|
-
enterOuterAlt(_localctx, 1);
|
|
2139
|
-
{
|
|
2140
|
-
setState(340);
|
|
2141
|
-
_la = _input.LA(1);
|
|
2142
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
2143
|
-
_errHandler.recoverInline(this);
|
|
2144
|
-
}
|
|
2145
|
-
else {
|
|
2146
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2147
|
-
_errHandler.reportMatch(this);
|
|
2148
|
-
consume();
|
|
2149
|
-
}
|
|
2150
|
-
}
|
|
2151
|
-
}
|
|
2152
|
-
catch (RecognitionException re) {
|
|
2153
|
-
_localctx.exception = re;
|
|
2154
|
-
_errHandler.reportError(this, re);
|
|
2155
|
-
_errHandler.recover(this, re);
|
|
2156
|
-
}
|
|
2157
|
-
finally {
|
|
2158
|
-
exitRule();
|
|
2159
|
-
}
|
|
2160
|
-
return _localctx;
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
public static class ToContext extends ParserRuleContext {
|
|
2164
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2165
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2166
|
-
public ToContext(ParserRuleContext parent, int invokingState) {
|
|
2167
|
-
super(parent, invokingState);
|
|
2168
|
-
}
|
|
2169
|
-
@Override public int getRuleIndex() { return RULE_to; }
|
|
2170
|
-
@Override
|
|
2171
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2172
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterTo(this);
|
|
2173
|
-
}
|
|
2174
|
-
@Override
|
|
2175
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2176
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitTo(this);
|
|
2177
|
-
}
|
|
2178
|
-
@Override
|
|
2179
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2180
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitTo(this);
|
|
2181
|
-
else return visitor.visitChildren(this);
|
|
2182
|
-
}
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
public final ToContext to() throws RecognitionException {
|
|
2186
|
-
ToContext _localctx = new ToContext(_ctx, getState());
|
|
2187
|
-
enterRule(_localctx, 48, RULE_to);
|
|
2188
|
-
int _la;
|
|
2189
|
-
try {
|
|
2190
|
-
enterOuterAlt(_localctx, 1);
|
|
2191
|
-
{
|
|
2192
|
-
setState(342);
|
|
2193
|
-
_la = _input.LA(1);
|
|
2194
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
2195
|
-
_errHandler.recoverInline(this);
|
|
2196
|
-
}
|
|
2197
|
-
else {
|
|
2198
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2199
|
-
_errHandler.reportMatch(this);
|
|
2200
|
-
consume();
|
|
2201
|
-
}
|
|
2202
|
-
}
|
|
2203
|
-
}
|
|
2204
|
-
catch (RecognitionException re) {
|
|
2205
|
-
_localctx.exception = re;
|
|
2206
|
-
_errHandler.reportError(this, re);
|
|
2207
|
-
_errHandler.recover(this, re);
|
|
2208
|
-
}
|
|
2209
|
-
finally {
|
|
2210
|
-
exitRule();
|
|
2211
|
-
}
|
|
2212
|
-
return _localctx;
|
|
2213
|
-
}
|
|
2214
|
-
|
|
2215
|
-
public static class SignatureContext extends ParserRuleContext {
|
|
2216
|
-
public MethodNameContext methodName() {
|
|
2217
|
-
return getRuleContext(MethodNameContext.class,0);
|
|
2218
|
-
}
|
|
2219
|
-
public InvocationContext invocation() {
|
|
2220
|
-
return getRuleContext(InvocationContext.class,0);
|
|
2221
|
-
}
|
|
2222
|
-
public SignatureContext(ParserRuleContext parent, int invokingState) {
|
|
2223
|
-
super(parent, invokingState);
|
|
2224
|
-
}
|
|
2225
|
-
@Override public int getRuleIndex() { return RULE_signature; }
|
|
2226
|
-
@Override
|
|
2227
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2228
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterSignature(this);
|
|
2229
|
-
}
|
|
2230
|
-
@Override
|
|
2231
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2232
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitSignature(this);
|
|
2233
|
-
}
|
|
2234
|
-
@Override
|
|
2235
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2236
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitSignature(this);
|
|
2237
|
-
else return visitor.visitChildren(this);
|
|
2238
|
-
}
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
public final SignatureContext signature() throws RecognitionException {
|
|
2242
|
-
SignatureContext _localctx = new SignatureContext(_ctx, getState());
|
|
2243
|
-
enterRule(_localctx, 50, RULE_signature);
|
|
2244
|
-
try {
|
|
2245
|
-
enterOuterAlt(_localctx, 1);
|
|
2246
|
-
{
|
|
2247
|
-
setState(344);
|
|
2248
|
-
methodName();
|
|
2249
|
-
setState(346);
|
|
2250
|
-
_errHandler.sync(this);
|
|
2251
|
-
switch ( getInterpreter().adaptivePredict(_input,50,_ctx) ) {
|
|
2252
|
-
case 1:
|
|
2253
|
-
{
|
|
2254
|
-
setState(345);
|
|
2255
|
-
invocation();
|
|
2256
|
-
}
|
|
2257
|
-
break;
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
}
|
|
2261
|
-
catch (RecognitionException re) {
|
|
2262
|
-
_localctx.exception = re;
|
|
2263
|
-
_errHandler.reportError(this, re);
|
|
2264
|
-
_errHandler.recover(this, re);
|
|
2265
|
-
}
|
|
2266
|
-
finally {
|
|
2267
|
-
exitRule();
|
|
2268
|
-
}
|
|
2269
|
-
return _localctx;
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
public static class InvocationContext extends ParserRuleContext {
|
|
2273
|
-
public TerminalNode OPAR() { return getToken(sequenceParser.OPAR, 0); }
|
|
2274
|
-
public TerminalNode CPAR() { return getToken(sequenceParser.CPAR, 0); }
|
|
2275
|
-
public ParametersContext parameters() {
|
|
2276
|
-
return getRuleContext(ParametersContext.class,0);
|
|
2277
|
-
}
|
|
2278
|
-
public InvocationContext(ParserRuleContext parent, int invokingState) {
|
|
2279
|
-
super(parent, invokingState);
|
|
2280
|
-
}
|
|
2281
|
-
@Override public int getRuleIndex() { return RULE_invocation; }
|
|
2282
|
-
@Override
|
|
2283
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2284
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterInvocation(this);
|
|
2285
|
-
}
|
|
2286
|
-
@Override
|
|
2287
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2288
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitInvocation(this);
|
|
2289
|
-
}
|
|
2290
|
-
@Override
|
|
2291
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2292
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitInvocation(this);
|
|
2293
|
-
else return visitor.visitChildren(this);
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
|
|
2297
|
-
public final InvocationContext invocation() throws RecognitionException {
|
|
2298
|
-
InvocationContext _localctx = new InvocationContext(_ctx, getState());
|
|
2299
|
-
enterRule(_localctx, 52, RULE_invocation);
|
|
2300
|
-
int _la;
|
|
2301
|
-
try {
|
|
2302
|
-
enterOuterAlt(_localctx, 1);
|
|
2303
|
-
{
|
|
2304
|
-
setState(348);
|
|
2305
|
-
match(OPAR);
|
|
2306
|
-
setState(350);
|
|
2307
|
-
_errHandler.sync(this);
|
|
2308
|
-
_la = _input.LA(1);
|
|
2309
|
-
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MINUS) | (1L << NOT) | (1L << TRUE) | (1L << FALSE) | (1L << NIL) | (1L << NEW) | (1L << ID) | (1L << INT) | (1L << FLOAT) | (1L << STRING))) != 0)) {
|
|
2310
|
-
{
|
|
2311
|
-
setState(349);
|
|
2312
|
-
parameters();
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
|
|
2316
|
-
setState(352);
|
|
2317
|
-
match(CPAR);
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
catch (RecognitionException re) {
|
|
2321
|
-
_localctx.exception = re;
|
|
2322
|
-
_errHandler.reportError(this, re);
|
|
2323
|
-
_errHandler.recover(this, re);
|
|
2324
|
-
}
|
|
2325
|
-
finally {
|
|
2326
|
-
exitRule();
|
|
2327
|
-
}
|
|
2328
|
-
return _localctx;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
public static class AssignmentContext extends ParserRuleContext {
|
|
2332
|
-
public AssigneeContext assignee() {
|
|
2333
|
-
return getRuleContext(AssigneeContext.class,0);
|
|
2334
|
-
}
|
|
2335
|
-
public TerminalNode ASSIGN() { return getToken(sequenceParser.ASSIGN, 0); }
|
|
2336
|
-
public TypeContext type() {
|
|
2337
|
-
return getRuleContext(TypeContext.class,0);
|
|
2338
|
-
}
|
|
2339
|
-
public AssignmentContext(ParserRuleContext parent, int invokingState) {
|
|
2340
|
-
super(parent, invokingState);
|
|
2341
|
-
}
|
|
2342
|
-
@Override public int getRuleIndex() { return RULE_assignment; }
|
|
2343
|
-
@Override
|
|
2344
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2345
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAssignment(this);
|
|
2346
|
-
}
|
|
2347
|
-
@Override
|
|
2348
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2349
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAssignment(this);
|
|
2350
|
-
}
|
|
2351
|
-
@Override
|
|
2352
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2353
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAssignment(this);
|
|
2354
|
-
else return visitor.visitChildren(this);
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
public final AssignmentContext assignment() throws RecognitionException {
|
|
2359
|
-
AssignmentContext _localctx = new AssignmentContext(_ctx, getState());
|
|
2360
|
-
enterRule(_localctx, 54, RULE_assignment);
|
|
2361
|
-
try {
|
|
2362
|
-
enterOuterAlt(_localctx, 1);
|
|
2363
|
-
{
|
|
2364
|
-
{
|
|
2365
|
-
setState(355);
|
|
2366
|
-
_errHandler.sync(this);
|
|
2367
|
-
switch ( getInterpreter().adaptivePredict(_input,52,_ctx) ) {
|
|
2368
|
-
case 1:
|
|
2369
|
-
{
|
|
2370
|
-
setState(354);
|
|
2371
|
-
type();
|
|
2372
|
-
}
|
|
2373
|
-
break;
|
|
2374
|
-
}
|
|
2375
|
-
setState(357);
|
|
2376
|
-
assignee();
|
|
2377
|
-
setState(358);
|
|
2378
|
-
match(ASSIGN);
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
}
|
|
2382
|
-
catch (RecognitionException re) {
|
|
2383
|
-
_localctx.exception = re;
|
|
2384
|
-
_errHandler.reportError(this, re);
|
|
2385
|
-
_errHandler.recover(this, re);
|
|
2386
|
-
}
|
|
2387
|
-
finally {
|
|
2388
|
-
exitRule();
|
|
2389
|
-
}
|
|
2390
|
-
return _localctx;
|
|
2391
|
-
}
|
|
2392
|
-
|
|
2393
|
-
public static class AsyncMessageContext extends ParserRuleContext {
|
|
2394
|
-
public ToContext to() {
|
|
2395
|
-
return getRuleContext(ToContext.class,0);
|
|
2396
|
-
}
|
|
2397
|
-
public TerminalNode COL() { return getToken(sequenceParser.COL, 0); }
|
|
2398
|
-
public ContentContext content() {
|
|
2399
|
-
return getRuleContext(ContentContext.class,0);
|
|
2400
|
-
}
|
|
2401
|
-
public FromContext from() {
|
|
2402
|
-
return getRuleContext(FromContext.class,0);
|
|
2403
|
-
}
|
|
2404
|
-
public TerminalNode ARROW() { return getToken(sequenceParser.ARROW, 0); }
|
|
2405
|
-
public TerminalNode MINUS() { return getToken(sequenceParser.MINUS, 0); }
|
|
2406
|
-
public AsyncMessageContext(ParserRuleContext parent, int invokingState) {
|
|
2407
|
-
super(parent, invokingState);
|
|
2408
|
-
}
|
|
2409
|
-
@Override public int getRuleIndex() { return RULE_asyncMessage; }
|
|
2410
|
-
@Override
|
|
2411
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2412
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAsyncMessage(this);
|
|
2413
|
-
}
|
|
2414
|
-
@Override
|
|
2415
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2416
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAsyncMessage(this);
|
|
2417
|
-
}
|
|
2418
|
-
@Override
|
|
2419
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2420
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAsyncMessage(this);
|
|
2421
|
-
else return visitor.visitChildren(this);
|
|
2422
|
-
}
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
public final AsyncMessageContext asyncMessage() throws RecognitionException {
|
|
2426
|
-
AsyncMessageContext _localctx = new AsyncMessageContext(_ctx, getState());
|
|
2427
|
-
enterRule(_localctx, 56, RULE_asyncMessage);
|
|
2428
|
-
int _la;
|
|
2429
|
-
try {
|
|
2430
|
-
setState(374);
|
|
2431
|
-
_errHandler.sync(this);
|
|
2432
|
-
switch ( getInterpreter().adaptivePredict(_input,55,_ctx) ) {
|
|
2433
|
-
case 1:
|
|
2434
|
-
enterOuterAlt(_localctx, 1);
|
|
2435
|
-
{
|
|
2436
|
-
setState(363);
|
|
2437
|
-
_errHandler.sync(this);
|
|
2438
|
-
switch ( getInterpreter().adaptivePredict(_input,53,_ctx) ) {
|
|
2439
|
-
case 1:
|
|
2440
|
-
{
|
|
2441
|
-
setState(360);
|
|
2442
|
-
from();
|
|
2443
|
-
setState(361);
|
|
2444
|
-
match(ARROW);
|
|
2445
|
-
}
|
|
2446
|
-
break;
|
|
2447
|
-
}
|
|
2448
|
-
setState(365);
|
|
2449
|
-
to();
|
|
2450
|
-
setState(366);
|
|
2451
|
-
match(COL);
|
|
2452
|
-
setState(367);
|
|
2453
|
-
content();
|
|
2454
|
-
}
|
|
2455
|
-
break;
|
|
2456
|
-
case 2:
|
|
2457
|
-
enterOuterAlt(_localctx, 2);
|
|
2458
|
-
{
|
|
2459
|
-
setState(369);
|
|
2460
|
-
from();
|
|
2461
|
-
setState(370);
|
|
2462
|
-
_la = _input.LA(1);
|
|
2463
|
-
if ( !(_la==ARROW || _la==MINUS) ) {
|
|
2464
|
-
_errHandler.recoverInline(this);
|
|
2465
|
-
}
|
|
2466
|
-
else {
|
|
2467
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2468
|
-
_errHandler.reportMatch(this);
|
|
2469
|
-
consume();
|
|
2470
|
-
}
|
|
2471
|
-
setState(372);
|
|
2472
|
-
_errHandler.sync(this);
|
|
2473
|
-
switch ( getInterpreter().adaptivePredict(_input,54,_ctx) ) {
|
|
2474
|
-
case 1:
|
|
2475
|
-
{
|
|
2476
|
-
setState(371);
|
|
2477
|
-
to();
|
|
2478
|
-
}
|
|
2479
|
-
break;
|
|
2480
|
-
}
|
|
2481
|
-
}
|
|
2482
|
-
break;
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
catch (RecognitionException re) {
|
|
2486
|
-
_localctx.exception = re;
|
|
2487
|
-
_errHandler.reportError(this, re);
|
|
2488
|
-
_errHandler.recover(this, re);
|
|
2489
|
-
}
|
|
2490
|
-
finally {
|
|
2491
|
-
exitRule();
|
|
2492
|
-
}
|
|
2493
|
-
return _localctx;
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
public static class ContentContext extends ParserRuleContext {
|
|
2497
|
-
public TerminalNode EVENT_PAYLOAD_LXR() { return getToken(sequenceParser.EVENT_PAYLOAD_LXR, 0); }
|
|
2498
|
-
public ContentContext(ParserRuleContext parent, int invokingState) {
|
|
2499
|
-
super(parent, invokingState);
|
|
2500
|
-
}
|
|
2501
|
-
@Override public int getRuleIndex() { return RULE_content; }
|
|
2502
|
-
@Override
|
|
2503
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2504
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterContent(this);
|
|
2505
|
-
}
|
|
2506
|
-
@Override
|
|
2507
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2508
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitContent(this);
|
|
2509
|
-
}
|
|
2510
|
-
@Override
|
|
2511
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2512
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitContent(this);
|
|
2513
|
-
else return visitor.visitChildren(this);
|
|
2514
|
-
}
|
|
2515
|
-
}
|
|
2516
|
-
|
|
2517
|
-
public final ContentContext content() throws RecognitionException {
|
|
2518
|
-
ContentContext _localctx = new ContentContext(_ctx, getState());
|
|
2519
|
-
enterRule(_localctx, 58, RULE_content);
|
|
2520
|
-
try {
|
|
2521
|
-
enterOuterAlt(_localctx, 1);
|
|
2522
|
-
{
|
|
2523
|
-
setState(376);
|
|
2524
|
-
match(EVENT_PAYLOAD_LXR);
|
|
2525
|
-
}
|
|
2526
|
-
}
|
|
2527
|
-
catch (RecognitionException re) {
|
|
2528
|
-
_localctx.exception = re;
|
|
2529
|
-
_errHandler.reportError(this, re);
|
|
2530
|
-
_errHandler.recover(this, re);
|
|
2531
|
-
}
|
|
2532
|
-
finally {
|
|
2533
|
-
exitRule();
|
|
2534
|
-
}
|
|
2535
|
-
return _localctx;
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
public static class ConstructContext extends ParserRuleContext {
|
|
2539
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2540
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2541
|
-
public ConstructContext(ParserRuleContext parent, int invokingState) {
|
|
2542
|
-
super(parent, invokingState);
|
|
2543
|
-
}
|
|
2544
|
-
@Override public int getRuleIndex() { return RULE_construct; }
|
|
2545
|
-
@Override
|
|
2546
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2547
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterConstruct(this);
|
|
2548
|
-
}
|
|
2549
|
-
@Override
|
|
2550
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2551
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitConstruct(this);
|
|
2552
|
-
}
|
|
2553
|
-
@Override
|
|
2554
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2555
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitConstruct(this);
|
|
2556
|
-
else return visitor.visitChildren(this);
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
|
-
public final ConstructContext construct() throws RecognitionException {
|
|
2561
|
-
ConstructContext _localctx = new ConstructContext(_ctx, getState());
|
|
2562
|
-
enterRule(_localctx, 60, RULE_construct);
|
|
2563
|
-
int _la;
|
|
2564
|
-
try {
|
|
2565
|
-
enterOuterAlt(_localctx, 1);
|
|
2566
|
-
{
|
|
2567
|
-
setState(378);
|
|
2568
|
-
_la = _input.LA(1);
|
|
2569
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
2570
|
-
_errHandler.recoverInline(this);
|
|
2571
|
-
}
|
|
2572
|
-
else {
|
|
2573
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2574
|
-
_errHandler.reportMatch(this);
|
|
2575
|
-
consume();
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
}
|
|
2579
|
-
catch (RecognitionException re) {
|
|
2580
|
-
_localctx.exception = re;
|
|
2581
|
-
_errHandler.reportError(this, re);
|
|
2582
|
-
_errHandler.recover(this, re);
|
|
2583
|
-
}
|
|
2584
|
-
finally {
|
|
2585
|
-
exitRule();
|
|
2586
|
-
}
|
|
2587
|
-
return _localctx;
|
|
2588
|
-
}
|
|
2589
|
-
|
|
2590
|
-
public static class TypeContext extends ParserRuleContext {
|
|
2591
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2592
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2593
|
-
public TypeContext(ParserRuleContext parent, int invokingState) {
|
|
2594
|
-
super(parent, invokingState);
|
|
2595
|
-
}
|
|
2596
|
-
@Override public int getRuleIndex() { return RULE_type; }
|
|
2597
|
-
@Override
|
|
2598
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2599
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterType(this);
|
|
2600
|
-
}
|
|
2601
|
-
@Override
|
|
2602
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2603
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitType(this);
|
|
2604
|
-
}
|
|
2605
|
-
@Override
|
|
2606
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2607
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitType(this);
|
|
2608
|
-
else return visitor.visitChildren(this);
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
|
|
2612
|
-
public final TypeContext type() throws RecognitionException {
|
|
2613
|
-
TypeContext _localctx = new TypeContext(_ctx, getState());
|
|
2614
|
-
enterRule(_localctx, 62, RULE_type);
|
|
2615
|
-
int _la;
|
|
2616
|
-
try {
|
|
2617
|
-
enterOuterAlt(_localctx, 1);
|
|
2618
|
-
{
|
|
2619
|
-
setState(380);
|
|
2620
|
-
_la = _input.LA(1);
|
|
2621
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
2622
|
-
_errHandler.recoverInline(this);
|
|
2623
|
-
}
|
|
2624
|
-
else {
|
|
2625
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2626
|
-
_errHandler.reportMatch(this);
|
|
2627
|
-
consume();
|
|
2628
|
-
}
|
|
2629
|
-
}
|
|
2630
|
-
}
|
|
2631
|
-
catch (RecognitionException re) {
|
|
2632
|
-
_localctx.exception = re;
|
|
2633
|
-
_errHandler.reportError(this, re);
|
|
2634
|
-
_errHandler.recover(this, re);
|
|
2635
|
-
}
|
|
2636
|
-
finally {
|
|
2637
|
-
exitRule();
|
|
2638
|
-
}
|
|
2639
|
-
return _localctx;
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
public static class AssigneeContext extends ParserRuleContext {
|
|
2643
|
-
public AtomContext atom() {
|
|
2644
|
-
return getRuleContext(AtomContext.class,0);
|
|
2645
|
-
}
|
|
2646
|
-
public List<TerminalNode> ID() { return getTokens(sequenceParser.ID); }
|
|
2647
|
-
public TerminalNode ID(int i) {
|
|
2648
|
-
return getToken(sequenceParser.ID, i);
|
|
2649
|
-
}
|
|
2650
|
-
public List<TerminalNode> COMMA() { return getTokens(sequenceParser.COMMA); }
|
|
2651
|
-
public TerminalNode COMMA(int i) {
|
|
2652
|
-
return getToken(sequenceParser.COMMA, i);
|
|
2653
|
-
}
|
|
2654
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2655
|
-
public AssigneeContext(ParserRuleContext parent, int invokingState) {
|
|
2656
|
-
super(parent, invokingState);
|
|
2657
|
-
}
|
|
2658
|
-
@Override public int getRuleIndex() { return RULE_assignee; }
|
|
2659
|
-
@Override
|
|
2660
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2661
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAssignee(this);
|
|
2662
|
-
}
|
|
2663
|
-
@Override
|
|
2664
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2665
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAssignee(this);
|
|
2666
|
-
}
|
|
2667
|
-
@Override
|
|
2668
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2669
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAssignee(this);
|
|
2670
|
-
else return visitor.visitChildren(this);
|
|
2671
|
-
}
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
public final AssigneeContext assignee() throws RecognitionException {
|
|
2675
|
-
AssigneeContext _localctx = new AssigneeContext(_ctx, getState());
|
|
2676
|
-
enterRule(_localctx, 64, RULE_assignee);
|
|
2677
|
-
int _la;
|
|
2678
|
-
try {
|
|
2679
|
-
setState(392);
|
|
2680
|
-
_errHandler.sync(this);
|
|
2681
|
-
switch ( getInterpreter().adaptivePredict(_input,57,_ctx) ) {
|
|
2682
|
-
case 1:
|
|
2683
|
-
enterOuterAlt(_localctx, 1);
|
|
2684
|
-
{
|
|
2685
|
-
setState(382);
|
|
2686
|
-
atom();
|
|
2687
|
-
}
|
|
2688
|
-
break;
|
|
2689
|
-
case 2:
|
|
2690
|
-
enterOuterAlt(_localctx, 2);
|
|
2691
|
-
{
|
|
2692
|
-
{
|
|
2693
|
-
setState(383);
|
|
2694
|
-
match(ID);
|
|
2695
|
-
setState(388);
|
|
2696
|
-
_errHandler.sync(this);
|
|
2697
|
-
_la = _input.LA(1);
|
|
2698
|
-
while (_la==COMMA) {
|
|
2699
|
-
{
|
|
2700
|
-
{
|
|
2701
|
-
setState(384);
|
|
2702
|
-
match(COMMA);
|
|
2703
|
-
setState(385);
|
|
2704
|
-
match(ID);
|
|
2705
|
-
}
|
|
2706
|
-
}
|
|
2707
|
-
setState(390);
|
|
2708
|
-
_errHandler.sync(this);
|
|
2709
|
-
_la = _input.LA(1);
|
|
2710
|
-
}
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
break;
|
|
2714
|
-
case 3:
|
|
2715
|
-
enterOuterAlt(_localctx, 3);
|
|
2716
|
-
{
|
|
2717
|
-
setState(391);
|
|
2718
|
-
match(STRING);
|
|
2719
|
-
}
|
|
2720
|
-
break;
|
|
2721
|
-
}
|
|
2722
|
-
}
|
|
2723
|
-
catch (RecognitionException re) {
|
|
2724
|
-
_localctx.exception = re;
|
|
2725
|
-
_errHandler.reportError(this, re);
|
|
2726
|
-
_errHandler.recover(this, re);
|
|
2727
|
-
}
|
|
2728
|
-
finally {
|
|
2729
|
-
exitRule();
|
|
2730
|
-
}
|
|
2731
|
-
return _localctx;
|
|
2732
|
-
}
|
|
2733
|
-
|
|
2734
|
-
public static class MethodNameContext extends ParserRuleContext {
|
|
2735
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2736
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
2737
|
-
public MethodNameContext(ParserRuleContext parent, int invokingState) {
|
|
2738
|
-
super(parent, invokingState);
|
|
2739
|
-
}
|
|
2740
|
-
@Override public int getRuleIndex() { return RULE_methodName; }
|
|
2741
|
-
@Override
|
|
2742
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2743
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterMethodName(this);
|
|
2744
|
-
}
|
|
2745
|
-
@Override
|
|
2746
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2747
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitMethodName(this);
|
|
2748
|
-
}
|
|
2749
|
-
@Override
|
|
2750
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2751
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitMethodName(this);
|
|
2752
|
-
else return visitor.visitChildren(this);
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
|
|
2756
|
-
public final MethodNameContext methodName() throws RecognitionException {
|
|
2757
|
-
MethodNameContext _localctx = new MethodNameContext(_ctx, getState());
|
|
2758
|
-
enterRule(_localctx, 66, RULE_methodName);
|
|
2759
|
-
int _la;
|
|
2760
|
-
try {
|
|
2761
|
-
enterOuterAlt(_localctx, 1);
|
|
2762
|
-
{
|
|
2763
|
-
setState(394);
|
|
2764
|
-
_la = _input.LA(1);
|
|
2765
|
-
if ( !(_la==ID || _la==STRING) ) {
|
|
2766
|
-
_errHandler.recoverInline(this);
|
|
2767
|
-
}
|
|
2768
|
-
else {
|
|
2769
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
2770
|
-
_errHandler.reportMatch(this);
|
|
2771
|
-
consume();
|
|
2772
|
-
}
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
catch (RecognitionException re) {
|
|
2776
|
-
_localctx.exception = re;
|
|
2777
|
-
_errHandler.reportError(this, re);
|
|
2778
|
-
_errHandler.recover(this, re);
|
|
2779
|
-
}
|
|
2780
|
-
finally {
|
|
2781
|
-
exitRule();
|
|
2782
|
-
}
|
|
2783
|
-
return _localctx;
|
|
2784
|
-
}
|
|
2785
|
-
|
|
2786
|
-
public static class ParametersContext extends ParserRuleContext {
|
|
2787
|
-
public List<ParameterContext> parameter() {
|
|
2788
|
-
return getRuleContexts(ParameterContext.class);
|
|
2789
|
-
}
|
|
2790
|
-
public ParameterContext parameter(int i) {
|
|
2791
|
-
return getRuleContext(ParameterContext.class,i);
|
|
2792
|
-
}
|
|
2793
|
-
public List<TerminalNode> COMMA() { return getTokens(sequenceParser.COMMA); }
|
|
2794
|
-
public TerminalNode COMMA(int i) {
|
|
2795
|
-
return getToken(sequenceParser.COMMA, i);
|
|
2796
|
-
}
|
|
2797
|
-
public ParametersContext(ParserRuleContext parent, int invokingState) {
|
|
2798
|
-
super(parent, invokingState);
|
|
2799
|
-
}
|
|
2800
|
-
@Override public int getRuleIndex() { return RULE_parameters; }
|
|
2801
|
-
@Override
|
|
2802
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2803
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterParameters(this);
|
|
2804
|
-
}
|
|
2805
|
-
@Override
|
|
2806
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2807
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitParameters(this);
|
|
2808
|
-
}
|
|
2809
|
-
@Override
|
|
2810
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2811
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitParameters(this);
|
|
2812
|
-
else return visitor.visitChildren(this);
|
|
2813
|
-
}
|
|
2814
|
-
}
|
|
2815
|
-
|
|
2816
|
-
public final ParametersContext parameters() throws RecognitionException {
|
|
2817
|
-
ParametersContext _localctx = new ParametersContext(_ctx, getState());
|
|
2818
|
-
enterRule(_localctx, 68, RULE_parameters);
|
|
2819
|
-
int _la;
|
|
2820
|
-
try {
|
|
2821
|
-
int _alt;
|
|
2822
|
-
enterOuterAlt(_localctx, 1);
|
|
2823
|
-
{
|
|
2824
|
-
setState(396);
|
|
2825
|
-
parameter();
|
|
2826
|
-
setState(401);
|
|
2827
|
-
_errHandler.sync(this);
|
|
2828
|
-
_alt = getInterpreter().adaptivePredict(_input,58,_ctx);
|
|
2829
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
2830
|
-
if ( _alt==1 ) {
|
|
2831
|
-
{
|
|
2832
|
-
{
|
|
2833
|
-
setState(397);
|
|
2834
|
-
match(COMMA);
|
|
2835
|
-
setState(398);
|
|
2836
|
-
parameter();
|
|
2837
|
-
}
|
|
2838
|
-
}
|
|
2839
|
-
}
|
|
2840
|
-
setState(403);
|
|
2841
|
-
_errHandler.sync(this);
|
|
2842
|
-
_alt = getInterpreter().adaptivePredict(_input,58,_ctx);
|
|
2843
|
-
}
|
|
2844
|
-
setState(405);
|
|
2845
|
-
_errHandler.sync(this);
|
|
2846
|
-
_la = _input.LA(1);
|
|
2847
|
-
if (_la==COMMA) {
|
|
2848
|
-
{
|
|
2849
|
-
setState(404);
|
|
2850
|
-
match(COMMA);
|
|
2851
|
-
}
|
|
2852
|
-
}
|
|
2853
|
-
|
|
2854
|
-
}
|
|
2855
|
-
}
|
|
2856
|
-
catch (RecognitionException re) {
|
|
2857
|
-
_localctx.exception = re;
|
|
2858
|
-
_errHandler.reportError(this, re);
|
|
2859
|
-
_errHandler.recover(this, re);
|
|
2860
|
-
}
|
|
2861
|
-
finally {
|
|
2862
|
-
exitRule();
|
|
2863
|
-
}
|
|
2864
|
-
return _localctx;
|
|
2865
|
-
}
|
|
2866
|
-
|
|
2867
|
-
public static class ParameterContext extends ParserRuleContext {
|
|
2868
|
-
public DeclarationContext declaration() {
|
|
2869
|
-
return getRuleContext(DeclarationContext.class,0);
|
|
2870
|
-
}
|
|
2871
|
-
public ExprContext expr() {
|
|
2872
|
-
return getRuleContext(ExprContext.class,0);
|
|
2873
|
-
}
|
|
2874
|
-
public ParameterContext(ParserRuleContext parent, int invokingState) {
|
|
2875
|
-
super(parent, invokingState);
|
|
2876
|
-
}
|
|
2877
|
-
@Override public int getRuleIndex() { return RULE_parameter; }
|
|
2878
|
-
@Override
|
|
2879
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2880
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterParameter(this);
|
|
2881
|
-
}
|
|
2882
|
-
@Override
|
|
2883
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2884
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitParameter(this);
|
|
2885
|
-
}
|
|
2886
|
-
@Override
|
|
2887
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2888
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitParameter(this);
|
|
2889
|
-
else return visitor.visitChildren(this);
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
|
|
2893
|
-
public final ParameterContext parameter() throws RecognitionException {
|
|
2894
|
-
ParameterContext _localctx = new ParameterContext(_ctx, getState());
|
|
2895
|
-
enterRule(_localctx, 70, RULE_parameter);
|
|
2896
|
-
try {
|
|
2897
|
-
setState(409);
|
|
2898
|
-
_errHandler.sync(this);
|
|
2899
|
-
switch ( getInterpreter().adaptivePredict(_input,60,_ctx) ) {
|
|
2900
|
-
case 1:
|
|
2901
|
-
enterOuterAlt(_localctx, 1);
|
|
2902
|
-
{
|
|
2903
|
-
setState(407);
|
|
2904
|
-
declaration();
|
|
2905
|
-
}
|
|
2906
|
-
break;
|
|
2907
|
-
case 2:
|
|
2908
|
-
enterOuterAlt(_localctx, 2);
|
|
2909
|
-
{
|
|
2910
|
-
setState(408);
|
|
2911
|
-
expr(0);
|
|
2912
|
-
}
|
|
2913
|
-
break;
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
catch (RecognitionException re) {
|
|
2917
|
-
_localctx.exception = re;
|
|
2918
|
-
_errHandler.reportError(this, re);
|
|
2919
|
-
_errHandler.recover(this, re);
|
|
2920
|
-
}
|
|
2921
|
-
finally {
|
|
2922
|
-
exitRule();
|
|
2923
|
-
}
|
|
2924
|
-
return _localctx;
|
|
2925
|
-
}
|
|
2926
|
-
|
|
2927
|
-
public static class DeclarationContext extends ParserRuleContext {
|
|
2928
|
-
public TypeContext type() {
|
|
2929
|
-
return getRuleContext(TypeContext.class,0);
|
|
2930
|
-
}
|
|
2931
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
2932
|
-
public DeclarationContext(ParserRuleContext parent, int invokingState) {
|
|
2933
|
-
super(parent, invokingState);
|
|
2934
|
-
}
|
|
2935
|
-
@Override public int getRuleIndex() { return RULE_declaration; }
|
|
2936
|
-
@Override
|
|
2937
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2938
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterDeclaration(this);
|
|
2939
|
-
}
|
|
2940
|
-
@Override
|
|
2941
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2942
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitDeclaration(this);
|
|
2943
|
-
}
|
|
2944
|
-
@Override
|
|
2945
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
2946
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitDeclaration(this);
|
|
2947
|
-
else return visitor.visitChildren(this);
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
|
-
|
|
2951
|
-
public final DeclarationContext declaration() throws RecognitionException {
|
|
2952
|
-
DeclarationContext _localctx = new DeclarationContext(_ctx, getState());
|
|
2953
|
-
enterRule(_localctx, 72, RULE_declaration);
|
|
2954
|
-
try {
|
|
2955
|
-
enterOuterAlt(_localctx, 1);
|
|
2956
|
-
{
|
|
2957
|
-
setState(411);
|
|
2958
|
-
type();
|
|
2959
|
-
setState(412);
|
|
2960
|
-
match(ID);
|
|
2961
|
-
}
|
|
2962
|
-
}
|
|
2963
|
-
catch (RecognitionException re) {
|
|
2964
|
-
_localctx.exception = re;
|
|
2965
|
-
_errHandler.reportError(this, re);
|
|
2966
|
-
_errHandler.recover(this, re);
|
|
2967
|
-
}
|
|
2968
|
-
finally {
|
|
2969
|
-
exitRule();
|
|
2970
|
-
}
|
|
2971
|
-
return _localctx;
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
public static class TcfContext extends ParserRuleContext {
|
|
2975
|
-
public TryBlockContext tryBlock() {
|
|
2976
|
-
return getRuleContext(TryBlockContext.class,0);
|
|
2977
|
-
}
|
|
2978
|
-
public List<CatchBlockContext> catchBlock() {
|
|
2979
|
-
return getRuleContexts(CatchBlockContext.class);
|
|
2980
|
-
}
|
|
2981
|
-
public CatchBlockContext catchBlock(int i) {
|
|
2982
|
-
return getRuleContext(CatchBlockContext.class,i);
|
|
2983
|
-
}
|
|
2984
|
-
public FinallyBlockContext finallyBlock() {
|
|
2985
|
-
return getRuleContext(FinallyBlockContext.class,0);
|
|
2986
|
-
}
|
|
2987
|
-
public TcfContext(ParserRuleContext parent, int invokingState) {
|
|
2988
|
-
super(parent, invokingState);
|
|
2989
|
-
}
|
|
2990
|
-
@Override public int getRuleIndex() { return RULE_tcf; }
|
|
2991
|
-
@Override
|
|
2992
|
-
public void enterRule(ParseTreeListener listener) {
|
|
2993
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterTcf(this);
|
|
2994
|
-
}
|
|
2995
|
-
@Override
|
|
2996
|
-
public void exitRule(ParseTreeListener listener) {
|
|
2997
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitTcf(this);
|
|
2998
|
-
}
|
|
2999
|
-
@Override
|
|
3000
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3001
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitTcf(this);
|
|
3002
|
-
else return visitor.visitChildren(this);
|
|
3003
|
-
}
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
public final TcfContext tcf() throws RecognitionException {
|
|
3007
|
-
TcfContext _localctx = new TcfContext(_ctx, getState());
|
|
3008
|
-
enterRule(_localctx, 74, RULE_tcf);
|
|
3009
|
-
int _la;
|
|
3010
|
-
try {
|
|
3011
|
-
enterOuterAlt(_localctx, 1);
|
|
3012
|
-
{
|
|
3013
|
-
setState(414);
|
|
3014
|
-
tryBlock();
|
|
3015
|
-
setState(418);
|
|
3016
|
-
_errHandler.sync(this);
|
|
3017
|
-
_la = _input.LA(1);
|
|
3018
|
-
while (_la==CATCH) {
|
|
3019
|
-
{
|
|
3020
|
-
{
|
|
3021
|
-
setState(415);
|
|
3022
|
-
catchBlock();
|
|
3023
|
-
}
|
|
3024
|
-
}
|
|
3025
|
-
setState(420);
|
|
3026
|
-
_errHandler.sync(this);
|
|
3027
|
-
_la = _input.LA(1);
|
|
3028
|
-
}
|
|
3029
|
-
setState(422);
|
|
3030
|
-
_errHandler.sync(this);
|
|
3031
|
-
_la = _input.LA(1);
|
|
3032
|
-
if (_la==FINALLY) {
|
|
3033
|
-
{
|
|
3034
|
-
setState(421);
|
|
3035
|
-
finallyBlock();
|
|
3036
|
-
}
|
|
3037
|
-
}
|
|
3038
|
-
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
3041
|
-
catch (RecognitionException re) {
|
|
3042
|
-
_localctx.exception = re;
|
|
3043
|
-
_errHandler.reportError(this, re);
|
|
3044
|
-
_errHandler.recover(this, re);
|
|
3045
|
-
}
|
|
3046
|
-
finally {
|
|
3047
|
-
exitRule();
|
|
3048
|
-
}
|
|
3049
|
-
return _localctx;
|
|
3050
|
-
}
|
|
3051
|
-
|
|
3052
|
-
public static class TryBlockContext extends ParserRuleContext {
|
|
3053
|
-
public TerminalNode TRY() { return getToken(sequenceParser.TRY, 0); }
|
|
3054
|
-
public BraceBlockContext braceBlock() {
|
|
3055
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3056
|
-
}
|
|
3057
|
-
public TryBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3058
|
-
super(parent, invokingState);
|
|
3059
|
-
}
|
|
3060
|
-
@Override public int getRuleIndex() { return RULE_tryBlock; }
|
|
3061
|
-
@Override
|
|
3062
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3063
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterTryBlock(this);
|
|
3064
|
-
}
|
|
3065
|
-
@Override
|
|
3066
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3067
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitTryBlock(this);
|
|
3068
|
-
}
|
|
3069
|
-
@Override
|
|
3070
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3071
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitTryBlock(this);
|
|
3072
|
-
else return visitor.visitChildren(this);
|
|
3073
|
-
}
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
|
-
public final TryBlockContext tryBlock() throws RecognitionException {
|
|
3077
|
-
TryBlockContext _localctx = new TryBlockContext(_ctx, getState());
|
|
3078
|
-
enterRule(_localctx, 76, RULE_tryBlock);
|
|
3079
|
-
try {
|
|
3080
|
-
enterOuterAlt(_localctx, 1);
|
|
3081
|
-
{
|
|
3082
|
-
setState(424);
|
|
3083
|
-
match(TRY);
|
|
3084
|
-
setState(425);
|
|
3085
|
-
braceBlock();
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
catch (RecognitionException re) {
|
|
3089
|
-
_localctx.exception = re;
|
|
3090
|
-
_errHandler.reportError(this, re);
|
|
3091
|
-
_errHandler.recover(this, re);
|
|
3092
|
-
}
|
|
3093
|
-
finally {
|
|
3094
|
-
exitRule();
|
|
3095
|
-
}
|
|
3096
|
-
return _localctx;
|
|
3097
|
-
}
|
|
3098
|
-
|
|
3099
|
-
public static class CatchBlockContext extends ParserRuleContext {
|
|
3100
|
-
public TerminalNode CATCH() { return getToken(sequenceParser.CATCH, 0); }
|
|
3101
|
-
public BraceBlockContext braceBlock() {
|
|
3102
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3103
|
-
}
|
|
3104
|
-
public InvocationContext invocation() {
|
|
3105
|
-
return getRuleContext(InvocationContext.class,0);
|
|
3106
|
-
}
|
|
3107
|
-
public CatchBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3108
|
-
super(parent, invokingState);
|
|
3109
|
-
}
|
|
3110
|
-
@Override public int getRuleIndex() { return RULE_catchBlock; }
|
|
3111
|
-
@Override
|
|
3112
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3113
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterCatchBlock(this);
|
|
3114
|
-
}
|
|
3115
|
-
@Override
|
|
3116
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3117
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitCatchBlock(this);
|
|
3118
|
-
}
|
|
3119
|
-
@Override
|
|
3120
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3121
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitCatchBlock(this);
|
|
3122
|
-
else return visitor.visitChildren(this);
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
|
|
3126
|
-
public final CatchBlockContext catchBlock() throws RecognitionException {
|
|
3127
|
-
CatchBlockContext _localctx = new CatchBlockContext(_ctx, getState());
|
|
3128
|
-
enterRule(_localctx, 78, RULE_catchBlock);
|
|
3129
|
-
int _la;
|
|
3130
|
-
try {
|
|
3131
|
-
enterOuterAlt(_localctx, 1);
|
|
3132
|
-
{
|
|
3133
|
-
setState(427);
|
|
3134
|
-
match(CATCH);
|
|
3135
|
-
setState(429);
|
|
3136
|
-
_errHandler.sync(this);
|
|
3137
|
-
_la = _input.LA(1);
|
|
3138
|
-
if (_la==OPAR) {
|
|
3139
|
-
{
|
|
3140
|
-
setState(428);
|
|
3141
|
-
invocation();
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
|
-
setState(431);
|
|
3146
|
-
braceBlock();
|
|
3147
|
-
}
|
|
3148
|
-
}
|
|
3149
|
-
catch (RecognitionException re) {
|
|
3150
|
-
_localctx.exception = re;
|
|
3151
|
-
_errHandler.reportError(this, re);
|
|
3152
|
-
_errHandler.recover(this, re);
|
|
3153
|
-
}
|
|
3154
|
-
finally {
|
|
3155
|
-
exitRule();
|
|
3156
|
-
}
|
|
3157
|
-
return _localctx;
|
|
3158
|
-
}
|
|
3159
|
-
|
|
3160
|
-
public static class FinallyBlockContext extends ParserRuleContext {
|
|
3161
|
-
public TerminalNode FINALLY() { return getToken(sequenceParser.FINALLY, 0); }
|
|
3162
|
-
public BraceBlockContext braceBlock() {
|
|
3163
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3164
|
-
}
|
|
3165
|
-
public FinallyBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3166
|
-
super(parent, invokingState);
|
|
3167
|
-
}
|
|
3168
|
-
@Override public int getRuleIndex() { return RULE_finallyBlock; }
|
|
3169
|
-
@Override
|
|
3170
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3171
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterFinallyBlock(this);
|
|
3172
|
-
}
|
|
3173
|
-
@Override
|
|
3174
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3175
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitFinallyBlock(this);
|
|
3176
|
-
}
|
|
3177
|
-
@Override
|
|
3178
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3179
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitFinallyBlock(this);
|
|
3180
|
-
else return visitor.visitChildren(this);
|
|
3181
|
-
}
|
|
3182
|
-
}
|
|
3183
|
-
|
|
3184
|
-
public final FinallyBlockContext finallyBlock() throws RecognitionException {
|
|
3185
|
-
FinallyBlockContext _localctx = new FinallyBlockContext(_ctx, getState());
|
|
3186
|
-
enterRule(_localctx, 80, RULE_finallyBlock);
|
|
3187
|
-
try {
|
|
3188
|
-
enterOuterAlt(_localctx, 1);
|
|
3189
|
-
{
|
|
3190
|
-
setState(433);
|
|
3191
|
-
match(FINALLY);
|
|
3192
|
-
setState(434);
|
|
3193
|
-
braceBlock();
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
catch (RecognitionException re) {
|
|
3197
|
-
_localctx.exception = re;
|
|
3198
|
-
_errHandler.reportError(this, re);
|
|
3199
|
-
_errHandler.recover(this, re);
|
|
3200
|
-
}
|
|
3201
|
-
finally {
|
|
3202
|
-
exitRule();
|
|
3203
|
-
}
|
|
3204
|
-
return _localctx;
|
|
3205
|
-
}
|
|
3206
|
-
|
|
3207
|
-
public static class AltContext extends ParserRuleContext {
|
|
3208
|
-
public IfBlockContext ifBlock() {
|
|
3209
|
-
return getRuleContext(IfBlockContext.class,0);
|
|
3210
|
-
}
|
|
3211
|
-
public List<ElseIfBlockContext> elseIfBlock() {
|
|
3212
|
-
return getRuleContexts(ElseIfBlockContext.class);
|
|
3213
|
-
}
|
|
3214
|
-
public ElseIfBlockContext elseIfBlock(int i) {
|
|
3215
|
-
return getRuleContext(ElseIfBlockContext.class,i);
|
|
3216
|
-
}
|
|
3217
|
-
public ElseBlockContext elseBlock() {
|
|
3218
|
-
return getRuleContext(ElseBlockContext.class,0);
|
|
3219
|
-
}
|
|
3220
|
-
public AltContext(ParserRuleContext parent, int invokingState) {
|
|
3221
|
-
super(parent, invokingState);
|
|
3222
|
-
}
|
|
3223
|
-
@Override public int getRuleIndex() { return RULE_alt; }
|
|
3224
|
-
@Override
|
|
3225
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3226
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAlt(this);
|
|
3227
|
-
}
|
|
3228
|
-
@Override
|
|
3229
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3230
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAlt(this);
|
|
3231
|
-
}
|
|
3232
|
-
@Override
|
|
3233
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3234
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAlt(this);
|
|
3235
|
-
else return visitor.visitChildren(this);
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
public final AltContext alt() throws RecognitionException {
|
|
3240
|
-
AltContext _localctx = new AltContext(_ctx, getState());
|
|
3241
|
-
enterRule(_localctx, 82, RULE_alt);
|
|
3242
|
-
int _la;
|
|
3243
|
-
try {
|
|
3244
|
-
int _alt;
|
|
3245
|
-
enterOuterAlt(_localctx, 1);
|
|
3246
|
-
{
|
|
3247
|
-
setState(436);
|
|
3248
|
-
ifBlock();
|
|
3249
|
-
setState(440);
|
|
3250
|
-
_errHandler.sync(this);
|
|
3251
|
-
_alt = getInterpreter().adaptivePredict(_input,64,_ctx);
|
|
3252
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
3253
|
-
if ( _alt==1 ) {
|
|
3254
|
-
{
|
|
3255
|
-
{
|
|
3256
|
-
setState(437);
|
|
3257
|
-
elseIfBlock();
|
|
3258
|
-
}
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
setState(442);
|
|
3262
|
-
_errHandler.sync(this);
|
|
3263
|
-
_alt = getInterpreter().adaptivePredict(_input,64,_ctx);
|
|
3264
|
-
}
|
|
3265
|
-
setState(444);
|
|
3266
|
-
_errHandler.sync(this);
|
|
3267
|
-
_la = _input.LA(1);
|
|
3268
|
-
if (_la==ELSE) {
|
|
3269
|
-
{
|
|
3270
|
-
setState(443);
|
|
3271
|
-
elseBlock();
|
|
3272
|
-
}
|
|
3273
|
-
}
|
|
3274
|
-
|
|
3275
|
-
}
|
|
3276
|
-
}
|
|
3277
|
-
catch (RecognitionException re) {
|
|
3278
|
-
_localctx.exception = re;
|
|
3279
|
-
_errHandler.reportError(this, re);
|
|
3280
|
-
_errHandler.recover(this, re);
|
|
3281
|
-
}
|
|
3282
|
-
finally {
|
|
3283
|
-
exitRule();
|
|
3284
|
-
}
|
|
3285
|
-
return _localctx;
|
|
3286
|
-
}
|
|
3287
|
-
|
|
3288
|
-
public static class IfBlockContext extends ParserRuleContext {
|
|
3289
|
-
public TerminalNode IF() { return getToken(sequenceParser.IF, 0); }
|
|
3290
|
-
public ParExprContext parExpr() {
|
|
3291
|
-
return getRuleContext(ParExprContext.class,0);
|
|
3292
|
-
}
|
|
3293
|
-
public BraceBlockContext braceBlock() {
|
|
3294
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3295
|
-
}
|
|
3296
|
-
public IfBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3297
|
-
super(parent, invokingState);
|
|
3298
|
-
}
|
|
3299
|
-
@Override public int getRuleIndex() { return RULE_ifBlock; }
|
|
3300
|
-
@Override
|
|
3301
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3302
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterIfBlock(this);
|
|
3303
|
-
}
|
|
3304
|
-
@Override
|
|
3305
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3306
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitIfBlock(this);
|
|
3307
|
-
}
|
|
3308
|
-
@Override
|
|
3309
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3310
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitIfBlock(this);
|
|
3311
|
-
else return visitor.visitChildren(this);
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
|
|
3315
|
-
public final IfBlockContext ifBlock() throws RecognitionException {
|
|
3316
|
-
IfBlockContext _localctx = new IfBlockContext(_ctx, getState());
|
|
3317
|
-
enterRule(_localctx, 84, RULE_ifBlock);
|
|
3318
|
-
try {
|
|
3319
|
-
enterOuterAlt(_localctx, 1);
|
|
3320
|
-
{
|
|
3321
|
-
setState(446);
|
|
3322
|
-
match(IF);
|
|
3323
|
-
setState(447);
|
|
3324
|
-
parExpr();
|
|
3325
|
-
setState(448);
|
|
3326
|
-
braceBlock();
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3329
|
-
catch (RecognitionException re) {
|
|
3330
|
-
_localctx.exception = re;
|
|
3331
|
-
_errHandler.reportError(this, re);
|
|
3332
|
-
_errHandler.recover(this, re);
|
|
3333
|
-
}
|
|
3334
|
-
finally {
|
|
3335
|
-
exitRule();
|
|
3336
|
-
}
|
|
3337
|
-
return _localctx;
|
|
3338
|
-
}
|
|
3339
|
-
|
|
3340
|
-
public static class ElseIfBlockContext extends ParserRuleContext {
|
|
3341
|
-
public TerminalNode ELSE() { return getToken(sequenceParser.ELSE, 0); }
|
|
3342
|
-
public TerminalNode IF() { return getToken(sequenceParser.IF, 0); }
|
|
3343
|
-
public ParExprContext parExpr() {
|
|
3344
|
-
return getRuleContext(ParExprContext.class,0);
|
|
3345
|
-
}
|
|
3346
|
-
public BraceBlockContext braceBlock() {
|
|
3347
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3348
|
-
}
|
|
3349
|
-
public ElseIfBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3350
|
-
super(parent, invokingState);
|
|
3351
|
-
}
|
|
3352
|
-
@Override public int getRuleIndex() { return RULE_elseIfBlock; }
|
|
3353
|
-
@Override
|
|
3354
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3355
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterElseIfBlock(this);
|
|
3356
|
-
}
|
|
3357
|
-
@Override
|
|
3358
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3359
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitElseIfBlock(this);
|
|
3360
|
-
}
|
|
3361
|
-
@Override
|
|
3362
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3363
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitElseIfBlock(this);
|
|
3364
|
-
else return visitor.visitChildren(this);
|
|
3365
|
-
}
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
|
-
public final ElseIfBlockContext elseIfBlock() throws RecognitionException {
|
|
3369
|
-
ElseIfBlockContext _localctx = new ElseIfBlockContext(_ctx, getState());
|
|
3370
|
-
enterRule(_localctx, 86, RULE_elseIfBlock);
|
|
3371
|
-
try {
|
|
3372
|
-
enterOuterAlt(_localctx, 1);
|
|
3373
|
-
{
|
|
3374
|
-
setState(450);
|
|
3375
|
-
match(ELSE);
|
|
3376
|
-
setState(451);
|
|
3377
|
-
match(IF);
|
|
3378
|
-
setState(452);
|
|
3379
|
-
parExpr();
|
|
3380
|
-
setState(453);
|
|
3381
|
-
braceBlock();
|
|
3382
|
-
}
|
|
3383
|
-
}
|
|
3384
|
-
catch (RecognitionException re) {
|
|
3385
|
-
_localctx.exception = re;
|
|
3386
|
-
_errHandler.reportError(this, re);
|
|
3387
|
-
_errHandler.recover(this, re);
|
|
3388
|
-
}
|
|
3389
|
-
finally {
|
|
3390
|
-
exitRule();
|
|
3391
|
-
}
|
|
3392
|
-
return _localctx;
|
|
3393
|
-
}
|
|
3394
|
-
|
|
3395
|
-
public static class ElseBlockContext extends ParserRuleContext {
|
|
3396
|
-
public TerminalNode ELSE() { return getToken(sequenceParser.ELSE, 0); }
|
|
3397
|
-
public BraceBlockContext braceBlock() {
|
|
3398
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3399
|
-
}
|
|
3400
|
-
public ElseBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3401
|
-
super(parent, invokingState);
|
|
3402
|
-
}
|
|
3403
|
-
@Override public int getRuleIndex() { return RULE_elseBlock; }
|
|
3404
|
-
@Override
|
|
3405
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3406
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterElseBlock(this);
|
|
3407
|
-
}
|
|
3408
|
-
@Override
|
|
3409
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3410
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitElseBlock(this);
|
|
3411
|
-
}
|
|
3412
|
-
@Override
|
|
3413
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3414
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitElseBlock(this);
|
|
3415
|
-
else return visitor.visitChildren(this);
|
|
3416
|
-
}
|
|
3417
|
-
}
|
|
3418
|
-
|
|
3419
|
-
public final ElseBlockContext elseBlock() throws RecognitionException {
|
|
3420
|
-
ElseBlockContext _localctx = new ElseBlockContext(_ctx, getState());
|
|
3421
|
-
enterRule(_localctx, 88, RULE_elseBlock);
|
|
3422
|
-
try {
|
|
3423
|
-
enterOuterAlt(_localctx, 1);
|
|
3424
|
-
{
|
|
3425
|
-
setState(455);
|
|
3426
|
-
match(ELSE);
|
|
3427
|
-
setState(456);
|
|
3428
|
-
braceBlock();
|
|
3429
|
-
}
|
|
3430
|
-
}
|
|
3431
|
-
catch (RecognitionException re) {
|
|
3432
|
-
_localctx.exception = re;
|
|
3433
|
-
_errHandler.reportError(this, re);
|
|
3434
|
-
_errHandler.recover(this, re);
|
|
3435
|
-
}
|
|
3436
|
-
finally {
|
|
3437
|
-
exitRule();
|
|
3438
|
-
}
|
|
3439
|
-
return _localctx;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
public static class BraceBlockContext extends ParserRuleContext {
|
|
3443
|
-
public TerminalNode OBRACE() { return getToken(sequenceParser.OBRACE, 0); }
|
|
3444
|
-
public TerminalNode CBRACE() { return getToken(sequenceParser.CBRACE, 0); }
|
|
3445
|
-
public BlockContext block() {
|
|
3446
|
-
return getRuleContext(BlockContext.class,0);
|
|
3447
|
-
}
|
|
3448
|
-
public BraceBlockContext(ParserRuleContext parent, int invokingState) {
|
|
3449
|
-
super(parent, invokingState);
|
|
3450
|
-
}
|
|
3451
|
-
@Override public int getRuleIndex() { return RULE_braceBlock; }
|
|
3452
|
-
@Override
|
|
3453
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3454
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterBraceBlock(this);
|
|
3455
|
-
}
|
|
3456
|
-
@Override
|
|
3457
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3458
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitBraceBlock(this);
|
|
3459
|
-
}
|
|
3460
|
-
@Override
|
|
3461
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3462
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitBraceBlock(this);
|
|
3463
|
-
else return visitor.visitChildren(this);
|
|
3464
|
-
}
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
public final BraceBlockContext braceBlock() throws RecognitionException {
|
|
3468
|
-
BraceBlockContext _localctx = new BraceBlockContext(_ctx, getState());
|
|
3469
|
-
enterRule(_localctx, 90, RULE_braceBlock);
|
|
3470
|
-
int _la;
|
|
3471
|
-
try {
|
|
3472
|
-
enterOuterAlt(_localctx, 1);
|
|
3473
|
-
{
|
|
3474
|
-
setState(458);
|
|
3475
|
-
match(OBRACE);
|
|
3476
|
-
setState(460);
|
|
3477
|
-
_errHandler.sync(this);
|
|
3478
|
-
_la = _input.LA(1);
|
|
3479
|
-
if ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << EQ) | (1L << TRUE) | (1L << FALSE) | (1L << NIL) | (1L << IF) | (1L << WHILE) | (1L << RETURN) | (1L << NEW) | (1L << PAR) | (1L << OPT) | (1L << TRY) | (1L << ANNOTATION_RET) | (1L << ID) | (1L << INT) | (1L << FLOAT) | (1L << STRING) | (1L << COMMENT) | (1L << OTHER))) != 0)) {
|
|
3480
|
-
{
|
|
3481
|
-
setState(459);
|
|
3482
|
-
block();
|
|
3483
|
-
}
|
|
3484
|
-
}
|
|
3485
|
-
|
|
3486
|
-
setState(462);
|
|
3487
|
-
match(CBRACE);
|
|
3488
|
-
}
|
|
3489
|
-
}
|
|
3490
|
-
catch (RecognitionException re) {
|
|
3491
|
-
_localctx.exception = re;
|
|
3492
|
-
_errHandler.reportError(this, re);
|
|
3493
|
-
_errHandler.recover(this, re);
|
|
3494
|
-
}
|
|
3495
|
-
finally {
|
|
3496
|
-
exitRule();
|
|
3497
|
-
}
|
|
3498
|
-
return _localctx;
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
public static class LoopContext extends ParserRuleContext {
|
|
3502
|
-
public TerminalNode WHILE() { return getToken(sequenceParser.WHILE, 0); }
|
|
3503
|
-
public ParExprContext parExpr() {
|
|
3504
|
-
return getRuleContext(ParExprContext.class,0);
|
|
3505
|
-
}
|
|
3506
|
-
public BraceBlockContext braceBlock() {
|
|
3507
|
-
return getRuleContext(BraceBlockContext.class,0);
|
|
3508
|
-
}
|
|
3509
|
-
public LoopContext(ParserRuleContext parent, int invokingState) {
|
|
3510
|
-
super(parent, invokingState);
|
|
3511
|
-
}
|
|
3512
|
-
@Override public int getRuleIndex() { return RULE_loop; }
|
|
3513
|
-
@Override
|
|
3514
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3515
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterLoop(this);
|
|
3516
|
-
}
|
|
3517
|
-
@Override
|
|
3518
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3519
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitLoop(this);
|
|
3520
|
-
}
|
|
3521
|
-
@Override
|
|
3522
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3523
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitLoop(this);
|
|
3524
|
-
else return visitor.visitChildren(this);
|
|
3525
|
-
}
|
|
3526
|
-
}
|
|
3527
|
-
|
|
3528
|
-
public final LoopContext loop() throws RecognitionException {
|
|
3529
|
-
LoopContext _localctx = new LoopContext(_ctx, getState());
|
|
3530
|
-
enterRule(_localctx, 92, RULE_loop);
|
|
3531
|
-
try {
|
|
3532
|
-
setState(471);
|
|
3533
|
-
_errHandler.sync(this);
|
|
3534
|
-
switch ( getInterpreter().adaptivePredict(_input,67,_ctx) ) {
|
|
3535
|
-
case 1:
|
|
3536
|
-
enterOuterAlt(_localctx, 1);
|
|
3537
|
-
{
|
|
3538
|
-
setState(464);
|
|
3539
|
-
match(WHILE);
|
|
3540
|
-
setState(465);
|
|
3541
|
-
parExpr();
|
|
3542
|
-
setState(466);
|
|
3543
|
-
braceBlock();
|
|
3544
|
-
}
|
|
3545
|
-
break;
|
|
3546
|
-
case 2:
|
|
3547
|
-
enterOuterAlt(_localctx, 2);
|
|
3548
|
-
{
|
|
3549
|
-
setState(468);
|
|
3550
|
-
match(WHILE);
|
|
3551
|
-
setState(469);
|
|
3552
|
-
parExpr();
|
|
3553
|
-
}
|
|
3554
|
-
break;
|
|
3555
|
-
case 3:
|
|
3556
|
-
enterOuterAlt(_localctx, 3);
|
|
3557
|
-
{
|
|
3558
|
-
setState(470);
|
|
3559
|
-
match(WHILE);
|
|
3560
|
-
}
|
|
3561
|
-
break;
|
|
3562
|
-
}
|
|
3563
|
-
}
|
|
3564
|
-
catch (RecognitionException re) {
|
|
3565
|
-
_localctx.exception = re;
|
|
3566
|
-
_errHandler.reportError(this, re);
|
|
3567
|
-
_errHandler.recover(this, re);
|
|
3568
|
-
}
|
|
3569
|
-
finally {
|
|
3570
|
-
exitRule();
|
|
3571
|
-
}
|
|
3572
|
-
return _localctx;
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
-
public static class ExprContext extends ParserRuleContext {
|
|
3576
|
-
public ExprContext(ParserRuleContext parent, int invokingState) {
|
|
3577
|
-
super(parent, invokingState);
|
|
3578
|
-
}
|
|
3579
|
-
@Override public int getRuleIndex() { return RULE_expr; }
|
|
3580
|
-
|
|
3581
|
-
public ExprContext() { }
|
|
3582
|
-
public void copyFrom(ExprContext ctx) {
|
|
3583
|
-
super.copyFrom(ctx);
|
|
3584
|
-
}
|
|
3585
|
-
}
|
|
3586
|
-
public static class NotExprContext extends ExprContext {
|
|
3587
|
-
public TerminalNode NOT() { return getToken(sequenceParser.NOT, 0); }
|
|
3588
|
-
public ExprContext expr() {
|
|
3589
|
-
return getRuleContext(ExprContext.class,0);
|
|
3590
|
-
}
|
|
3591
|
-
public NotExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3592
|
-
@Override
|
|
3593
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3594
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterNotExpr(this);
|
|
3595
|
-
}
|
|
3596
|
-
@Override
|
|
3597
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3598
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitNotExpr(this);
|
|
3599
|
-
}
|
|
3600
|
-
@Override
|
|
3601
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3602
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitNotExpr(this);
|
|
3603
|
-
else return visitor.visitChildren(this);
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
public static class FuncExprContext extends ExprContext {
|
|
3607
|
-
public FuncContext func() {
|
|
3608
|
-
return getRuleContext(FuncContext.class,0);
|
|
3609
|
-
}
|
|
3610
|
-
public ToContext to() {
|
|
3611
|
-
return getRuleContext(ToContext.class,0);
|
|
3612
|
-
}
|
|
3613
|
-
public TerminalNode DOT() { return getToken(sequenceParser.DOT, 0); }
|
|
3614
|
-
public FuncExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3615
|
-
@Override
|
|
3616
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3617
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterFuncExpr(this);
|
|
3618
|
-
}
|
|
3619
|
-
@Override
|
|
3620
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3621
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitFuncExpr(this);
|
|
3622
|
-
}
|
|
3623
|
-
@Override
|
|
3624
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3625
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitFuncExpr(this);
|
|
3626
|
-
else return visitor.visitChildren(this);
|
|
3627
|
-
}
|
|
3628
|
-
}
|
|
3629
|
-
public static class UnaryMinusExprContext extends ExprContext {
|
|
3630
|
-
public TerminalNode MINUS() { return getToken(sequenceParser.MINUS, 0); }
|
|
3631
|
-
public ExprContext expr() {
|
|
3632
|
-
return getRuleContext(ExprContext.class,0);
|
|
3633
|
-
}
|
|
3634
|
-
public UnaryMinusExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3635
|
-
@Override
|
|
3636
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3637
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterUnaryMinusExpr(this);
|
|
3638
|
-
}
|
|
3639
|
-
@Override
|
|
3640
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3641
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitUnaryMinusExpr(this);
|
|
3642
|
-
}
|
|
3643
|
-
@Override
|
|
3644
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3645
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitUnaryMinusExpr(this);
|
|
3646
|
-
else return visitor.visitChildren(this);
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
public static class CreationExprContext extends ExprContext {
|
|
3650
|
-
public CreationContext creation() {
|
|
3651
|
-
return getRuleContext(CreationContext.class,0);
|
|
3652
|
-
}
|
|
3653
|
-
public CreationExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3654
|
-
@Override
|
|
3655
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3656
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterCreationExpr(this);
|
|
3657
|
-
}
|
|
3658
|
-
@Override
|
|
3659
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3660
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitCreationExpr(this);
|
|
3661
|
-
}
|
|
3662
|
-
@Override
|
|
3663
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3664
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitCreationExpr(this);
|
|
3665
|
-
else return visitor.visitChildren(this);
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
public static class MultiplicationExprContext extends ExprContext {
|
|
3669
|
-
public Token op;
|
|
3670
|
-
public List<ExprContext> expr() {
|
|
3671
|
-
return getRuleContexts(ExprContext.class);
|
|
3672
|
-
}
|
|
3673
|
-
public ExprContext expr(int i) {
|
|
3674
|
-
return getRuleContext(ExprContext.class,i);
|
|
3675
|
-
}
|
|
3676
|
-
public TerminalNode MULT() { return getToken(sequenceParser.MULT, 0); }
|
|
3677
|
-
public TerminalNode DIV() { return getToken(sequenceParser.DIV, 0); }
|
|
3678
|
-
public TerminalNode MOD() { return getToken(sequenceParser.MOD, 0); }
|
|
3679
|
-
public MultiplicationExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3680
|
-
@Override
|
|
3681
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3682
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterMultiplicationExpr(this);
|
|
3683
|
-
}
|
|
3684
|
-
@Override
|
|
3685
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3686
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitMultiplicationExpr(this);
|
|
3687
|
-
}
|
|
3688
|
-
@Override
|
|
3689
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3690
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitMultiplicationExpr(this);
|
|
3691
|
-
else return visitor.visitChildren(this);
|
|
3692
|
-
}
|
|
3693
|
-
}
|
|
3694
|
-
public static class AtomExprContext extends ExprContext {
|
|
3695
|
-
public AtomContext atom() {
|
|
3696
|
-
return getRuleContext(AtomContext.class,0);
|
|
3697
|
-
}
|
|
3698
|
-
public AtomExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3699
|
-
@Override
|
|
3700
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3701
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAtomExpr(this);
|
|
3702
|
-
}
|
|
3703
|
-
@Override
|
|
3704
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3705
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAtomExpr(this);
|
|
3706
|
-
}
|
|
3707
|
-
@Override
|
|
3708
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3709
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAtomExpr(this);
|
|
3710
|
-
else return visitor.visitChildren(this);
|
|
3711
|
-
}
|
|
3712
|
-
}
|
|
3713
|
-
public static class OrExprContext extends ExprContext {
|
|
3714
|
-
public List<ExprContext> expr() {
|
|
3715
|
-
return getRuleContexts(ExprContext.class);
|
|
3716
|
-
}
|
|
3717
|
-
public ExprContext expr(int i) {
|
|
3718
|
-
return getRuleContext(ExprContext.class,i);
|
|
3719
|
-
}
|
|
3720
|
-
public TerminalNode OR() { return getToken(sequenceParser.OR, 0); }
|
|
3721
|
-
public OrExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3722
|
-
@Override
|
|
3723
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3724
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterOrExpr(this);
|
|
3725
|
-
}
|
|
3726
|
-
@Override
|
|
3727
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3728
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitOrExpr(this);
|
|
3729
|
-
}
|
|
3730
|
-
@Override
|
|
3731
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3732
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitOrExpr(this);
|
|
3733
|
-
else return visitor.visitChildren(this);
|
|
3734
|
-
}
|
|
3735
|
-
}
|
|
3736
|
-
public static class AdditiveExprContext extends ExprContext {
|
|
3737
|
-
public Token op;
|
|
3738
|
-
public List<ExprContext> expr() {
|
|
3739
|
-
return getRuleContexts(ExprContext.class);
|
|
3740
|
-
}
|
|
3741
|
-
public ExprContext expr(int i) {
|
|
3742
|
-
return getRuleContext(ExprContext.class,i);
|
|
3743
|
-
}
|
|
3744
|
-
public TerminalNode PLUS() { return getToken(sequenceParser.PLUS, 0); }
|
|
3745
|
-
public TerminalNode MINUS() { return getToken(sequenceParser.MINUS, 0); }
|
|
3746
|
-
public AdditiveExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3747
|
-
@Override
|
|
3748
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3749
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAdditiveExpr(this);
|
|
3750
|
-
}
|
|
3751
|
-
@Override
|
|
3752
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3753
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAdditiveExpr(this);
|
|
3754
|
-
}
|
|
3755
|
-
@Override
|
|
3756
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3757
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAdditiveExpr(this);
|
|
3758
|
-
else return visitor.visitChildren(this);
|
|
3759
|
-
}
|
|
3760
|
-
}
|
|
3761
|
-
public static class RelationalExprContext extends ExprContext {
|
|
3762
|
-
public Token op;
|
|
3763
|
-
public List<ExprContext> expr() {
|
|
3764
|
-
return getRuleContexts(ExprContext.class);
|
|
3765
|
-
}
|
|
3766
|
-
public ExprContext expr(int i) {
|
|
3767
|
-
return getRuleContext(ExprContext.class,i);
|
|
3768
|
-
}
|
|
3769
|
-
public TerminalNode LTEQ() { return getToken(sequenceParser.LTEQ, 0); }
|
|
3770
|
-
public TerminalNode GTEQ() { return getToken(sequenceParser.GTEQ, 0); }
|
|
3771
|
-
public TerminalNode LT() { return getToken(sequenceParser.LT, 0); }
|
|
3772
|
-
public TerminalNode GT() { return getToken(sequenceParser.GT, 0); }
|
|
3773
|
-
public RelationalExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3774
|
-
@Override
|
|
3775
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3776
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterRelationalExpr(this);
|
|
3777
|
-
}
|
|
3778
|
-
@Override
|
|
3779
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3780
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitRelationalExpr(this);
|
|
3781
|
-
}
|
|
3782
|
-
@Override
|
|
3783
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3784
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitRelationalExpr(this);
|
|
3785
|
-
else return visitor.visitChildren(this);
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
public static class EqualityExprContext extends ExprContext {
|
|
3789
|
-
public Token op;
|
|
3790
|
-
public List<ExprContext> expr() {
|
|
3791
|
-
return getRuleContexts(ExprContext.class);
|
|
3792
|
-
}
|
|
3793
|
-
public ExprContext expr(int i) {
|
|
3794
|
-
return getRuleContext(ExprContext.class,i);
|
|
3795
|
-
}
|
|
3796
|
-
public TerminalNode EQ() { return getToken(sequenceParser.EQ, 0); }
|
|
3797
|
-
public TerminalNode NEQ() { return getToken(sequenceParser.NEQ, 0); }
|
|
3798
|
-
public EqualityExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3799
|
-
@Override
|
|
3800
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3801
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterEqualityExpr(this);
|
|
3802
|
-
}
|
|
3803
|
-
@Override
|
|
3804
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3805
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitEqualityExpr(this);
|
|
3806
|
-
}
|
|
3807
|
-
@Override
|
|
3808
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3809
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitEqualityExpr(this);
|
|
3810
|
-
else return visitor.visitChildren(this);
|
|
3811
|
-
}
|
|
3812
|
-
}
|
|
3813
|
-
public static class PlusExprContext extends ExprContext {
|
|
3814
|
-
public List<ExprContext> expr() {
|
|
3815
|
-
return getRuleContexts(ExprContext.class);
|
|
3816
|
-
}
|
|
3817
|
-
public ExprContext expr(int i) {
|
|
3818
|
-
return getRuleContext(ExprContext.class,i);
|
|
3819
|
-
}
|
|
3820
|
-
public TerminalNode PLUS() { return getToken(sequenceParser.PLUS, 0); }
|
|
3821
|
-
public PlusExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3822
|
-
@Override
|
|
3823
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3824
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterPlusExpr(this);
|
|
3825
|
-
}
|
|
3826
|
-
@Override
|
|
3827
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3828
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitPlusExpr(this);
|
|
3829
|
-
}
|
|
3830
|
-
@Override
|
|
3831
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3832
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitPlusExpr(this);
|
|
3833
|
-
else return visitor.visitChildren(this);
|
|
3834
|
-
}
|
|
3835
|
-
}
|
|
3836
|
-
public static class AndExprContext extends ExprContext {
|
|
3837
|
-
public List<ExprContext> expr() {
|
|
3838
|
-
return getRuleContexts(ExprContext.class);
|
|
3839
|
-
}
|
|
3840
|
-
public ExprContext expr(int i) {
|
|
3841
|
-
return getRuleContext(ExprContext.class,i);
|
|
3842
|
-
}
|
|
3843
|
-
public TerminalNode AND() { return getToken(sequenceParser.AND, 0); }
|
|
3844
|
-
public AndExprContext(ExprContext ctx) { copyFrom(ctx); }
|
|
3845
|
-
@Override
|
|
3846
|
-
public void enterRule(ParseTreeListener listener) {
|
|
3847
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterAndExpr(this);
|
|
3848
|
-
}
|
|
3849
|
-
@Override
|
|
3850
|
-
public void exitRule(ParseTreeListener listener) {
|
|
3851
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitAndExpr(this);
|
|
3852
|
-
}
|
|
3853
|
-
@Override
|
|
3854
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
3855
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitAndExpr(this);
|
|
3856
|
-
else return visitor.visitChildren(this);
|
|
3857
|
-
}
|
|
3858
|
-
}
|
|
3859
|
-
|
|
3860
|
-
public final ExprContext expr() throws RecognitionException {
|
|
3861
|
-
return expr(0);
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
private ExprContext expr(int _p) throws RecognitionException {
|
|
3865
|
-
ParserRuleContext _parentctx = _ctx;
|
|
3866
|
-
int _parentState = getState();
|
|
3867
|
-
ExprContext _localctx = new ExprContext(_ctx, _parentState);
|
|
3868
|
-
ExprContext _prevctx = _localctx;
|
|
3869
|
-
int _startState = 94;
|
|
3870
|
-
enterRecursionRule(_localctx, 94, RULE_expr, _p);
|
|
3871
|
-
int _la;
|
|
3872
|
-
try {
|
|
3873
|
-
int _alt;
|
|
3874
|
-
enterOuterAlt(_localctx, 1);
|
|
3875
|
-
{
|
|
3876
|
-
setState(486);
|
|
3877
|
-
_errHandler.sync(this);
|
|
3878
|
-
switch ( getInterpreter().adaptivePredict(_input,69,_ctx) ) {
|
|
3879
|
-
case 1:
|
|
3880
|
-
{
|
|
3881
|
-
_localctx = new UnaryMinusExprContext(_localctx);
|
|
3882
|
-
_ctx = _localctx;
|
|
3883
|
-
_prevctx = _localctx;
|
|
3884
|
-
|
|
3885
|
-
setState(474);
|
|
3886
|
-
match(MINUS);
|
|
3887
|
-
setState(475);
|
|
3888
|
-
expr(12);
|
|
3889
|
-
}
|
|
3890
|
-
break;
|
|
3891
|
-
case 2:
|
|
3892
|
-
{
|
|
3893
|
-
_localctx = new NotExprContext(_localctx);
|
|
3894
|
-
_ctx = _localctx;
|
|
3895
|
-
_prevctx = _localctx;
|
|
3896
|
-
setState(476);
|
|
3897
|
-
match(NOT);
|
|
3898
|
-
setState(477);
|
|
3899
|
-
expr(11);
|
|
3900
|
-
}
|
|
3901
|
-
break;
|
|
3902
|
-
case 3:
|
|
3903
|
-
{
|
|
3904
|
-
_localctx = new FuncExprContext(_localctx);
|
|
3905
|
-
_ctx = _localctx;
|
|
3906
|
-
_prevctx = _localctx;
|
|
3907
|
-
setState(481);
|
|
3908
|
-
_errHandler.sync(this);
|
|
3909
|
-
switch ( getInterpreter().adaptivePredict(_input,68,_ctx) ) {
|
|
3910
|
-
case 1:
|
|
3911
|
-
{
|
|
3912
|
-
setState(478);
|
|
3913
|
-
to();
|
|
3914
|
-
setState(479);
|
|
3915
|
-
match(DOT);
|
|
3916
|
-
}
|
|
3917
|
-
break;
|
|
3918
|
-
}
|
|
3919
|
-
setState(483);
|
|
3920
|
-
func();
|
|
3921
|
-
}
|
|
3922
|
-
break;
|
|
3923
|
-
case 4:
|
|
3924
|
-
{
|
|
3925
|
-
_localctx = new CreationExprContext(_localctx);
|
|
3926
|
-
_ctx = _localctx;
|
|
3927
|
-
_prevctx = _localctx;
|
|
3928
|
-
setState(484);
|
|
3929
|
-
creation();
|
|
3930
|
-
}
|
|
3931
|
-
break;
|
|
3932
|
-
case 5:
|
|
3933
|
-
{
|
|
3934
|
-
_localctx = new AtomExprContext(_localctx);
|
|
3935
|
-
_ctx = _localctx;
|
|
3936
|
-
_prevctx = _localctx;
|
|
3937
|
-
setState(485);
|
|
3938
|
-
atom();
|
|
3939
|
-
}
|
|
3940
|
-
break;
|
|
3941
|
-
}
|
|
3942
|
-
_ctx.stop = _input.LT(-1);
|
|
3943
|
-
setState(511);
|
|
3944
|
-
_errHandler.sync(this);
|
|
3945
|
-
_alt = getInterpreter().adaptivePredict(_input,71,_ctx);
|
|
3946
|
-
while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) {
|
|
3947
|
-
if ( _alt==1 ) {
|
|
3948
|
-
if ( _parseListeners!=null ) triggerExitRuleEvent();
|
|
3949
|
-
_prevctx = _localctx;
|
|
3950
|
-
{
|
|
3951
|
-
setState(509);
|
|
3952
|
-
_errHandler.sync(this);
|
|
3953
|
-
switch ( getInterpreter().adaptivePredict(_input,70,_ctx) ) {
|
|
3954
|
-
case 1:
|
|
3955
|
-
{
|
|
3956
|
-
_localctx = new MultiplicationExprContext(new ExprContext(_parentctx, _parentState));
|
|
3957
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
3958
|
-
setState(488);
|
|
3959
|
-
if (!(precpred(_ctx, 10))) throw new FailedPredicateException(this, "precpred(_ctx, 10)");
|
|
3960
|
-
setState(489);
|
|
3961
|
-
((MultiplicationExprContext)_localctx).op = _input.LT(1);
|
|
3962
|
-
_la = _input.LA(1);
|
|
3963
|
-
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << MULT) | (1L << DIV) | (1L << MOD))) != 0)) ) {
|
|
3964
|
-
((MultiplicationExprContext)_localctx).op = (Token)_errHandler.recoverInline(this);
|
|
3965
|
-
}
|
|
3966
|
-
else {
|
|
3967
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
3968
|
-
_errHandler.reportMatch(this);
|
|
3969
|
-
consume();
|
|
3970
|
-
}
|
|
3971
|
-
setState(490);
|
|
3972
|
-
expr(11);
|
|
3973
|
-
}
|
|
3974
|
-
break;
|
|
3975
|
-
case 2:
|
|
3976
|
-
{
|
|
3977
|
-
_localctx = new AdditiveExprContext(new ExprContext(_parentctx, _parentState));
|
|
3978
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
3979
|
-
setState(491);
|
|
3980
|
-
if (!(precpred(_ctx, 9))) throw new FailedPredicateException(this, "precpred(_ctx, 9)");
|
|
3981
|
-
setState(492);
|
|
3982
|
-
((AdditiveExprContext)_localctx).op = _input.LT(1);
|
|
3983
|
-
_la = _input.LA(1);
|
|
3984
|
-
if ( !(_la==PLUS || _la==MINUS) ) {
|
|
3985
|
-
((AdditiveExprContext)_localctx).op = (Token)_errHandler.recoverInline(this);
|
|
3986
|
-
}
|
|
3987
|
-
else {
|
|
3988
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
3989
|
-
_errHandler.reportMatch(this);
|
|
3990
|
-
consume();
|
|
3991
|
-
}
|
|
3992
|
-
setState(493);
|
|
3993
|
-
expr(10);
|
|
3994
|
-
}
|
|
3995
|
-
break;
|
|
3996
|
-
case 3:
|
|
3997
|
-
{
|
|
3998
|
-
_localctx = new RelationalExprContext(new ExprContext(_parentctx, _parentState));
|
|
3999
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
4000
|
-
setState(494);
|
|
4001
|
-
if (!(precpred(_ctx, 8))) throw new FailedPredicateException(this, "precpred(_ctx, 8)");
|
|
4002
|
-
setState(495);
|
|
4003
|
-
((RelationalExprContext)_localctx).op = _input.LT(1);
|
|
4004
|
-
_la = _input.LA(1);
|
|
4005
|
-
if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << GT) | (1L << LT) | (1L << GTEQ) | (1L << LTEQ))) != 0)) ) {
|
|
4006
|
-
((RelationalExprContext)_localctx).op = (Token)_errHandler.recoverInline(this);
|
|
4007
|
-
}
|
|
4008
|
-
else {
|
|
4009
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
4010
|
-
_errHandler.reportMatch(this);
|
|
4011
|
-
consume();
|
|
4012
|
-
}
|
|
4013
|
-
setState(496);
|
|
4014
|
-
expr(9);
|
|
4015
|
-
}
|
|
4016
|
-
break;
|
|
4017
|
-
case 4:
|
|
4018
|
-
{
|
|
4019
|
-
_localctx = new EqualityExprContext(new ExprContext(_parentctx, _parentState));
|
|
4020
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
4021
|
-
setState(497);
|
|
4022
|
-
if (!(precpred(_ctx, 7))) throw new FailedPredicateException(this, "precpred(_ctx, 7)");
|
|
4023
|
-
setState(498);
|
|
4024
|
-
((EqualityExprContext)_localctx).op = _input.LT(1);
|
|
4025
|
-
_la = _input.LA(1);
|
|
4026
|
-
if ( !(_la==EQ || _la==NEQ) ) {
|
|
4027
|
-
((EqualityExprContext)_localctx).op = (Token)_errHandler.recoverInline(this);
|
|
4028
|
-
}
|
|
4029
|
-
else {
|
|
4030
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
4031
|
-
_errHandler.reportMatch(this);
|
|
4032
|
-
consume();
|
|
4033
|
-
}
|
|
4034
|
-
setState(499);
|
|
4035
|
-
expr(8);
|
|
4036
|
-
}
|
|
4037
|
-
break;
|
|
4038
|
-
case 5:
|
|
4039
|
-
{
|
|
4040
|
-
_localctx = new AndExprContext(new ExprContext(_parentctx, _parentState));
|
|
4041
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
4042
|
-
setState(500);
|
|
4043
|
-
if (!(precpred(_ctx, 6))) throw new FailedPredicateException(this, "precpred(_ctx, 6)");
|
|
4044
|
-
setState(501);
|
|
4045
|
-
match(AND);
|
|
4046
|
-
setState(502);
|
|
4047
|
-
expr(7);
|
|
4048
|
-
}
|
|
4049
|
-
break;
|
|
4050
|
-
case 6:
|
|
4051
|
-
{
|
|
4052
|
-
_localctx = new OrExprContext(new ExprContext(_parentctx, _parentState));
|
|
4053
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
4054
|
-
setState(503);
|
|
4055
|
-
if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)");
|
|
4056
|
-
setState(504);
|
|
4057
|
-
match(OR);
|
|
4058
|
-
setState(505);
|
|
4059
|
-
expr(6);
|
|
4060
|
-
}
|
|
4061
|
-
break;
|
|
4062
|
-
case 7:
|
|
4063
|
-
{
|
|
4064
|
-
_localctx = new PlusExprContext(new ExprContext(_parentctx, _parentState));
|
|
4065
|
-
pushNewRecursionContext(_localctx, _startState, RULE_expr);
|
|
4066
|
-
setState(506);
|
|
4067
|
-
if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)");
|
|
4068
|
-
setState(507);
|
|
4069
|
-
match(PLUS);
|
|
4070
|
-
setState(508);
|
|
4071
|
-
expr(5);
|
|
4072
|
-
}
|
|
4073
|
-
break;
|
|
4074
|
-
}
|
|
4075
|
-
}
|
|
4076
|
-
}
|
|
4077
|
-
setState(513);
|
|
4078
|
-
_errHandler.sync(this);
|
|
4079
|
-
_alt = getInterpreter().adaptivePredict(_input,71,_ctx);
|
|
4080
|
-
}
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
|
-
catch (RecognitionException re) {
|
|
4084
|
-
_localctx.exception = re;
|
|
4085
|
-
_errHandler.reportError(this, re);
|
|
4086
|
-
_errHandler.recover(this, re);
|
|
4087
|
-
}
|
|
4088
|
-
finally {
|
|
4089
|
-
unrollRecursionContexts(_parentctx);
|
|
4090
|
-
}
|
|
4091
|
-
return _localctx;
|
|
4092
|
-
}
|
|
4093
|
-
|
|
4094
|
-
public static class AtomContext extends ParserRuleContext {
|
|
4095
|
-
public AtomContext(ParserRuleContext parent, int invokingState) {
|
|
4096
|
-
super(parent, invokingState);
|
|
4097
|
-
}
|
|
4098
|
-
@Override public int getRuleIndex() { return RULE_atom; }
|
|
4099
|
-
|
|
4100
|
-
public AtomContext() { }
|
|
4101
|
-
public void copyFrom(AtomContext ctx) {
|
|
4102
|
-
super.copyFrom(ctx);
|
|
4103
|
-
}
|
|
4104
|
-
}
|
|
4105
|
-
public static class BooleanAtomContext extends AtomContext {
|
|
4106
|
-
public TerminalNode TRUE() { return getToken(sequenceParser.TRUE, 0); }
|
|
4107
|
-
public TerminalNode FALSE() { return getToken(sequenceParser.FALSE, 0); }
|
|
4108
|
-
public BooleanAtomContext(AtomContext ctx) { copyFrom(ctx); }
|
|
4109
|
-
@Override
|
|
4110
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4111
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterBooleanAtom(this);
|
|
4112
|
-
}
|
|
4113
|
-
@Override
|
|
4114
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4115
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitBooleanAtom(this);
|
|
4116
|
-
}
|
|
4117
|
-
@Override
|
|
4118
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4119
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitBooleanAtom(this);
|
|
4120
|
-
else return visitor.visitChildren(this);
|
|
4121
|
-
}
|
|
4122
|
-
}
|
|
4123
|
-
public static class IdAtomContext extends AtomContext {
|
|
4124
|
-
public TerminalNode ID() { return getToken(sequenceParser.ID, 0); }
|
|
4125
|
-
public IdAtomContext(AtomContext ctx) { copyFrom(ctx); }
|
|
4126
|
-
@Override
|
|
4127
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4128
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterIdAtom(this);
|
|
4129
|
-
}
|
|
4130
|
-
@Override
|
|
4131
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4132
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitIdAtom(this);
|
|
4133
|
-
}
|
|
4134
|
-
@Override
|
|
4135
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4136
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitIdAtom(this);
|
|
4137
|
-
else return visitor.visitChildren(this);
|
|
4138
|
-
}
|
|
4139
|
-
}
|
|
4140
|
-
public static class StringAtomContext extends AtomContext {
|
|
4141
|
-
public TerminalNode STRING() { return getToken(sequenceParser.STRING, 0); }
|
|
4142
|
-
public StringAtomContext(AtomContext ctx) { copyFrom(ctx); }
|
|
4143
|
-
@Override
|
|
4144
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4145
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterStringAtom(this);
|
|
4146
|
-
}
|
|
4147
|
-
@Override
|
|
4148
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4149
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitStringAtom(this);
|
|
4150
|
-
}
|
|
4151
|
-
@Override
|
|
4152
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4153
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitStringAtom(this);
|
|
4154
|
-
else return visitor.visitChildren(this);
|
|
4155
|
-
}
|
|
4156
|
-
}
|
|
4157
|
-
public static class NilAtomContext extends AtomContext {
|
|
4158
|
-
public TerminalNode NIL() { return getToken(sequenceParser.NIL, 0); }
|
|
4159
|
-
public NilAtomContext(AtomContext ctx) { copyFrom(ctx); }
|
|
4160
|
-
@Override
|
|
4161
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4162
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterNilAtom(this);
|
|
4163
|
-
}
|
|
4164
|
-
@Override
|
|
4165
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4166
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitNilAtom(this);
|
|
4167
|
-
}
|
|
4168
|
-
@Override
|
|
4169
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4170
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitNilAtom(this);
|
|
4171
|
-
else return visitor.visitChildren(this);
|
|
4172
|
-
}
|
|
4173
|
-
}
|
|
4174
|
-
public static class NumberAtomContext extends AtomContext {
|
|
4175
|
-
public TerminalNode INT() { return getToken(sequenceParser.INT, 0); }
|
|
4176
|
-
public TerminalNode FLOAT() { return getToken(sequenceParser.FLOAT, 0); }
|
|
4177
|
-
public NumberAtomContext(AtomContext ctx) { copyFrom(ctx); }
|
|
4178
|
-
@Override
|
|
4179
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4180
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterNumberAtom(this);
|
|
4181
|
-
}
|
|
4182
|
-
@Override
|
|
4183
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4184
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitNumberAtom(this);
|
|
4185
|
-
}
|
|
4186
|
-
@Override
|
|
4187
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4188
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitNumberAtom(this);
|
|
4189
|
-
else return visitor.visitChildren(this);
|
|
4190
|
-
}
|
|
4191
|
-
}
|
|
4192
|
-
|
|
4193
|
-
public final AtomContext atom() throws RecognitionException {
|
|
4194
|
-
AtomContext _localctx = new AtomContext(_ctx, getState());
|
|
4195
|
-
enterRule(_localctx, 96, RULE_atom);
|
|
4196
|
-
int _la;
|
|
4197
|
-
try {
|
|
4198
|
-
setState(519);
|
|
4199
|
-
_errHandler.sync(this);
|
|
4200
|
-
switch (_input.LA(1)) {
|
|
4201
|
-
case INT:
|
|
4202
|
-
case FLOAT:
|
|
4203
|
-
_localctx = new NumberAtomContext(_localctx);
|
|
4204
|
-
enterOuterAlt(_localctx, 1);
|
|
4205
|
-
{
|
|
4206
|
-
setState(514);
|
|
4207
|
-
_la = _input.LA(1);
|
|
4208
|
-
if ( !(_la==INT || _la==FLOAT) ) {
|
|
4209
|
-
_errHandler.recoverInline(this);
|
|
4210
|
-
}
|
|
4211
|
-
else {
|
|
4212
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
4213
|
-
_errHandler.reportMatch(this);
|
|
4214
|
-
consume();
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4217
|
-
break;
|
|
4218
|
-
case TRUE:
|
|
4219
|
-
case FALSE:
|
|
4220
|
-
_localctx = new BooleanAtomContext(_localctx);
|
|
4221
|
-
enterOuterAlt(_localctx, 2);
|
|
4222
|
-
{
|
|
4223
|
-
setState(515);
|
|
4224
|
-
_la = _input.LA(1);
|
|
4225
|
-
if ( !(_la==TRUE || _la==FALSE) ) {
|
|
4226
|
-
_errHandler.recoverInline(this);
|
|
4227
|
-
}
|
|
4228
|
-
else {
|
|
4229
|
-
if ( _input.LA(1)==Token.EOF ) matchedEOF = true;
|
|
4230
|
-
_errHandler.reportMatch(this);
|
|
4231
|
-
consume();
|
|
4232
|
-
}
|
|
4233
|
-
}
|
|
4234
|
-
break;
|
|
4235
|
-
case ID:
|
|
4236
|
-
_localctx = new IdAtomContext(_localctx);
|
|
4237
|
-
enterOuterAlt(_localctx, 3);
|
|
4238
|
-
{
|
|
4239
|
-
setState(516);
|
|
4240
|
-
match(ID);
|
|
4241
|
-
}
|
|
4242
|
-
break;
|
|
4243
|
-
case STRING:
|
|
4244
|
-
_localctx = new StringAtomContext(_localctx);
|
|
4245
|
-
enterOuterAlt(_localctx, 4);
|
|
4246
|
-
{
|
|
4247
|
-
setState(517);
|
|
4248
|
-
match(STRING);
|
|
4249
|
-
}
|
|
4250
|
-
break;
|
|
4251
|
-
case NIL:
|
|
4252
|
-
_localctx = new NilAtomContext(_localctx);
|
|
4253
|
-
enterOuterAlt(_localctx, 5);
|
|
4254
|
-
{
|
|
4255
|
-
setState(518);
|
|
4256
|
-
match(NIL);
|
|
4257
|
-
}
|
|
4258
|
-
break;
|
|
4259
|
-
default:
|
|
4260
|
-
throw new NoViableAltException(this);
|
|
4261
|
-
}
|
|
4262
|
-
}
|
|
4263
|
-
catch (RecognitionException re) {
|
|
4264
|
-
_localctx.exception = re;
|
|
4265
|
-
_errHandler.reportError(this, re);
|
|
4266
|
-
_errHandler.recover(this, re);
|
|
4267
|
-
}
|
|
4268
|
-
finally {
|
|
4269
|
-
exitRule();
|
|
4270
|
-
}
|
|
4271
|
-
return _localctx;
|
|
4272
|
-
}
|
|
4273
|
-
|
|
4274
|
-
public static class ParExprContext extends ParserRuleContext {
|
|
4275
|
-
public TerminalNode OPAR() { return getToken(sequenceParser.OPAR, 0); }
|
|
4276
|
-
public ConditionContext condition() {
|
|
4277
|
-
return getRuleContext(ConditionContext.class,0);
|
|
4278
|
-
}
|
|
4279
|
-
public TerminalNode CPAR() { return getToken(sequenceParser.CPAR, 0); }
|
|
4280
|
-
public ParExprContext(ParserRuleContext parent, int invokingState) {
|
|
4281
|
-
super(parent, invokingState);
|
|
4282
|
-
}
|
|
4283
|
-
@Override public int getRuleIndex() { return RULE_parExpr; }
|
|
4284
|
-
@Override
|
|
4285
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4286
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterParExpr(this);
|
|
4287
|
-
}
|
|
4288
|
-
@Override
|
|
4289
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4290
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitParExpr(this);
|
|
4291
|
-
}
|
|
4292
|
-
@Override
|
|
4293
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4294
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitParExpr(this);
|
|
4295
|
-
else return visitor.visitChildren(this);
|
|
4296
|
-
}
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
|
-
public final ParExprContext parExpr() throws RecognitionException {
|
|
4300
|
-
ParExprContext _localctx = new ParExprContext(_ctx, getState());
|
|
4301
|
-
enterRule(_localctx, 98, RULE_parExpr);
|
|
4302
|
-
try {
|
|
4303
|
-
setState(530);
|
|
4304
|
-
_errHandler.sync(this);
|
|
4305
|
-
switch ( getInterpreter().adaptivePredict(_input,73,_ctx) ) {
|
|
4306
|
-
case 1:
|
|
4307
|
-
enterOuterAlt(_localctx, 1);
|
|
4308
|
-
{
|
|
4309
|
-
setState(521);
|
|
4310
|
-
match(OPAR);
|
|
4311
|
-
setState(522);
|
|
4312
|
-
condition();
|
|
4313
|
-
setState(523);
|
|
4314
|
-
match(CPAR);
|
|
4315
|
-
}
|
|
4316
|
-
break;
|
|
4317
|
-
case 2:
|
|
4318
|
-
enterOuterAlt(_localctx, 2);
|
|
4319
|
-
{
|
|
4320
|
-
setState(525);
|
|
4321
|
-
match(OPAR);
|
|
4322
|
-
setState(526);
|
|
4323
|
-
condition();
|
|
4324
|
-
}
|
|
4325
|
-
break;
|
|
4326
|
-
case 3:
|
|
4327
|
-
enterOuterAlt(_localctx, 3);
|
|
4328
|
-
{
|
|
4329
|
-
setState(527);
|
|
4330
|
-
match(OPAR);
|
|
4331
|
-
setState(528);
|
|
4332
|
-
match(CPAR);
|
|
4333
|
-
}
|
|
4334
|
-
break;
|
|
4335
|
-
case 4:
|
|
4336
|
-
enterOuterAlt(_localctx, 4);
|
|
4337
|
-
{
|
|
4338
|
-
setState(529);
|
|
4339
|
-
match(OPAR);
|
|
4340
|
-
}
|
|
4341
|
-
break;
|
|
4342
|
-
}
|
|
4343
|
-
}
|
|
4344
|
-
catch (RecognitionException re) {
|
|
4345
|
-
_localctx.exception = re;
|
|
4346
|
-
_errHandler.reportError(this, re);
|
|
4347
|
-
_errHandler.recover(this, re);
|
|
4348
|
-
}
|
|
4349
|
-
finally {
|
|
4350
|
-
exitRule();
|
|
4351
|
-
}
|
|
4352
|
-
return _localctx;
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
public static class ConditionContext extends ParserRuleContext {
|
|
4356
|
-
public AtomContext atom() {
|
|
4357
|
-
return getRuleContext(AtomContext.class,0);
|
|
4358
|
-
}
|
|
4359
|
-
public ExprContext expr() {
|
|
4360
|
-
return getRuleContext(ExprContext.class,0);
|
|
4361
|
-
}
|
|
4362
|
-
public ConditionContext(ParserRuleContext parent, int invokingState) {
|
|
4363
|
-
super(parent, invokingState);
|
|
4364
|
-
}
|
|
4365
|
-
@Override public int getRuleIndex() { return RULE_condition; }
|
|
4366
|
-
@Override
|
|
4367
|
-
public void enterRule(ParseTreeListener listener) {
|
|
4368
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).enterCondition(this);
|
|
4369
|
-
}
|
|
4370
|
-
@Override
|
|
4371
|
-
public void exitRule(ParseTreeListener listener) {
|
|
4372
|
-
if ( listener instanceof sequenceParserListener ) ((sequenceParserListener)listener).exitCondition(this);
|
|
4373
|
-
}
|
|
4374
|
-
@Override
|
|
4375
|
-
public <T> T accept(ParseTreeVisitor<? extends T> visitor) {
|
|
4376
|
-
if ( visitor instanceof sequenceParserVisitor ) return ((sequenceParserVisitor<? extends T>)visitor).visitCondition(this);
|
|
4377
|
-
else return visitor.visitChildren(this);
|
|
4378
|
-
}
|
|
4379
|
-
}
|
|
4380
|
-
|
|
4381
|
-
public final ConditionContext condition() throws RecognitionException {
|
|
4382
|
-
ConditionContext _localctx = new ConditionContext(_ctx, getState());
|
|
4383
|
-
enterRule(_localctx, 100, RULE_condition);
|
|
4384
|
-
try {
|
|
4385
|
-
setState(534);
|
|
4386
|
-
_errHandler.sync(this);
|
|
4387
|
-
switch ( getInterpreter().adaptivePredict(_input,74,_ctx) ) {
|
|
4388
|
-
case 1:
|
|
4389
|
-
enterOuterAlt(_localctx, 1);
|
|
4390
|
-
{
|
|
4391
|
-
setState(532);
|
|
4392
|
-
atom();
|
|
4393
|
-
}
|
|
4394
|
-
break;
|
|
4395
|
-
case 2:
|
|
4396
|
-
enterOuterAlt(_localctx, 2);
|
|
4397
|
-
{
|
|
4398
|
-
setState(533);
|
|
4399
|
-
expr(0);
|
|
4400
|
-
}
|
|
4401
|
-
break;
|
|
4402
|
-
}
|
|
4403
|
-
}
|
|
4404
|
-
catch (RecognitionException re) {
|
|
4405
|
-
_localctx.exception = re;
|
|
4406
|
-
_errHandler.reportError(this, re);
|
|
4407
|
-
_errHandler.recover(this, re);
|
|
4408
|
-
}
|
|
4409
|
-
finally {
|
|
4410
|
-
exitRule();
|
|
4411
|
-
}
|
|
4412
|
-
return _localctx;
|
|
4413
|
-
}
|
|
4414
|
-
|
|
4415
|
-
public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) {
|
|
4416
|
-
switch (ruleIndex) {
|
|
4417
|
-
case 47:
|
|
4418
|
-
return expr_sempred((ExprContext)_localctx, predIndex);
|
|
4419
|
-
}
|
|
4420
|
-
return true;
|
|
4421
|
-
}
|
|
4422
|
-
private boolean expr_sempred(ExprContext _localctx, int predIndex) {
|
|
4423
|
-
switch (predIndex) {
|
|
4424
|
-
case 0:
|
|
4425
|
-
return precpred(_ctx, 10);
|
|
4426
|
-
case 1:
|
|
4427
|
-
return precpred(_ctx, 9);
|
|
4428
|
-
case 2:
|
|
4429
|
-
return precpred(_ctx, 8);
|
|
4430
|
-
case 3:
|
|
4431
|
-
return precpred(_ctx, 7);
|
|
4432
|
-
case 4:
|
|
4433
|
-
return precpred(_ctx, 6);
|
|
4434
|
-
case 5:
|
|
4435
|
-
return precpred(_ctx, 5);
|
|
4436
|
-
case 6:
|
|
4437
|
-
return precpred(_ctx, 4);
|
|
4438
|
-
}
|
|
4439
|
-
return true;
|
|
4440
|
-
}
|
|
4441
|
-
|
|
4442
|
-
public static final String _serializedATN =
|
|
4443
|
-
"\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3=\u021b\4\2\t\2\4"+
|
|
4444
|
-
"\3\t\3\4\4\t\4\4\5\t\5\4\6\t\6\4\7\t\7\4\b\t\b\4\t\t\t\4\n\t\n\4\13\t"+
|
|
4445
|
-
"\13\4\f\t\f\4\r\t\r\4\16\t\16\4\17\t\17\4\20\t\20\4\21\t\21\4\22\t\22"+
|
|
4446
|
-
"\4\23\t\23\4\24\t\24\4\25\t\25\4\26\t\26\4\27\t\27\4\30\t\30\4\31\t\31"+
|
|
4447
|
-
"\4\32\t\32\4\33\t\33\4\34\t\34\4\35\t\35\4\36\t\36\4\37\t\37\4 \t \4!"+
|
|
4448
|
-
"\t!\4\"\t\"\4#\t#\4$\t$\4%\t%\4&\t&\4\'\t\'\4(\t(\4)\t)\4*\t*\4+\t+\4"+
|
|
4449
|
-
",\t,\4-\t-\4.\t.\4/\t/\4\60\t\60\4\61\t\61\4\62\t\62\4\63\t\63\4\64\t"+
|
|
4450
|
-
"\64\3\2\5\2j\n\2\3\2\3\2\5\2n\n\2\3\2\3\2\3\2\3\2\5\2t\n\2\3\2\5\2w\n"+
|
|
4451
|
-
"\2\3\2\3\2\3\2\5\2|\n\2\3\3\3\3\3\3\5\3\u0081\n\3\3\4\3\4\6\4\u0085\n"+
|
|
4452
|
-
"\4\r\4\16\4\u0086\3\4\3\4\7\4\u008b\n\4\f\4\16\4\u008e\13\4\3\4\5\4\u0091"+
|
|
4453
|
-
"\n\4\3\5\3\5\5\5\u0095\n\5\3\5\3\5\7\5\u0099\n\5\f\5\16\5\u009c\13\5\3"+
|
|
4454
|
-
"\5\3\5\3\5\5\5\u00a1\n\5\3\5\3\5\3\5\5\5\u00a6\n\5\5\5\u00a8\n\5\3\6\3"+
|
|
4455
|
-
"\6\3\6\5\6\u00ad\n\6\3\6\5\6\u00b0\n\6\3\6\5\6\u00b3\n\6\3\7\3\7\3\b\5"+
|
|
4456
|
-
"\b\u00b8\n\b\3\b\5\b\u00bb\n\b\3\b\3\b\5\b\u00bf\n\b\3\b\5\b\u00c2\n\b"+
|
|
4457
|
-
"\3\b\3\b\5\b\u00c6\n\b\3\t\3\t\3\t\3\t\3\t\3\t\3\t\5\t\u00cf\n\t\3\t\3"+
|
|
4458
|
-
"\t\5\t\u00d3\n\t\5\t\u00d5\n\t\3\n\3\n\3\n\5\n\u00da\n\n\3\13\3\13\3\f"+
|
|
4459
|
-
"\3\f\3\r\3\r\3\16\6\16\u00e3\n\16\r\16\16\16\u00e4\3\17\3\17\5\17\u00e9"+
|
|
4460
|
-
"\n\17\3\17\5\17\u00ec\n\17\3\17\3\17\3\17\5\17\u00f1\n\17\5\17\u00f3\n"+
|
|
4461
|
-
"\17\3\20\3\20\7\20\u00f7\n\20\f\20\16\20\u00fa\13\20\3\20\3\20\3\20\7"+
|
|
4462
|
-
"\20\u00ff\n\20\f\20\16\20\u0102\13\20\3\21\3\21\3\21\3\21\3\21\3\21\3"+
|
|
4463
|
-
"\21\3\21\5\21\u010c\n\21\3\21\3\21\3\21\3\21\3\21\3\21\5\21\u0114\n\21"+
|
|
4464
|
-
"\3\22\3\22\3\22\5\22\u0119\n\22\3\23\3\23\3\23\5\23\u011e\n\23\3\24\3"+
|
|
4465
|
-
"\24\3\24\5\24\u0123\n\24\3\25\5\25\u0126\n\25\3\25\3\25\3\25\3\25\5\25"+
|
|
4466
|
-
"\u012c\n\25\3\25\5\25\u012f\n\25\3\26\3\26\3\26\5\26\u0134\n\26\3\27\5"+
|
|
4467
|
-
"\27\u0137\n\27\3\27\3\27\3\27\5\27\u013c\n\27\3\27\3\27\3\27\5\27\u0141"+
|
|
4468
|
-
"\n\27\3\27\3\27\3\27\3\27\3\27\5\27\u0148\n\27\3\27\3\27\3\27\5\27\u014d"+
|
|
4469
|
-
"\n\27\3\30\3\30\3\30\7\30\u0152\n\30\f\30\16\30\u0155\13\30\3\31\3\31"+
|
|
4470
|
-
"\3\32\3\32\3\33\3\33\5\33\u015d\n\33\3\34\3\34\5\34\u0161\n\34\3\34\3"+
|
|
4471
|
-
"\34\3\35\5\35\u0166\n\35\3\35\3\35\3\35\3\36\3\36\3\36\5\36\u016e\n\36"+
|
|
4472
|
-
"\3\36\3\36\3\36\3\36\3\36\3\36\3\36\5\36\u0177\n\36\5\36\u0179\n\36\3"+
|
|
4473
|
-
"\37\3\37\3 \3 \3!\3!\3\"\3\"\3\"\3\"\7\"\u0185\n\"\f\"\16\"\u0188\13\""+
|
|
4474
|
-
"\3\"\5\"\u018b\n\"\3#\3#\3$\3$\3$\7$\u0192\n$\f$\16$\u0195\13$\3$\5$\u0198"+
|
|
4475
|
-
"\n$\3%\3%\5%\u019c\n%\3&\3&\3&\3\'\3\'\7\'\u01a3\n\'\f\'\16\'\u01a6\13"+
|
|
4476
|
-
"\'\3\'\5\'\u01a9\n\'\3(\3(\3(\3)\3)\5)\u01b0\n)\3)\3)\3*\3*\3*\3+\3+\7"+
|
|
4477
|
-
"+\u01b9\n+\f+\16+\u01bc\13+\3+\5+\u01bf\n+\3,\3,\3,\3,\3-\3-\3-\3-\3-"+
|
|
4478
|
-
"\3.\3.\3.\3/\3/\5/\u01cf\n/\3/\3/\3\60\3\60\3\60\3\60\3\60\3\60\3\60\5"+
|
|
4479
|
-
"\60\u01da\n\60\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\5\61\u01e4\n\61"+
|
|
4480
|
-
"\3\61\3\61\3\61\5\61\u01e9\n\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61"+
|
|
4481
|
-
"\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\3\61\7\61"+
|
|
4482
|
-
"\u0200\n\61\f\61\16\61\u0203\13\61\3\62\3\62\3\62\3\62\3\62\5\62\u020a"+
|
|
4483
|
-
"\n\62\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\3\63\5\63\u0215\n\63\3\64"+
|
|
4484
|
-
"\3\64\5\64\u0219\n\64\3\64\2\3`\65\2\4\6\b\n\f\16\20\22\24\26\30\32\34"+
|
|
4485
|
-
"\36 \"$&(*,.\60\62\64\668:<>@BDFHJLNPRTVXZ\\^`bdf\2\r\4\2\61\61\64\64"+
|
|
4486
|
-
"\4\2\5\5\r\r\4\2\6\6\f\f\4\2\n\n\31\31\4\2\7\7\21\21\3\2\22\24\3\2\20"+
|
|
4487
|
-
"\21\3\2\f\17\3\2\n\13\3\2\62\63\3\2\36\37\2\u0252\2{\3\2\2\2\4}\3\2\2"+
|
|
4488
|
-
"\2\6\u0090\3\2\2\2\b\u00a7\3\2\2\2\n\u00b2\3\2\2\2\f\u00b4\3\2\2\2\16"+
|
|
4489
|
-
"\u00c5\3\2\2\2\20\u00d4\3\2\2\2\22\u00d9\3\2\2\2\24\u00db\3\2\2\2\26\u00dd"+
|
|
4490
|
-
"\3\2\2\2\30\u00df\3\2\2\2\32\u00e2\3\2\2\2\34\u00f2\3\2\2\2\36\u00f4\3"+
|
|
4491
|
-
"\2\2\2 \u0113\3\2\2\2\"\u0118\3\2\2\2$\u011d\3\2\2\2&\u011f\3\2\2\2(\u0125"+
|
|
4492
|
-
"\3\2\2\2*\u0130\3\2\2\2,\u014c\3\2\2\2.\u014e\3\2\2\2\60\u0156\3\2\2\2"+
|
|
4493
|
-
"\62\u0158\3\2\2\2\64\u015a\3\2\2\2\66\u015e\3\2\2\28\u0165\3\2\2\2:\u0178"+
|
|
4494
|
-
"\3\2\2\2<\u017a\3\2\2\2>\u017c\3\2\2\2@\u017e\3\2\2\2B\u018a\3\2\2\2D"+
|
|
4495
|
-
"\u018c\3\2\2\2F\u018e\3\2\2\2H\u019b\3\2\2\2J\u019d\3\2\2\2L\u01a0\3\2"+
|
|
4496
|
-
"\2\2N\u01aa\3\2\2\2P\u01ad\3\2\2\2R\u01b3\3\2\2\2T\u01b6\3\2\2\2V\u01c0"+
|
|
4497
|
-
"\3\2\2\2X\u01c4\3\2\2\2Z\u01c9\3\2\2\2\\\u01cc\3\2\2\2^\u01d9\3\2\2\2"+
|
|
4498
|
-
"`\u01e8\3\2\2\2b\u0209\3\2\2\2d\u0214\3\2\2\2f\u0218\3\2\2\2hj\5\4\3\2"+
|
|
4499
|
-
"ih\3\2\2\2ij\3\2\2\2jk\3\2\2\2k|\7\2\2\3ln\5\4\3\2ml\3\2\2\2mn\3\2\2\2"+
|
|
4500
|
-
"no\3\2\2\2op\5\6\4\2pq\7\2\2\3q|\3\2\2\2rt\5\4\3\2sr\3\2\2\2st\3\2\2\2"+
|
|
4501
|
-
"tv\3\2\2\2uw\5\6\4\2vu\3\2\2\2vw\3\2\2\2wx\3\2\2\2xy\5\32\16\2yz\7\2\2"+
|
|
4502
|
-
"\3z|\3\2\2\2{i\3\2\2\2{m\3\2\2\2{s\3\2\2\2|\3\3\2\2\2}~\7\3\2\2~\u0080"+
|
|
4503
|
-
"\7<\2\2\177\u0081\7=\2\2\u0080\177\3\2\2\2\u0080\u0081\3\2\2\2\u0081\5"+
|
|
4504
|
-
"\3\2\2\2\u0082\u0085\5\b\5\2\u0083\u0085\5\16\b\2\u0084\u0082\3\2\2\2"+
|
|
4505
|
-
"\u0084\u0083\3\2\2\2\u0085\u0086\3\2\2\2\u0086\u0084\3\2\2\2\u0086\u0087"+
|
|
4506
|
-
"\3\2\2\2\u0087\u0091\3\2\2\2\u0088\u008b\5\b\5\2\u0089\u008b\5\16\b\2"+
|
|
4507
|
-
"\u008a\u0088\3\2\2\2\u008a\u0089\3\2\2\2\u008b\u008e\3\2\2\2\u008c\u008a"+
|
|
4508
|
-
"\3\2\2\2\u008c\u008d\3\2\2\2\u008d\u008f\3\2\2\2\u008e\u008c\3\2\2\2\u008f"+
|
|
4509
|
-
"\u0091\5\n\6\2\u0090\u0084\3\2\2\2\u0090\u008c\3\2\2\2\u0091\7\3\2\2\2"+
|
|
4510
|
-
"\u0092\u0094\7\'\2\2\u0093\u0095\5\26\f\2\u0094\u0093\3\2\2\2\u0094\u0095"+
|
|
4511
|
-
"\3\2\2\2\u0095\u0096\3\2\2\2\u0096\u009a\7\34\2\2\u0097\u0099\5\16\b\2"+
|
|
4512
|
-
"\u0098\u0097\3\2\2\2\u0099\u009c\3\2\2\2\u009a\u0098\3\2\2\2\u009a\u009b"+
|
|
4513
|
-
"\3\2\2\2\u009b\u009d\3\2\2\2\u009c\u009a\3\2\2\2\u009d\u00a8\7\35\2\2"+
|
|
4514
|
-
"\u009e\u00a0\7\'\2\2\u009f\u00a1\5\26\f\2\u00a0\u009f\3\2\2\2\u00a0\u00a1"+
|
|
4515
|
-
"\3\2\2\2\u00a1\u00a2\3\2\2\2\u00a2\u00a8\7\34\2\2\u00a3\u00a5\7\'\2\2"+
|
|
4516
|
-
"\u00a4\u00a6\5\26\f\2\u00a5\u00a4\3\2\2\2\u00a5\u00a6\3\2\2\2\u00a6\u00a8"+
|
|
4517
|
-
"\3\2\2\2\u00a7\u0092\3\2\2\2\u00a7\u009e\3\2\2\2\u00a7\u00a3\3\2\2\2\u00a8"+
|
|
4518
|
-
"\t\3\2\2\2\u00a9\u00af\7-\2\2\u00aa\u00ac\7\32\2\2\u00ab\u00ad\5\f\7\2"+
|
|
4519
|
-
"\u00ac\u00ab\3\2\2\2\u00ac\u00ad\3\2\2\2\u00ad\u00ae\3\2\2\2\u00ae\u00b0"+
|
|
4520
|
-
"\7\33\2\2\u00af\u00aa\3\2\2\2\u00af\u00b0\3\2\2\2\u00b0\u00b3\3\2\2\2"+
|
|
4521
|
-
"\u00b1\u00b3\7/\2\2\u00b2\u00a9\3\2\2\2\u00b2\u00b1\3\2\2\2\u00b3\13\3"+
|
|
4522
|
-
"\2\2\2\u00b4\u00b5\t\2\2\2\u00b5\r\3\2\2\2\u00b6\u00b8\5\24\13\2\u00b7"+
|
|
4523
|
-
"\u00b6\3\2\2\2\u00b7\u00b8\3\2\2\2\u00b8\u00ba\3\2\2\2\u00b9\u00bb\5\20"+
|
|
4524
|
-
"\t\2\u00ba\u00b9\3\2\2\2\u00ba\u00bb\3\2\2\2\u00bb\u00bc\3\2\2\2\u00bc"+
|
|
4525
|
-
"\u00be\5\26\f\2\u00bd\u00bf\5\30\r\2\u00be\u00bd\3\2\2\2\u00be\u00bf\3"+
|
|
4526
|
-
"\2\2\2\u00bf\u00c1\3\2\2\2\u00c0\u00c2\5\22\n\2\u00c1\u00c0\3\2\2\2\u00c1"+
|
|
4527
|
-
"\u00c2\3\2\2\2\u00c2\u00c6\3\2\2\2\u00c3\u00c6\5\20\t\2\u00c4\u00c6\5"+
|
|
4528
|
-
"\24\13\2\u00c5\u00b7\3\2\2\2\u00c5\u00c3\3\2\2\2\u00c5\u00c4\3\2\2\2\u00c6"+
|
|
4529
|
-
"\17\3\2\2\2\u00c7\u00c8\7\5\2\2\u00c8\u00c9\5\26\f\2\u00c9\u00ca\7\6\2"+
|
|
4530
|
-
"\2\u00ca\u00d5\3\2\2\2\u00cb\u00cc\7\5\2\2\u00cc\u00ce\5\26\f\2\u00cd"+
|
|
4531
|
-
"\u00cf\7\f\2\2\u00ce\u00cd\3\2\2\2\u00ce\u00cf\3\2\2\2\u00cf\u00d5\3\2"+
|
|
4532
|
-
"\2\2\u00d0\u00d2\t\3\2\2\u00d1\u00d3\t\4\2\2\u00d2\u00d1\3\2\2\2\u00d2"+
|
|
4533
|
-
"\u00d3\3\2\2\2\u00d3\u00d5\3\2\2\2\u00d4\u00c7\3\2\2\2\u00d4\u00cb\3\2"+
|
|
4534
|
-
"\2\2\u00d4\u00d0\3\2\2\2\u00d5\21\3\2\2\2\u00d6\u00d7\7)\2\2\u00d7\u00da"+
|
|
4535
|
-
"\5\26\f\2\u00d8\u00da\7)\2\2\u00d9\u00d6\3\2\2\2\u00d9\u00d8\3\2\2\2\u00da"+
|
|
4536
|
-
"\23\3\2\2\2\u00db\u00dc\7/\2\2\u00dc\25\3\2\2\2\u00dd\u00de\t\2\2\2\u00de"+
|
|
4537
|
-
"\27\3\2\2\2\u00df\u00e0\7\62\2\2\u00e0\31\3\2\2\2\u00e1\u00e3\5 \21\2"+
|
|
4538
|
-
"\u00e2\u00e1\3\2\2\2\u00e3\u00e4\3\2\2\2\u00e4\u00e2\3\2\2\2\u00e4\u00e5"+
|
|
4539
|
-
"\3\2\2\2\u00e5\33\3\2\2\2\u00e6\u00e8\7$\2\2\u00e7\u00e9\5`\61\2\u00e8"+
|
|
4540
|
-
"\u00e7\3\2\2\2\u00e8\u00e9\3\2\2\2\u00e9\u00eb\3\2\2\2\u00ea\u00ec\7\27"+
|
|
4541
|
-
"\2\2\u00eb\u00ea\3\2\2\2\u00eb\u00ec\3\2\2\2\u00ec\u00f3\3\2\2\2\u00ed"+
|
|
4542
|
-
"\u00ee\7.\2\2\u00ee\u00f0\5:\36\2\u00ef\u00f1\7:\2\2\u00f0\u00ef\3\2\2"+
|
|
4543
|
-
"\2\u00f0\u00f1\3\2\2\2\u00f1\u00f3\3\2\2\2\u00f2\u00e6\3\2\2\2\u00f2\u00ed"+
|
|
4544
|
-
"\3\2\2\2\u00f3\35\3\2\2\2\u00f4\u00f8\7\n\2\2\u00f5\u00f7\t\5\2\2\u00f6"+
|
|
4545
|
-
"\u00f5\3\2\2\2\u00f7\u00fa\3\2\2\2\u00f8\u00f6\3\2\2\2\u00f8\u00f9\3\2"+
|
|
4546
|
-
"\2\2\u00f9\u00fb\3\2\2\2\u00fa\u00f8\3\2\2\2\u00fb\u00fc\5\26\f\2\u00fc"+
|
|
4547
|
-
"\u0100\7\n\2\2\u00fd\u00ff\t\5\2\2\u00fe\u00fd\3\2\2\2\u00ff\u0102\3\2"+
|
|
4548
|
-
"\2\2\u0100\u00fe\3\2\2\2\u0100\u0101\3\2\2\2\u0101\37\3\2\2\2\u0102\u0100"+
|
|
4549
|
-
"\3\2\2\2\u0103\u0114\5T+\2\u0104\u0114\5\"\22\2\u0105\u0114\5$\23\2\u0106"+
|
|
4550
|
-
"\u0114\5^\60\2\u0107\u0114\5&\24\2\u0108\u0114\5*\26\2\u0109\u010b\5:"+
|
|
4551
|
-
"\36\2\u010a\u010c\7:\2\2\u010b\u010a\3\2\2\2\u010b\u010c\3\2\2\2\u010c"+
|
|
4552
|
-
"\u0114\3\2\2\2\u010d\u0114\5\34\17\2\u010e\u0114\5\36\20\2\u010f\u0114"+
|
|
4553
|
-
"\5L\'\2\u0110\u0114\7\67\2\2\u0111\u0112\78\2\2\u0112\u0114\b\21\1\2\u0113"+
|
|
4554
|
-
"\u0103\3\2\2\2\u0113\u0104\3\2\2\2\u0113\u0105\3\2\2\2\u0113\u0106\3\2"+
|
|
4555
|
-
"\2\2\u0113\u0107\3\2\2\2\u0113\u0108\3\2\2\2\u0113\u0109\3\2\2\2\u0113"+
|
|
4556
|
-
"\u010d\3\2\2\2\u0113\u010e\3\2\2\2\u0113\u010f\3\2\2\2\u0113\u0110\3\2"+
|
|
4557
|
-
"\2\2\u0113\u0111\3\2\2\2\u0114!\3\2\2\2\u0115\u0116\7&\2\2\u0116\u0119"+
|
|
4558
|
-
"\5\\/\2\u0117\u0119\7&\2\2\u0118\u0115\3\2\2\2\u0118\u0117\3\2\2\2\u0119"+
|
|
4559
|
-
"#\3\2\2\2\u011a\u011b\7(\2\2\u011b\u011e\5\\/\2\u011c\u011e\7(\2\2\u011d"+
|
|
4560
|
-
"\u011a\3\2\2\2\u011d\u011c\3\2\2\2\u011e%\3\2\2\2\u011f\u0122\5(\25\2"+
|
|
4561
|
-
"\u0120\u0123\7\27\2\2\u0121\u0123\5\\/\2\u0122\u0120\3\2\2\2\u0122\u0121"+
|
|
4562
|
-
"\3\2\2\2\u0122\u0123\3\2\2\2\u0123\'\3\2\2\2\u0124\u0126\58\35\2\u0125"+
|
|
4563
|
-
"\u0124\3\2\2\2\u0125\u0126\3\2\2\2\u0126\u0127\3\2\2\2\u0127\u0128\7%"+
|
|
4564
|
-
"\2\2\u0128\u012e\5> \2\u0129\u012b\7\32\2\2\u012a\u012c\5F$\2\u012b\u012a"+
|
|
4565
|
-
"\3\2\2\2\u012b\u012c\3\2\2\2\u012c\u012d\3\2\2\2\u012d\u012f\7\33\2\2"+
|
|
4566
|
-
"\u012e\u0129\3\2\2\2\u012e\u012f\3\2\2\2\u012f)\3\2\2\2\u0130\u0133\5"+
|
|
4567
|
-
",\27\2\u0131\u0134\7\27\2\2\u0132\u0134\5\\/\2\u0133\u0131\3\2\2\2\u0133"+
|
|
4568
|
-
"\u0132\3\2\2\2\u0133\u0134\3\2\2\2\u0134+\3\2\2\2\u0135\u0137\58\35\2"+
|
|
4569
|
-
"\u0136\u0135\3\2\2\2\u0136\u0137\3\2\2\2\u0137\u0140\3\2\2\2\u0138\u0139"+
|
|
4570
|
-
"\5\60\31\2\u0139\u013a\7\7\2\2\u013a\u013c\3\2\2\2\u013b\u0138\3\2\2\2"+
|
|
4571
|
-
"\u013b\u013c\3\2\2\2\u013c\u013d\3\2\2\2\u013d\u013e\5\62\32\2\u013e\u013f"+
|
|
4572
|
-
"\7\60\2\2\u013f\u0141\3\2\2\2\u0140\u013b\3\2\2\2\u0140\u0141\3\2\2\2"+
|
|
4573
|
-
"\u0141\u0142\3\2\2\2\u0142\u014d\5.\30\2\u0143\u014d\58\35\2\u0144\u0145"+
|
|
4574
|
-
"\5\60\31\2\u0145\u0146\7\7\2\2\u0146\u0148\3\2\2\2\u0147\u0144\3\2\2\2"+
|
|
4575
|
-
"\u0147\u0148\3\2\2\2\u0148\u0149\3\2\2\2\u0149\u014a\5\62\32\2\u014a\u014b"+
|
|
4576
|
-
"\7\60\2\2\u014b\u014d\3\2\2\2\u014c\u0136\3\2\2\2\u014c\u0143\3\2\2\2"+
|
|
4577
|
-
"\u014c\u0147\3\2\2\2\u014d-\3\2\2\2\u014e\u0153\5\64\33\2\u014f\u0150"+
|
|
4578
|
-
"\7\60\2\2\u0150\u0152\5\64\33\2\u0151\u014f\3\2\2\2\u0152\u0155\3\2\2"+
|
|
4579
|
-
"\2\u0153\u0151\3\2\2\2\u0153\u0154\3\2\2\2\u0154/\3\2\2\2\u0155\u0153"+
|
|
4580
|
-
"\3\2\2\2\u0156\u0157\t\2\2\2\u0157\61\3\2\2\2\u0158\u0159\t\2\2\2\u0159"+
|
|
4581
|
-
"\63\3\2\2\2\u015a\u015c\5D#\2\u015b\u015d\5\66\34\2\u015c\u015b\3\2\2"+
|
|
4582
|
-
"\2\u015c\u015d\3\2\2\2\u015d\65\3\2\2\2\u015e\u0160\7\32\2\2\u015f\u0161"+
|
|
4583
|
-
"\5F$\2\u0160\u015f\3\2\2\2\u0160\u0161\3\2\2\2\u0161\u0162\3\2\2\2\u0162"+
|
|
4584
|
-
"\u0163\7\33\2\2\u0163\67\3\2\2\2\u0164\u0166\5@!\2\u0165\u0164\3\2\2\2"+
|
|
4585
|
-
"\u0165\u0166\3\2\2\2\u0166\u0167\3\2\2\2\u0167\u0168\5B\"\2\u0168\u0169"+
|
|
4586
|
-
"\7\31\2\2\u01699\3\2\2\2\u016a\u016b\5\60\31\2\u016b\u016c\7\7\2\2\u016c"+
|
|
4587
|
-
"\u016e\3\2\2\2\u016d\u016a\3\2\2\2\u016d\u016e\3\2\2\2\u016e\u016f\3\2"+
|
|
4588
|
-
"\2\2\u016f\u0170\5\62\32\2\u0170\u0171\7\4\2\2\u0171\u0172\5<\37\2\u0172"+
|
|
4589
|
-
"\u0179\3\2\2\2\u0173\u0174\5\60\31\2\u0174\u0176\t\6\2\2\u0175\u0177\5"+
|
|
4590
|
-
"\62\32\2\u0176\u0175\3\2\2\2\u0176\u0177\3\2\2\2\u0177\u0179\3\2\2\2\u0178"+
|
|
4591
|
-
"\u016d\3\2\2\2\u0178\u0173\3\2\2\2\u0179;\3\2\2\2\u017a\u017b\79\2\2\u017b"+
|
|
4592
|
-
"=\3\2\2\2\u017c\u017d\t\2\2\2\u017d?\3\2\2\2\u017e\u017f\t\2\2\2\u017f"+
|
|
4593
|
-
"A\3\2\2\2\u0180\u018b\5b\62\2\u0181\u0186\7\61\2\2\u0182\u0183\7\30\2"+
|
|
4594
|
-
"\2\u0183\u0185\7\61\2\2\u0184\u0182\3\2\2\2\u0185\u0188\3\2\2\2\u0186"+
|
|
4595
|
-
"\u0184\3\2\2\2\u0186\u0187\3\2\2\2\u0187\u018b\3\2\2\2\u0188\u0186\3\2"+
|
|
4596
|
-
"\2\2\u0189\u018b\7\64\2\2\u018a\u0180\3\2\2\2\u018a\u0181\3\2\2\2\u018a"+
|
|
4597
|
-
"\u0189\3\2\2\2\u018bC\3\2\2\2\u018c\u018d\t\2\2\2\u018dE\3\2\2\2\u018e"+
|
|
4598
|
-
"\u0193\5H%\2\u018f\u0190\7\30\2\2\u0190\u0192\5H%\2\u0191\u018f\3\2\2"+
|
|
4599
|
-
"\2\u0192\u0195\3\2\2\2\u0193\u0191\3\2\2\2\u0193\u0194\3\2\2\2\u0194\u0197"+
|
|
4600
|
-
"\3\2\2\2\u0195\u0193\3\2\2\2\u0196\u0198\7\30\2\2\u0197\u0196\3\2\2\2"+
|
|
4601
|
-
"\u0197\u0198\3\2\2\2\u0198G\3\2\2\2\u0199\u019c\5J&\2\u019a\u019c\5`\61"+
|
|
4602
|
-
"\2\u019b\u0199\3\2\2\2\u019b\u019a\3\2\2\2\u019cI\3\2\2\2\u019d\u019e"+
|
|
4603
|
-
"\5@!\2\u019e\u019f\7\61\2\2\u019fK\3\2\2\2\u01a0\u01a4\5N(\2\u01a1\u01a3"+
|
|
4604
|
-
"\5P)\2\u01a2\u01a1\3\2\2\2\u01a3\u01a6\3\2\2\2\u01a4\u01a2\3\2\2\2\u01a4"+
|
|
4605
|
-
"\u01a5\3\2\2\2\u01a5\u01a8\3\2\2\2\u01a6\u01a4\3\2\2\2\u01a7\u01a9\5R"+
|
|
4606
|
-
"*\2\u01a8\u01a7\3\2\2\2\u01a8\u01a9\3\2\2\2\u01a9M\3\2\2\2\u01aa\u01ab"+
|
|
4607
|
-
"\7*\2\2\u01ab\u01ac\5\\/\2\u01acO\3\2\2\2\u01ad\u01af\7+\2\2\u01ae\u01b0"+
|
|
4608
|
-
"\5\66\34\2\u01af\u01ae\3\2\2\2\u01af\u01b0\3\2\2\2\u01b0\u01b1\3\2\2\2"+
|
|
4609
|
-
"\u01b1\u01b2\5\\/\2\u01b2Q\3\2\2\2\u01b3\u01b4\7,\2\2\u01b4\u01b5\5\\"+
|
|
4610
|
-
"/\2\u01b5S\3\2\2\2\u01b6\u01ba\5V,\2\u01b7\u01b9\5X-\2\u01b8\u01b7\3\2"+
|
|
4611
|
-
"\2\2\u01b9\u01bc\3\2\2\2\u01ba\u01b8\3\2\2\2\u01ba\u01bb\3\2\2\2\u01bb"+
|
|
4612
|
-
"\u01be\3\2\2\2\u01bc\u01ba\3\2\2\2\u01bd\u01bf\5Z.\2\u01be\u01bd\3\2\2"+
|
|
4613
|
-
"\2\u01be\u01bf\3\2\2\2\u01bfU\3\2\2\2\u01c0\u01c1\7!\2\2\u01c1\u01c2\5"+
|
|
4614
|
-
"d\63\2\u01c2\u01c3\5\\/\2\u01c3W\3\2\2\2\u01c4\u01c5\7\"\2\2\u01c5\u01c6"+
|
|
4615
|
-
"\7!\2\2\u01c6\u01c7\5d\63\2\u01c7\u01c8\5\\/\2\u01c8Y\3\2\2\2\u01c9\u01ca"+
|
|
4616
|
-
"\7\"\2\2\u01ca\u01cb\5\\/\2\u01cb[\3\2\2\2\u01cc\u01ce\7\34\2\2\u01cd"+
|
|
4617
|
-
"\u01cf\5\32\16\2\u01ce\u01cd\3\2\2\2\u01ce\u01cf\3\2\2\2\u01cf\u01d0\3"+
|
|
4618
|
-
"\2\2\2\u01d0\u01d1\7\35\2\2\u01d1]\3\2\2\2\u01d2\u01d3\7#\2\2\u01d3\u01d4"+
|
|
4619
|
-
"\5d\63\2\u01d4\u01d5\5\\/\2\u01d5\u01da\3\2\2\2\u01d6\u01d7\7#\2\2\u01d7"+
|
|
4620
|
-
"\u01da\5d\63\2\u01d8\u01da\7#\2\2\u01d9\u01d2\3\2\2\2\u01d9\u01d6\3\2"+
|
|
4621
|
-
"\2\2\u01d9\u01d8\3\2\2\2\u01da_\3\2\2\2\u01db\u01dc\b\61\1\2\u01dc\u01dd"+
|
|
4622
|
-
"\7\21\2\2\u01dd\u01e9\5`\61\16\u01de\u01df\7\26\2\2\u01df\u01e9\5`\61"+
|
|
4623
|
-
"\r\u01e0\u01e1\5\62\32\2\u01e1\u01e2\7\60\2\2\u01e2\u01e4\3\2\2\2\u01e3"+
|
|
4624
|
-
"\u01e0\3\2\2\2\u01e3\u01e4\3\2\2\2\u01e4\u01e5\3\2\2\2\u01e5\u01e9\5."+
|
|
4625
|
-
"\30\2\u01e6\u01e9\5&\24\2\u01e7\u01e9\5b\62\2\u01e8\u01db\3\2\2\2\u01e8"+
|
|
4626
|
-
"\u01de\3\2\2\2\u01e8\u01e3\3\2\2\2\u01e8\u01e6\3\2\2\2\u01e8\u01e7\3\2"+
|
|
4627
|
-
"\2\2\u01e9\u0201\3\2\2\2\u01ea\u01eb\f\f\2\2\u01eb\u01ec\t\7\2\2\u01ec"+
|
|
4628
|
-
"\u0200\5`\61\r\u01ed\u01ee\f\13\2\2\u01ee\u01ef\t\b\2\2\u01ef\u0200\5"+
|
|
4629
|
-
"`\61\f\u01f0\u01f1\f\n\2\2\u01f1\u01f2\t\t\2\2\u01f2\u0200\5`\61\13\u01f3"+
|
|
4630
|
-
"\u01f4\f\t\2\2\u01f4\u01f5\t\n\2\2\u01f5\u0200\5`\61\n\u01f6\u01f7\f\b"+
|
|
4631
|
-
"\2\2\u01f7\u01f8\7\t\2\2\u01f8\u0200\5`\61\t\u01f9\u01fa\f\7\2\2\u01fa"+
|
|
4632
|
-
"\u01fb\7\b\2\2\u01fb\u0200\5`\61\b\u01fc\u01fd\f\6\2\2\u01fd\u01fe\7\20"+
|
|
4633
|
-
"\2\2\u01fe\u0200\5`\61\7\u01ff\u01ea\3\2\2\2\u01ff\u01ed\3\2\2\2\u01ff"+
|
|
4634
|
-
"\u01f0\3\2\2\2\u01ff\u01f3\3\2\2\2\u01ff\u01f6\3\2\2\2\u01ff\u01f9\3\2"+
|
|
4635
|
-
"\2\2\u01ff\u01fc\3\2\2\2\u0200\u0203\3\2\2\2\u0201\u01ff\3\2\2\2\u0201"+
|
|
4636
|
-
"\u0202\3\2\2\2\u0202a\3\2\2\2\u0203\u0201\3\2\2\2\u0204\u020a\t\13\2\2"+
|
|
4637
|
-
"\u0205\u020a\t\f\2\2\u0206\u020a\7\61\2\2\u0207\u020a\7\64\2\2\u0208\u020a"+
|
|
4638
|
-
"\7 \2\2\u0209\u0204\3\2\2\2\u0209\u0205\3\2\2\2\u0209\u0206\3\2\2\2\u0209"+
|
|
4639
|
-
"\u0207\3\2\2\2\u0209\u0208\3\2\2\2\u020ac\3\2\2\2\u020b\u020c\7\32\2\2"+
|
|
4640
|
-
"\u020c\u020d\5f\64\2\u020d\u020e\7\33\2\2\u020e\u0215\3\2\2\2\u020f\u0210"+
|
|
4641
|
-
"\7\32\2\2\u0210\u0215\5f\64\2\u0211\u0212\7\32\2\2\u0212\u0215\7\33\2"+
|
|
4642
|
-
"\2\u0213\u0215\7\32\2\2\u0214\u020b\3\2\2\2\u0214\u020f\3\2\2\2\u0214"+
|
|
4643
|
-
"\u0211\3\2\2\2\u0214\u0213\3\2\2\2\u0215e\3\2\2\2\u0216\u0219\5b\62\2"+
|
|
4644
|
-
"\u0217\u0219\5`\61\2\u0218\u0216\3\2\2\2\u0218\u0217\3\2\2\2\u0219g\3"+
|
|
4645
|
-
"\2\2\2Mimsv{\u0080\u0084\u0086\u008a\u008c\u0090\u0094\u009a\u00a0\u00a5"+
|
|
4646
|
-
"\u00a7\u00ac\u00af\u00b2\u00b7\u00ba\u00be\u00c1\u00c5\u00ce\u00d2\u00d4"+
|
|
4647
|
-
"\u00d9\u00e4\u00e8\u00eb\u00f0\u00f2\u00f8\u0100\u010b\u0113\u0118\u011d"+
|
|
4648
|
-
"\u0122\u0125\u012b\u012e\u0133\u0136\u013b\u0140\u0147\u014c\u0153\u015c"+
|
|
4649
|
-
"\u0160\u0165\u016d\u0176\u0178\u0186\u018a\u0193\u0197\u019b\u01a4\u01a8"+
|
|
4650
|
-
"\u01af\u01ba\u01be\u01ce\u01d9\u01e3\u01e8\u01ff\u0201\u0209\u0214\u0218";
|
|
4651
|
-
public static final ATN _ATN =
|
|
4652
|
-
new ATNDeserializer().deserialize(_serializedATN.toCharArray());
|
|
4653
|
-
static {
|
|
4654
|
-
_decisionToDFA = new DFA[_ATN.getNumberOfDecisions()];
|
|
4655
|
-
for (int i = 0; i < _ATN.getNumberOfDecisions(); i++) {
|
|
4656
|
-
_decisionToDFA[i] = new DFA(_ATN.getDecisionState(i), i);
|
|
4657
|
-
}
|
|
4658
|
-
}
|
|
4659
|
-
}
|