Пример #1
0
 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");
 }
Пример #2
0
 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");
 }