ANTLR3_PARSER_struct

Langue: en

Version: 379160 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

ANTLR3_PARSER_struct -

This is the main interface for an ANTLR3 parser.

SYNOPSIS


#include <antlr3parser.h>

Data Fields


void(* free )(struct ANTLR3_PARSER_struct *parser)
Pointer to a function that knows how to free resources of an ANTLR3 parser.
pANTLR3_TOKEN_STREAM(* getTokenStream )(struct ANTLR3_PARSER_struct *parser)
A pointer to a function that returns the token stream for this parser.
pANTLR3_BASE_RECOGNIZER rec
A pointer to the base recognizer, where most of the parser functions actually live because they are shared between parser and tree parser and this is the easier way than copying the interface all over the place.
void(* setDebugListener )(struct ANTLR3_PARSER_struct *parser, pANTLR3_DEBUG_EVENT_LISTENER dbg)
A pointer to a function that installs a debugger object (it also installs the debugging versions of the parser methods.
void(* setTokenStream )(struct ANTLR3_PARSER_struct *parser, pANTLR3_TOKEN_STREAM)
A pointer to a function that installs a token stream for the parser.
void * super
All superstructure implementers of this interface require a pointer to their selves, which they can reference using the super pointer here.
pANTLR3_TOKEN_STREAM tstream
A provider of a tokenstream interface, for the parser to consume tokens from.

Detailed Description

This is the main interface for an ANTLR3 parser.

Field Documentation

void(* ANTLR3_PARSER_struct::free)(struct ANTLR3_PARSER_struct *parser)

Pointer to a function that knows how to free resources of an ANTLR3 parser.

Referenced by antlr3ParserNew().

pANTLR3_TOKEN_STREAM(* ANTLR3_PARSER_struct::getTokenStream)(struct ANTLR3_PARSER_struct *parser)

A pointer to a function that returns the token stream for this parser.

Referenced by antlr3ParserNew().

pANTLR3_BASE_RECOGNIZER ANTLR3_PARSER_struct::rec

A pointer to the base recognizer, where most of the parser functions actually live because they are shared between parser and tree parser and this is the easier way than copying the interface all over the place. Macros hide this for the generated code so it is easier on the eye (though not the debugger ;-).

Referenced by antlr3ParserNew(), freeParser(), setDebugListener(), and setTokenStream().

void(* ANTLR3_PARSER_struct::setDebugListener)(struct ANTLR3_PARSER_struct *parser, pANTLR3_DEBUG_EVENT_LISTENER dbg)

A pointer to a function that installs a debugger object (it also installs the debugging versions of the parser methods. This means that a non debug parser incurs no overhead because of the debugging stuff.

Referenced by antlr3ParserNew(), and antlr3ParserNewStreamDbg().

void(* ANTLR3_PARSER_struct::setTokenStream)(struct ANTLR3_PARSER_struct *parser, pANTLR3_TOKEN_STREAM)

A pointer to a function that installs a token stream for the parser.

Referenced by antlr3ParserNew(), and antlr3ParserNewStream().

void* ANTLR3_PARSER_struct::super

All superstructure implementers of this interface require a pointer to their selves, which they can reference using the super pointer here.

pANTLR3_TOKEN_STREAM ANTLR3_PARSER_struct::tstream

A provider of a tokenstream interface, for the parser to consume tokens from.

Referenced by alreadyParsedRule(), antlr3RecognitionExceptionNew(), consumeUntil(), consumeUntilSet(), displayRecognitionError(), getTokenStream(), match(), matchAny(), memoize(), mismatch(), recover(), recoverFromMismatchedElement(), recoverFromMismatchedSet(), recoverFromMismatchedToken(), setDebugListener(), setTokenStream(), and synpred().

Author

Generated automatically by Doxygen for ANTLR3C from the source code.