public UnitsParser(java.io.InputStream stream) { if (jj_initialized_once) { System.out.println("ERROR: Second call to constructor of static parser. " + "You must"); System.out.println(" either use ReInit() or set the JavaCC option " + "STATIC to false"); System.out.println(" during parser generation."); throw new Error(); } jj_initialized_once = true; jj_input_stream = new ASCII_CharStream(stream, 1, 1); token_source = new UnitsParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 10; i++) jj_la1[i] = -1; }
ReInitRounds(); if (curChar < 64) jjCheckNAddStates(0, 4); jjCheckNAddStates(5, 10); else if (curChar == 37) jjCheckNAddTwoStates(17, 18); else if (curChar == 42) jjstateSet[jjnewStateCnt++] = 9; jjCheckNAddStates(11, 14); jjCheckNAddTwoStates(25, 26); else if (curChar == 46) jjCheckNAddTwoStates(17, 18); if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(15, 17); jjCheckNAddTwoStates(25, 19); jjCheckNAdd(24); case 14: if ((0x3ff000000000000L & l) != 0L) jjAddStates(18, 19); break;
matchedToken = jjFillToken(); return matchedToken; jjmatchedKind = 0x7fffffff; jjmatchedPos = 0; curPos = jjMoveStringLiteralDfa0_0(); if (jjmatchedKind != 0x7fffffff) if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) matchedToken = jjFillToken(); return matchedToken;
public UnitsParser(java.io.Reader stream) { if (jj_initialized_once) { System.out.println("ERROR: Second call to constructor of static parser. " + "You must"); System.out.println(" either use ReInit() or set the JavaCC option " + "STATIC to false"); System.out.println(" during parser generation."); throw new Error(); } jj_initialized_once = true; jj_input_stream = new ASCII_CharStream(stream, 1, 1); token_source = new UnitsParserTokenManager(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 10; i++) jj_la1[i] = -1; }
static final private Token jj_consume_token(int kind) throws ParseException { Token oldToken; if ((oldToken = token).next != null) token = token.next; else token = token.next = UnitsParserTokenManager.getNextToken(); jj_ntk = -1; if (token.kind == kind) { jj_gen++; return token; } token = oldToken; jj_kind = kind; throw generateParseException(); }
static public void ReInit(ASCII_CharStream stream) { jjmatchedPos = jjnewStateCnt = 0; curLexState = defaultLexState; input_stream = stream; ReInitRounds(); } static private final void ReInitRounds()
static public void ReInit(java.io.Reader stream) { ASCII_CharStream.ReInit(stream, 1, 1); UnitsParserTokenManager.ReInit(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 10; i++) jj_la1[i] = -1; }
static public void ReInit(java.io.InputStream stream) { ASCII_CharStream.ReInit(stream, 1, 1); UnitsParserTokenManager.ReInit(jj_input_stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 10; i++) jj_la1[i] = -1; }
public UnitsParserTokenManager(ASCII_CharStream stream, int lexState) { this(stream); SwitchTo(lexState); } static public void ReInit(ASCII_CharStream stream)
static final public Token getNextToken() { if (token.next != null) token = token.next; else token = token.next = UnitsParserTokenManager.getNextToken(); jj_ntk = -1; jj_gen++; return token; }
static private final void jjCheckNAddTwoStates(int state1, int state2) { jjCheckNAdd(state1); jjCheckNAdd(state2); } static private final void jjCheckNAddStates(int start, int end)
static final public 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 = UnitsParserTokenManager.getNextToken(); } return t; }
static private final void jjCheckNAddStates(int start, int end) { do { jjCheckNAdd(jjnextStates[start]); } while (start++ != end); } static private final int jjMoveNfa_0(int startState, int curPos)
static final private int jj_ntk() { if ((jj_nt=token.next) == null) return (jj_ntk = (token.next=UnitsParserTokenManager.getNextToken()).kind); else return (jj_ntk = jj_nt.kind); }