public final void lambdaBody() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST lambdaBody_AST = null; { if ((_tokenSet_12.member(LA(1))) && (_tokenSet_69.member(LA(2)))) { expression(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_36.member(LA(1))) && (_tokenSet_69.member(LA(2)))) { statement(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } lambdaBody_AST = (AST)currentAST.root; returnAST = lambdaBody_AST; }
if ((_tokenSet_9.member(LA(1)))) { mID_PART(false);
public final void annotationArguments() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST annotationArguments_AST = null; if ((_tokenSet_10.member(LA(1))) && (_tokenSet_11.member(LA(2)))) { annotationMemberValueInitializer(); astFactory.addASTChild(currentAST, returnAST); annotationArguments_AST = (AST)currentAST.root; } else if ((LA(1)==IDENT) && (LA(2)==ASSIGN)) { annotationMemberValuePairs(); astFactory.addASTChild(currentAST, returnAST); annotationArguments_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = annotationArguments_AST; }
/** * In this grammar, basically any string since we (atm) have no keywords */ public final void mNAME(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NAME; int _saveIndex; mNAME_START(false); { _loop785: do { if ((_tokenSet_0.member(LA(1)))) { mNAME_CONTINUATION(false); } else { break _loop785; } } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
public final void mIDENT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = IDENT; int _saveIndex; mID_START_LETTER(false); { _loop67: do { if ((_tokenSet_1.member(LA(1)))) { mID_LETTER(false); } else { break _loop67; } } while (true); } _ttype = testLiteralsTable(_ttype); if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
public final void mATOM(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = ATOM; int _saveIndex; { int _cnt26=0; _loop26: do { if ((_tokenSet_0.member(LA(1)))) { mIDENTIFIER_PART(false); } else { if ( _cnt26>=1 ) { break _loop26; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt26++; } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
if ((_tokenSet_1.member(LA(1)))) { mID_LETTER(false);
public final void mSTRING_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = STRING_LITERAL; int _saveIndex; match('"'); { _loop444: do { if ((LA(1)=='\\')) { mESC(false); } else if ((_tokenSet_6.member(LA(1)))) { matchNot('"'); } else { break _loop444; } } while (true); } match('"'); if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = ID_LETTER; int _saveIndex; if ((_tokenSet_0.member(LA(1)))) { mID_START_LETTER(false); } else if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
protected final void mID_LETTER(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = ID_LETTER; int _saveIndex; if ((_tokenSet_0.member(LA(1)))) { mID_START_LETTER(false); } else if (((LA(1) >= '0' && LA(1) <= '9'))) { matchRange('0','9'); } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
public final void mCHAR_LITERAL(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = CHAR_LITERAL; int _saveIndex; match('\''); { if ((LA(1)=='\\')) { mESC(false); } else if ((_tokenSet_3.member(LA(1)))) { matchNot('\''); } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } match('\''); if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; }
public final void query() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST query_AST = null; { if ((LA(1)==TOK_LT||LA(1)==LITERAL_select)) { selectExpr(); astFactory.addASTChild(currentAST, returnAST); } else if ((_tokenSet_4.member(LA(1)))) { expr(); astFactory.addASTChild(currentAST, returnAST); } else { throw new NoViableAltException(LT(1), getFilename()); } } query_AST = (AST)currentAST.root; returnAST = query_AST; }
orderExpr_AST = (AST)currentAST.root; else if ((_tokenSet_0.member(_t.getType()))) { expr(_t, null ); _t = _retTree;
public final void argList() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST argList_AST = null; { if (((_tokenSet_12.member(LA(1))))&&(LA(1)!=RPAREN)) { expressionList(); astFactory.addASTChild(currentAST, returnAST); } else if ((LA(1)==RPAREN)) { if ( inputState.guessing==0 ) { argList_AST = (AST)currentAST.root; argList_AST = astFactory.create(ELIST,"ELIST"); currentAST.root = argList_AST; currentAST.child = argList_AST!=null &&argList_AST.getFirstChild()!=null ? argList_AST.getFirstChild() : argList_AST; currentAST.advanceChildToEnd(); } } else { throw new NoViableAltException(LT(1), getFilename()); } } argList_AST = (AST)currentAST.root; returnAST = argList_AST; }
if ((_tokenSet_4.member(LA(1)))) { modifier(); astFactory.addASTChild(currentAST, returnAST);
if ((_tokenSet_36.member(LA(1)))) { statement(); astFactory.addASTChild(currentAST, returnAST);
public final void caseExpression() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST caseExpression_AST = null; try { // for error handling if ((LA(1)==CASE) && (_tokenSet_41.member(LA(2)))) { simpleCaseStatement(); astFactory.addASTChild(currentAST, returnAST); caseExpression_AST = (AST)currentAST.root; } else if ((LA(1)==CASE) && (LA(2)==WHEN)) { searchedCaseStatement(); astFactory.addASTChild(currentAST, returnAST); caseExpression_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } catch (RecognitionException ex) { reportError(ex); recover(ex,_tokenSet_40); } returnAST = caseExpression_AST; }
public final void joinPath() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST joinPath_AST = null; try { // for error handling if (((LA(1)==IDENT) && (LA(2)==OPEN))&&( validateSoftKeyword("treat") && LA(2) == OPEN )) { castedJoinPath(); astFactory.addASTChild(currentAST, returnAST); joinPath_AST = (AST)currentAST.root; } else if ((LA(1)==IDENT) && (_tokenSet_22.member(LA(2)))) { path(); astFactory.addASTChild(currentAST, returnAST); joinPath_AST = (AST)currentAST.root; } else { throw new NoViableAltException(LT(1), getFilename()); } } catch (RecognitionException ex) { reportError(ex); recover(ex,_tokenSet_23); } returnAST = joinPath_AST; }