Antlr.Runtime.ICharStream Interface Reference

A source of characters for an ANTLR lexer. More...

Inheritance diagram for Antlr.Runtime.ICharStream:

Inheritance graph
[legend]
Collaboration diagram for Antlr.Runtime.ICharStream:

Collaboration graph
[legend]

List of all members.

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.


Detailed Description

A source of characters for an ANTLR lexer.

Definition at line 46 of file ICharStream.cs.


Member Function Documentation

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.


Property Documentation

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.


The documentation for this interface was generated from the following file:

Generated on Wed Oct 1 14:13:24 2008 for ANTLR API by  doxygen 1.5.5