ANTLR3_PARSER_struct Struct Reference

#include <antlr3parser.h>

Collaboration diagram for ANTLR3_PARSER_struct:

Collaboration graph
[legend]

Detailed Description

This is the main interface for an ANTLR3 parser.

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.

Field Documentation

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

Referenced by antlr3ParserNew().

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

Referenced by antlr3ParserNew().

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

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

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

Referenced by antlr3ParserNew(), and antlr3ParserNewStream().

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


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

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