ANTLR3C
3.3.1
|
While the C runtime does not need to model the state of multiple lexers and parsers in the same way as the Java runtime does it is no overhead to reflect that model. More...
#include <antlr3defs.h>
Data Structures | |
struct | ANTLR3_RECOGNIZER_SHARED_STATE_struct |
All the data elements required to track the current state of any recognizer (lexer, parser, tree parser). More... | |
Typedefs | |
typedef struct ANTLR3_RECOGNIZER_SHARED_STATE_struct | ANTLR3_RECOGNIZER_SHARED_STATE |
All the data elements required to track the current state of any recognizer (lexer, parser, tree parser). |
While the C runtime does not need to model the state of multiple lexers and parsers in the same way as the Java runtime does it is no overhead to reflect that model.
In fact the C runtime has always been able to share recognizer state.
This 'class' therefore defines all the elements of a recognizer (either lexer, parser or tree parser) that are need to track the current recognition state. Multiple recognizers may then share this state, for instance when one grammar imports another.
All the data elements required to track the current state of any recognizer (lexer, parser, tree parser).
May be share between multiple recognizers such that grammar inheritance is easily supported.