antlr3recognizersharedstate.h

Langue: en

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

Section: 3 (Bibliothèques de fonctions)

NAME

include/antlr3recognizersharedstate.h -

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.

SYNOPSIS


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

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

Detailed Description

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.

Typedef Documentation

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). May be share between multiple recognizers such that grammar inheritance is easily supported.

Author

Generated automatically by Doxygen for ANTLR3C from the source code.