public static final Valor PValorInteiro() throws ParseException { Token token; token = jj_consume_token(INTEGER_LITERAL); { if (true) return new ValorInteiro(Integer.parseInt(token.toString())); } throw new Error("Missing return statement in function"); }
/** Get the specific Token. */ public static final Token getToken(int index) { Token t = token; for (int i = 0; i < index; i++) { if (t.next != null) t = t.next; else t = t.next = token_source.getNextToken(); } return t; }
public static final Valor PValorString() throws ParseException { Token token; token = jj_consume_token(STRING_LITERAL); String tokenStr = token.toString(); tokenStr = tokenStr.substring(1, tokenStr.length() - 1); { if (true) return new ValorString(tokenStr); } throw new Error("Missing return statement in function"); }
/** Get the next Token. */ public static final Token getNextToken() { if (token.next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; jj_gen++; return token; }
private static Token jj_consume_token(int kind) throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = token_source.getNextToken(); jj_ntk = -1; if (token.kind == kind) { jj_gen++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); }
private static int jj_ntk() { if ((jj_nt = token.next) == null) return (jj_ntk = (token.next = token_source.getNextToken()).kind); else return (jj_ntk = jj_nt.kind); }