final public Expression ConditionalExpression() throws ParseException { Expression condition, trueBranch, falseBranch; condition = OrExpression(); jj_consume_token(COND); trueBranch = Expression(); jj_consume_token(COLON); falseBranch = Expression(); return new ConditionalExpression(condition, trueBranch, falseBranch); }
final public Expression ConditionalExpression() throws ParseException { Expression condition, trueBranch, falseBranch; condition = OrExpression(); jj_consume_token(COND); trueBranch = Expression(); jj_consume_token(COLON); falseBranch = Expression(); return new ConditionalExpression(condition, trueBranch, falseBranch); }
final public Expression Expression() throws ParseException { Expression ret; if (jj_2_1(2147483647)) { ret = ConditionalExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case TRUE: case FALSE: case NULL: case LPAREN: case MINUS: case NOT1: case NOT2: case EMPTY: case IDENTIFIER: ret = OrExpression(); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } return ret; }
final public Expression Expression() throws ParseException { Expression ret; if (jj_2_1(2147483647)) { ret = ConditionalExpression(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case INTEGER_LITERAL: case FLOATING_POINT_LITERAL: case STRING_LITERAL: case TRUE: case FALSE: case NULL: case LPAREN: case MINUS: case NOT1: case NOT2: case EMPTY: case IDENTIFIER: ret = OrExpression(); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } return ret; }