Antlr.Runtime.BaseRecognizer.ConsumeUntil C# (CSharp) Method

ConsumeUntil() public method

Consume tokens until one matches the given token set
public ConsumeUntil ( IIntStream input, BitSet set ) : void
input IIntStream
set BitSet
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 );
            }
        }

Same methods

BaseRecognizer::ConsumeUntil ( IIntStream input, int tokenType ) : void