ANTLR3_LEX_STATE_struct - Man Page

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

Synopsis

#include <antlr3input.h>

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.

Detailed Description

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

Field Documentation

ANTLR3_INT32 ANTLR3_LEX_STATE_struct::charPositionInLine

The offset within the current line of the current character.

Referenced by antlr38BitMark(), and antlr38BitRewind().

void* ANTLR3_LEX_STATE_struct::currentLine

Pointer into the input buffer where the current line started.

Referenced by antlr38BitMark(), and antlr38BitRewind().

ANTLR3_UINT32 ANTLR3_LEX_STATE_struct::line

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().

void* ANTLR3_LEX_STATE_struct::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.

Referenced by antlr38BitMark(), and antlr38BitRewind().

Author

Generated automatically by Doxygen for ANTLR3C from the source code.

Info

Tue Feb 27 2024 00:00:00 Version 3.3.1 ANTLR3C