/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
/** Match the wildcard: in a symbol */ public void matchAny(IntStream input) { state.errorRecovery = false; state.failed = false; input.consume(); }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
public void consumeUntil(IntStream input, int tokenType) { //System.out.println("consumeUntil "+tokenType); int ttype = input.LA(1); while (ttype != Token.EOF && ttype != tokenType) { input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Consume tokens until one matches the given token set */ public void consumeUntil(IntStream input, BitSet set) { //System.out.println("consumeUntil("+set.toString(getTokenNames())+")"); int ttype = input.LA(1); while (ttype != Token.EOF && !set.member(ttype) ) { //System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]); input.consume(); ttype = input.LA(1); } }
/** Recover from an error found on the input stream. This is * for NoViableAlt and mismatched symbol exceptions. If you enable * single token insertion and deletion, this will usually not * handle mismatched symbol exceptions but there could be a mismatched * token that the match() routine could not recover from. */ public void recover(IntStream input, RecognitionException re) { if ( state.lastErrorIndex==input.index() ) { // uh oh, another error at same token index; must be a case // where LT(1) is in the recovery token set so nothing is // consumed; consume a single token so at least to prevent // an infinite loop; this is a failsafe. input.consume(); } state.lastErrorIndex = input.index(); BitSet followSet = computeErrorRecoverySet(); beginResync(); consumeUntil(input, followSet); endResync(); }
/** Recover from an error found on the input stream. This is * for NoViableAlt and mismatched symbol exceptions. If you enable * single token insertion and deletion, this will usually not * handle mismatched symbol exceptions but there could be a mismatched * token that the match() routine could not recover from. */ public void recover(IntStream input, RecognitionException re) { if ( state.lastErrorIndex==input.index() ) { // uh oh, another error at same token index; must be a case // where LT(1) is in the recovery token set so nothing is // consumed; consume a single token so at least to prevent // an infinite loop; this is a failsafe. input.consume(); } state.lastErrorIndex = input.index(); BitSet followSet = computeErrorRecoverySet(); beginResync(); consumeUntil(input, followSet); endResync(); }