//throws RecognitionException, TokenStreamException public void xorexpr( DepNode parent ) { try { // for error handling match(LPAREN); match(XOR); { // ( ... )+ int _cnt18=0; for (;;) { if ((LA(1)==LPAREN) && ((LA(2) >= EQ && LA(2) <= LD)) && (LA(3)==CLASS)) { oexpr(parent, false); } else if ((LA(1)==LPAREN) && (tokenSet_2_.member(LA(2))) && (LA(3)==LPAREN||LA(3)==CLASS)) { { DepNode child = parent.CreateNewChild(); cexpr(child); } } else { if (_cnt18 >= 1) { goto _loop18_breakloop; } else { throw new NoViableAltException(LT(1), getFilename());; } } _cnt18++; } _loop18_breakloop: ; } // ( ... )+ match(RPAREN); } catch (RecognitionException ex) { reportError(ex); recover(ex,tokenSet_1_); } }
//throws RecognitionException, TokenStreamException public void neqexpr( DepNode parent, bool root ) { DepNode child = (!root)? parent.CreateNewChild() : parent; child.DepOp = DepOps.NotEqual; try { // for error handling match(LPAREN); match(NEQ); iexpr(child); match(RPAREN); } catch (RecognitionException ex) { reportError(ex); recover(ex,tokenSet_1_); } }