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.
#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 |