

Public Member Functions | |
| int | LT (int i) |
| Get the ith character of lookahead. This is usually the same as LA(i). This will be used for labels in the generated lexer code. I'd prefer to return a char here type-wise, but it's probably better to be 32-bit clean and be consistent with LA. | |
| string | Substring (int start, int stop) |
Properties | |
| int | Line [get, set] |
| The current line in the character stream (ANTLR tracks the line information automatically. To support rewinding character streams, we are able to [re-]set the line. | |
| int | CharPositionInLine [get, set] |
| The index of the character relative to the beginning of the line (0..n-1). To support rewinding character streams, we are able to [re-]set the character position. | |
Definition at line 46 of file ICharStream.cs.
| int Antlr.Runtime.ICharStream.LT | ( | int | i | ) |
Get the ith character of lookahead. This is usually the same as LA(i). This will be used for labels in the generated lexer code. I'd prefer to return a char here type-wise, but it's probably better to be 32-bit clean and be consistent with LA.
Implemented in Antlr.Runtime.ANTLRStringStream.
| string Antlr.Runtime.ICharStream.Substring | ( | int | start, | |
| int | stop | |||
| ) |
This primarily a useful interface for action code (just make sure actions don't use this on streams that don't support it). For infinite streams, you don't need this.
Implemented in Antlr.Runtime.ANTLRStringStream.
int Antlr.Runtime.ICharStream.Line [get, set] |
The current line in the character stream (ANTLR tracks the line information automatically. To support rewinding character streams, we are able to [re-]set the line.
Implemented in Antlr.Runtime.ANTLRStringStream.
Definition at line 54 of file ICharStream.cs.
int Antlr.Runtime.ICharStream.CharPositionInLine [get, set] |
The index of the character relative to the beginning of the line (0..n-1). To support rewinding character streams, we are able to [re-]set the character position.
Implemented in Antlr.Runtime.ANTLRStringStream.
Definition at line 65 of file ICharStream.cs.
1.5.5