Click or drag to resize

ITokenStream Properties

The ITokenStream type exposes the following members.

Properties
  NameDescription
Public propertyCount
Only makes sense for streams that buffer everything up probably, but might be useful to display the entire stream or for testing. This value includes a single EOF.
(Inherited from IIntStream.)
Public propertyIndex
Return the current input symbol index 0..n where n indicates the last symbol has been read. The index is the symbol about to be read not the most recently read symbol.
(Inherited from IIntStream.)
Public propertyRange
How far ahead has the stream been asked to look? The return value is a valid index from 0..n-1.
Public propertySourceName
Where are you getting symbols from? Normally, implementations will pass the buck all the way to the lexer who can ask its input stream for the file name or whatever.
(Inherited from IIntStream.)
Public propertyTokenSource
Where is this stream pulling tokens from? This is not the name, but the object that provides Token objects.
Top
See Also