/** Constructor with user supplied CharStream. */ public Parser(CharStream stream) { token_source = new ParserTokenManager(stream); token = new Token(); jj_ntk = -1; jj_gen = 0; for (int i = 0; i < 269; i++) jj_la1[i] = -1; for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); }
static LexicalUnitImpl createKHZ(int line, int column, LexicalUnitImpl previous, float v) { if (v < 0) { throw new ParseException("Frequency values may not be negative"); } return new LexicalUnitImpl(line, column, previous, SAC_KILOHERTZ, null, v); }
final public void controlDirective() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case IF_SYM: ifDirective(); break; case EACH_SYM: eachDirective(); break; default: jj_la1[110] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
final public void debuggingDirective() throws ParseException { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DEBUG_SYM: debugDirective(); break; case WARN_SYM: warnDirective(); break; default: jj_la1[208] = jj_gen; jj_consume_token(-1); throw new ParseException(); } }
private boolean jj_3R_222() { if (jj_scan_token(COLON)) return true; Token xsp; xsp = jj_scanpos; if (jj_3R_289()) jj_scanpos = xsp; xsp = jj_scanpos; if (jj_3R_290()) { jj_scanpos = xsp; if (jj_3R_291()) return true; } return false; }
private int jjStartNfaWithStates_0(int pos, int kind, int state) { jjmatchedKind = kind; jjmatchedPos = pos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return pos + 1; } return jjMoveNfa_0(state, pos + 1); } static final long[] jjbitVec0 = {
final public LexicalUnitImpl variableTerm(LexicalUnitImpl prev) throws ParseException { LexicalUnitImpl result = null; String varName = ""; varName = variableName(); result = LexicalUnitImpl.createVariable(token.beginLine, token.beginColumn, prev, varName); {if (true) return result;} throw new Error("Missing return statement in function"); }
@Override public LexicalUnitImpl clone() { LexicalUnitImpl cloned = new LexicalUnitImpl(type, line, column, prev); cloned.replaceValue(this); return cloned; }
private boolean jj_3_6() { if (jj_3R_185()) return true; if (jj_scan_token(LBRACE)) return true; return false; }
private boolean jj_3R_213() { if (jj_scan_token(MOD)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { jj_scanpos = xsp; break; } } return false; }
void acceptMissingSemicolonBeforeRbrace(ParseException parseException) throws ParseException { Token next = getToken(1); if (next.kind != RBRACE && next.kind!=EOF) { throw parseException; } }
static LexicalUnitImpl createMS(int line, int column, LexicalUnitImpl previous, float v) { if (v < 0) { throw new ParseException("Time values may not be negative"); } return new LexicalUnitImpl(line, column, previous, SAC_MILLISECOND, null, v); }
private boolean jj_3R_210() { if (jj_scan_token(COMMA)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { jj_scanpos = xsp; break; } } return false; }
static LexicalUnitImpl createS(int line, int column, LexicalUnitImpl previous, float v) { if (v < 0) { throw new ParseException("Time values may not be negative"); } return new LexicalUnitImpl(line, column, previous, SAC_SECOND, null, v); }
private boolean jj_3R_192() { if (jj_scan_token(SEMICOLON)) return true; Token xsp; while (true) { xsp = jj_scanpos; if (jj_scan_token(1)) { jj_scanpos = xsp; break; } } return false; }
static LexicalUnitImpl createHZ(int line, int column, LexicalUnitImpl previous, float v) { if (v < 0) { throw new ParseException("Frequency values may not be negative"); } return new LexicalUnitImpl(line, column, previous, SAC_HERTZ, null, v); }