ANTLR3_LEX_STATE_struct Struct Reference

#include <antlr3input.h>


Detailed Description

Structure for track lex input states as part of mark() and rewind() of lexer.

Data Fields

ANTLR3_INT32 charPositionInLine
 The offset within the current line of the current character.
void * currentLine
 Pointer into the input buffer where the current line started.
ANTLR3_UINT32 line
 The line number we are traversing in the input file.
void * nextChar
 Pointer to the next character to be consumed from the input data This is cast to point at the encoding of the original file that was read by the functions installed as pointer in this input stream context instance at file/string/whatever load time.

Field Documentation

The offset within the current line of the current character.

Referenced by antlr38BitMark(), and antlr38BitRewind().

Pointer into the input buffer where the current line started.

Referenced by antlr38BitMark(), and antlr38BitRewind().

The line number we are traversing in the input file.

This gets incremented by a newline() call in the lexer grammer actions.

Referenced by antlr38BitMark(), and antlr38BitRewind().

Pointer to the next character to be consumed from the input data This is cast to point at the encoding of the original file that was read by the functions installed as pointer in this input stream context instance at file/string/whatever load time.

Referenced by antlr38BitMark(), and antlr38BitRewind().


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

Generated on Mon Nov 29 17:24:05 2010 for ANTLR3C by  doxygen 1.5.5