syntax method
Implementation
SyntaxContext syntax() {
dynamic _localctx = SyntaxContext(context, state);
enterRule(_localctx, 2, RULE_syntax);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 123;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
while ((((_la) & ~0x3f) == 0 && ((BigInt.one << _la) & ((BigInt.one << TOKEN_DOC_LINE_COMMENT) | (BigInt.one << TOKEN_LINE_COMMENT) | (BigInt.one << TOKEN_DOC_MULTI_COMMENT) | (BigInt.one << TOKEN_MULTI_COMMENT))) != BigInt.zero)) {
state = 120;
comment();
state = 125;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
}
state = 126;
match(TOKEN_SYNTAX);
state = 127;
match(TOKEN_EQ);
state = 128;
_la = tokenStream.LA(1)!;
if (!(_la == TOKEN_PROTO3_LIT_SINGLE || _la == TOKEN_PROTO3_LIT_DOBULE)) {
errorHandler.recoverInline(this);
} else {
if ( tokenStream.LA(1)! == IntStream.EOF ) matchedEOF = true;
errorHandler.reportMatch(this);
consume();
}
state = 129;
match(TOKEN_SEMI);
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}