ICharStream Properties |
The ICharStream type exposes the following members.
Name | Description | |
---|---|---|
![]() | CharPositionInLine | The index of the character relative to the beginning of the line 0..n-1 |
![]() | Count |
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.) |
![]() | Index |
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.) |
![]() | Line | ANTLR tracks the line information automatically |
![]() | SourceName |
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.) |