public ConsumeUntil ( IIntStream input, |
||
input | IIntStream | |
set | ||
return | void |
public virtual void ConsumeUntil( IIntStream input, BitSet set )
{
//System.out.println("consumeUntil("+set.toString(getTokenNames())+")");
int ttype = input.LA( 1 );
while ( ttype != TokenTypes.EndOfFile && !set.Member( ttype ) )
{
//System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]);
input.Consume();
ttype = input.LA( 1 );
}
}
BaseRecognizer::ConsumeUntil ( IIntStream input, int tokenType ) : void |