Click or drag to resize

ICharStream Properties

The ICharStream type exposes the following members.

Properties
  NameDescription
Public propertyCharPositionInLine
The index of the character relative to the beginning of the line 0..n-1
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 propertyLine
ANTLR tracks the line information automatically
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.)
Top
See Also