MergableTokenReader Class
Represents an object that can provide tokens to a ILLParser in a forward-only direction for a IMergableLexer.
public class MergableTokenReader : TokenReaderBase, ITokenReader
- Inheritance:
- object TokenReaderBase object
- Implements:
- ITokenReader
Constructors
MergableTokenReader(ITextBufferReader, IMergableLexer)
Initializes a new instance of the MergableTokenReader
class.
public MergableTokenReader(ITextBufferReader reader, IMergableLexer rootLexer)
Parameter | Type | Description |
---|---|---|
reader | ITextBufferReader | The ITextBufferReader to use for consuming text. |
rootLexer | IMergableLexer | The root IMergableLexer. |
Methods
GetNextToken()
Returns the next IToken that will be consumed by the token reader.
protected override IToken GetNextToken()
Returns
Pop()
Pops the top token reader state from the stack and restores the token reader to that state.
Push()
Pushes the token reader state onto a stack for later restoration, generally to begin a multiple token look-ahead operation.
Inherited Members
- TokenReaderBase.Advance()
- TokenReaderBase.AdvanceTo(int)
- TokenReaderBase.AdvanceTo(params int[])
- TokenReaderBase.AreNext(params int[])
- TokenReaderBase.GetLookAheadToken(int)
- TokenReaderBase.GetTokenText(IToken)
- TokenReaderBase.Initialize()
- TokenReaderBase.OffsetToPosition(int)
- TokenReaderBase.IsAtEnd
- TokenReaderBase.IsParserInErrorState
- TokenReaderBase.LookAheadToken
- TokenReaderBase.Offset
- TokenReaderBase.StackLevel
- TokenReaderBase.Token
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()