range_ method
Implementation
Range_Context range_() {
dynamic _localctx = Range_Context(context, state);
enterRule(_localctx, 36, RULE_range_);
int _la;
try {
enterOuterAlt(_localctx, 1);
state = 285;
intLit();
state = 291;
errorHandler.sync(this);
_la = tokenStream.LA(1)!;
if (_la == TOKEN_TO) {
state = 286;
match(TOKEN_TO);
state = 289;
errorHandler.sync(this);
switch (tokenStream.LA(1)!) {
case TOKEN_INT_LIT:
state = 287;
intLit();
break;
case TOKEN_MAX:
state = 288;
match(TOKEN_MAX);
break;
default:
throw NoViableAltException(this);
}
}
} on RecognitionException catch (re) {
_localctx.exception = re;
errorHandler.reportError(this, re);
errorHandler.recover(this, re);
} finally {
exitRule();
}
return _localctx;
}