/** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); boolean[] la1tokens = new boolean[14]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 8; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<<j)) != 0) { la1tokens[j] = true; } } } } for (int i = 0; i < 14; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; jj_expentries.add(jj_expentry); } } int[][] exptokseq = new int[jj_expentries.size()][]; for (int i = 0; i < jj_expentries.size(); i++) { exptokseq[i] = jj_expentries.get(i); } return new ParseException(token, exptokseq, tokenImage); }
retval += add_escapes(tok.image); retval += " \""; tok = tok.next;
/** * This constructor is used by the method "generateParseException" * in the generated parser. Calling this constructor generates * a new object of this type with the fields "currentToken", * "expectedTokenSequences", and "tokenImage" set. */ public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal ) { super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); currentToken = currentTokenVal; expectedTokenSequences = expectedTokenSequencesVal; tokenImage = tokenImageVal; }
/** Generate ParseException. */ public ParseException generateParseException() { jj_expentries.clear(); boolean[] la1tokens = new boolean[14]; if (jj_kind >= 0) { la1tokens[jj_kind] = true; jj_kind = -1; } for (int i = 0; i < 8; i++) { if (jj_la1[i] == jj_gen) { for (int j = 0; j < 32; j++) { if ((jj_la1_0[i] & (1<<j)) != 0) { la1tokens[j] = true; } } } } for (int i = 0; i < 14; i++) { if (la1tokens[i]) { jj_expentry = new int[1]; jj_expentry[0] = i; jj_expentries.add(jj_expentry); } } int[][] exptokseq = new int[jj_expentries.size()][]; for (int i = 0; i < jj_expentries.size(); i++) { exptokseq[i] = jj_expentries.get(i); } return new ParseException(token, exptokseq, tokenImage); }
/** * This constructor is used by the method "generateParseException" * in the generated parser. Calling this constructor generates * a new object of this type with the fields "currentToken", * "expectedTokenSequences", and "tokenImage" set. */ public ParseException(Token currentTokenVal, int[][] expectedTokenSequencesVal, String[] tokenImageVal ) { super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); currentToken = currentTokenVal; expectedTokenSequences = expectedTokenSequencesVal; tokenImage = tokenImageVal; }
retval += add_escapes(tok.image); retval += " \""; tok = tok.next;
final public String Operator() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMP_FIQL: token = jj_consume_token(COMP_FIQL); break; case COMP_ALT: token = jj_consume_token(COMP_ALT); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return token.image;} throw new Error("Missing return statement in function"); }
final public String Argument() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case UNRESERVED_STR: token = jj_consume_token(UNRESERVED_STR); {if (true) return token.image;} break; case SINGLE_QUOTED_STR: case DOUBLE_QUOTED_STR: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOUBLE_QUOTED_STR: token = jj_consume_token(DOUBLE_QUOTED_STR); break; case SINGLE_QUOTED_STR: token = jj_consume_token(SINGLE_QUOTED_STR); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return unescape(token.image.substring(1, token.image.length() -1));} break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public Node Constraint() throws ParseException { final Node node; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: node = Group(); break; case UNRESERVED_STR: node = Comparison(); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return node;} throw new Error("Missing return statement in function"); }
final public String Argument() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case UNRESERVED_STR: token = jj_consume_token(UNRESERVED_STR); {if (true) return token.image;} break; case SINGLE_QUOTED_STR: case DOUBLE_QUOTED_STR: switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOUBLE_QUOTED_STR: token = jj_consume_token(DOUBLE_QUOTED_STR); break; case SINGLE_QUOTED_STR: token = jj_consume_token(SINGLE_QUOTED_STR); break; default: jj_la1[6] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return unescape(token.image.substring(1, token.image.length() -1));} break; default: jj_la1[7] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public Node Constraint() throws ParseException { final Node node; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: node = Group(); break; case UNRESERVED_STR: node = Comparison(); break; default: jj_la1[2] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return node;} throw new Error("Missing return statement in function"); }
final public String Operator() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case COMP_FIQL: token = jj_consume_token(COMP_FIQL); break; case COMP_ALT: token = jj_consume_token(COMP_ALT); break; default: jj_la1[3] = jj_gen; jj_consume_token(-1); throw new ParseException(); } {if (true) return token.image;} throw new Error("Missing return statement in function"); }
final public List<String> Arguments() throws ParseException { final Object value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: jj_consume_token(LPAREN); value = CommaSepArguments(); jj_consume_token(RPAREN); {if (true) return (List) value;} break; case UNRESERVED_STR: case SINGLE_QUOTED_STR: case DOUBLE_QUOTED_STR: value = Argument(); {if (true) return Arrays.asList((String) value);} break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }
final public List<String> Arguments() throws ParseException { final Object value; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case LPAREN: jj_consume_token(LPAREN); value = CommaSepArguments(); jj_consume_token(RPAREN); {if (true) return (List) value;} break; case UNRESERVED_STR: case SINGLE_QUOTED_STR: case DOUBLE_QUOTED_STR: value = Argument(); {if (true) return Arrays.asList((String) value);} break; default: jj_la1[4] = jj_gen; jj_consume_token(-1); throw new ParseException(); } throw new Error("Missing return statement in function"); }