public File_inputContext file_input() { File_inputContext _localctx = new File_inputContext(Context, State); EnterRule(_localctx, 0, RULE_file_input); int _la; try { EnterOuterAlt(_localctx, 1); { State = 35; ErrorHandler.Sync(this); _la = TokenStream.LA(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << T__0) | (1L << INPUT) | (1L << OUTPUT) | (1L << IF) | (1L << OPR) | (1L << SUBSPACE) | (1L << NAME))) != 0)) { { { State = 32; stmt(); } } State = 37; ErrorHandler.Sync(this); _la = TokenStream.LA(1); } State = 38; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return(_localctx); }
public File_inputContext file_input() { File_inputContext _localctx = new File_inputContext(Context, State); EnterRule(_localctx, 2, RULE_file_input); int _la; try { EnterOuterAlt(_localctx, 1); { State = 179; ErrorHandler.Sync(this); _la = TokenStream.La(1); while ((((_la) & ~0x3f) == 0 && ((1L << _la) & ((1L << DEF) | (1L << RETURN) | (1L << RAISE) | (1L << FROM) | (1L << IMPORT) | (1L << GLOBAL) | (1L << NONLOCAL) | (1L << ASSERT) | (1L << IF) | (1L << WHILE) | (1L << FOR) | (1L << TRY) | (1L << WITH) | (1L << LAMBDA) | (1L << NOT) | (1L << NONE) | (1L << TRUE) | (1L << FALSE) | (1L << CLASS) | (1L << YIELD) | (1L << DEL) | (1L << PASS) | (1L << CONTINUE) | (1L << BREAK) | (1L << NEWLINE) | (1L << NAME) | (1L << STRING_LITERAL) | (1L << BYTES_LITERAL) | (1L << DECIMAL_INTEGER) | (1L << OCT_INTEGER) | (1L << HEX_INTEGER) | (1L << BIN_INTEGER) | (1L << FLOAT_NUMBER) | (1L << IMAG_NUMBER) | (1L << ELLIPSIS) | (1L << STAR) | (1L << OPEN_PAREN) | (1L << OPEN_BRACK) | (1L << ADD) | (1L << MINUS))) != 0) || ((((_la - 66)) & ~0x3f) == 0 && ((1L << (_la - 66)) & ((1L << (NOT_OP - 66)) | (1L << (OPEN_BRACE - 66)) | (1L << (AT - 66)))) != 0)) { { State = 177; switch (TokenStream.La(1)) { case NEWLINE: { State = 175; Match(NEWLINE); } break; case DEF: case RETURN: case RAISE: case FROM: case IMPORT: case GLOBAL: case NONLOCAL: case ASSERT: case IF: case WHILE: case FOR: case TRY: case WITH: case LAMBDA: case NOT: case NONE: case TRUE: case FALSE: case CLASS: case YIELD: case DEL: case PASS: case CONTINUE: case BREAK: case NAME: case STRING_LITERAL: case BYTES_LITERAL: case DECIMAL_INTEGER: case OCT_INTEGER: case HEX_INTEGER: case BIN_INTEGER: case FLOAT_NUMBER: case IMAG_NUMBER: case ELLIPSIS: case STAR: case OPEN_PAREN: case OPEN_BRACK: case ADD: case MINUS: case NOT_OP: case OPEN_BRACE: case AT: { State = 176; stmt(); } break; default: throw new NoViableAltException(this); } } State = 181; ErrorHandler.Sync(this); _la = TokenStream.La(1); } State = 182; Match(Eof); } } catch (RecognitionException re) { _localctx.exception = re; ErrorHandler.ReportError(this, re); ErrorHandler.Recover(this, re); } finally { ExitRule(); } return _localctx; }