GME  13
Classes | Defines | Typedefs
AParser.h File Reference

Go to the source code of this file.

Classes

struct  _zzjmp_buf
struct  ANTLRParserState
class  ANTLRParser

Defines

#define NLA   (token_type[lap&(LLk-1)])/* --> next LA */
#define EXT_WORDSIZE   (sizeof(char)*8)
#define EXT_LOGWORDSIZE   3
#define zzUSER_GUESS_HOOK(seqFrozen, zzrv)
#define zzUSER_GUESS_DONE_HOOK(seqFrozen)
#define zzGUESS_BLOCK   ANTLRParserState zzst; int zzrv; int _marker; int zzGuessSeqFrozen;
#define zzNON_GUESS_MODE   if ( !guessing )
#define zzGUESS_FAIL   guess_fail();
#define zzGUESS_DONE   {zzrv=1; inputTokens->rewind(_marker); guess_done(&zzst);zzUSER_GUESS_DONE_HOOK(zzGuessSeqFrozen) }
#define zzGUESS
#define zzTRACEdata
#define zzTRACEIN(r)   zzTracePrevRuleName=traceCurrentRuleName;tracein(r);
#define zzTRACEOUT(r)   traceout(r);traceCurrentRuleName=zzTracePrevRuleName;
#define zzmatch(_t)
#define zzmatch_wsig(_t, handler)   if ( !_match_wsig((ANTLRTokenType)_t) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;}
#define zzsetmatch(_ts)
#define zzsetmatch_wsig(_ts, handler)   if ( !_setmatch_wsig(_ts) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;}
#define zzsetmatch_wdfltsig(tokensWanted, tokenTypeOfSet, whatFollows)
#define zzmatch_wdfltsig(tokenWanted, whatFollows)   if ( !_match_wdfltsig(tokenWanted, whatFollows) ) _signal = MismatchedToken;
#define zzfailed_pred(_p)
#define zzRULE
#define NoSignal   0
#define MismatchedToken   1
#define NoViableAlt   2
#define NoSemViableAlt   3
#define Unwind   4
#define setSignal(newValue)   *_retsignal=_signal=(newValue)
#define suppressSignal   *_retsignal=_signal=0
#define exportSignal   *_retsignal=_signal

Typedefs

typedef unsigned char SetWordType
typedef struct _zzjmp_buf zzjmp_buf

Define Documentation

#define exportSignal   *_retsignal=_signal

Definition at line 334 of file AParser.h.

#define EXT_LOGWORDSIZE   3

Definition at line 57 of file AParser.h.

#define EXT_WORDSIZE   (sizeof(char)*8)

Definition at line 56 of file AParser.h.

#define MismatchedToken   1

Definition at line 324 of file AParser.h.

#define NLA   (token_type[lap&(LLk-1)])/* --> next LA */

Definition at line 51 of file AParser.h.

#define NoSemViableAlt   3

Definition at line 326 of file AParser.h.

#define NoSignal   0

Definition at line 323 of file AParser.h.

#define NoViableAlt   2

Definition at line 325 of file AParser.h.

#define setSignal (   newValue)    *_retsignal=_signal=(newValue)

Definition at line 332 of file AParser.h.

#define suppressSignal   *_retsignal=_signal=0

Definition at line 333 of file AParser.h.

#define Unwind   4

Definition at line 331 of file AParser.h.

#define zzfailed_pred (   _p)
Value:
if (guessing) { \
    zzGUESS_FAIL; \
  } else { \
    fprintf(stdout,"line %d: semantic error; failed predicate: '%s'\n", \
        LT(1)->getLine(), _p); \
  }

Definition at line 303 of file AParser.h.

#define zzGUESS
Value:
saveState(&zzst); \
                                                        guessing = 1; \
                            zzGuessSeqFrozen = ++zzGuessSeq; \
                                                        _marker = inputTokens->mark(); \
                                                        zzrv = setjmp(guess_start.state); \
                            zzUSER_GUESS_HOOK(zzGuessSeqFrozen,zzrv) \
                                                    if ( zzrv ) zzGUESS_DONE

Definition at line 78 of file AParser.h.

#define zzGUESS_BLOCK   ANTLRParserState zzst; int zzrv; int _marker; int zzGuessSeqFrozen;

Definition at line 74 of file AParser.h.

#define zzGUESS_DONE   {zzrv=1; inputTokens->rewind(_marker); guess_done(&zzst);zzUSER_GUESS_DONE_HOOK(zzGuessSeqFrozen) }

Definition at line 77 of file AParser.h.

#define zzGUESS_FAIL   guess_fail();

Definition at line 76 of file AParser.h.

#define zzmatch (   _t)
Value:
if ( !_match((ANTLRTokenType)_t, &zzMissText, &zzMissTok, \
                                 (_ANTLRTokenPtr *) &zzBadTok, &zzMissSet) ) goto fail;

Definition at line 269 of file AParser.h.

#define zzmatch_wdfltsig (   tokenWanted,
  whatFollows 
)    if ( !_match_wdfltsig(tokenWanted, whatFollows) ) _signal = MismatchedToken;

Definition at line 294 of file AParser.h.

#define zzmatch_wsig (   _t,
  handler 
)    if ( !_match_wsig((ANTLRTokenType)_t) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;}

Definition at line 273 of file AParser.h.

#define zzNON_GUESS_MODE   if ( !guessing )

Definition at line 75 of file AParser.h.

#define zzRULE
Value:
SetWordType *zzMissSet=NULL; ANTLRTokenType zzMissTok=(ANTLRTokenType)0;        \
                _ANTLRTokenPtr zzBadTok=NULL; ANTLRChar *zzBadText=(ANTLRChar *)"";     \
                int zzErrk=1,zzpf=0; \
        zzTRACEdata \
                ANTLRChar *zzMissText=(ANTLRChar *)"";

Definition at line 312 of file AParser.h.

#define zzsetmatch (   _ts)
Value:
if ( !_setmatch(_ts, &zzMissText, &zzMissTok, \
                                 (_ANTLRTokenPtr *) &zzBadTok, &zzMissSet) ) goto fail;

Definition at line 276 of file AParser.h.

#define zzsetmatch_wdfltsig (   tokensWanted,
  tokenTypeOfSet,
  whatFollows 
)
Value:
if ( !_setmatch_wdfltsig(tokensWanted, tokenTypeOfSet, whatFollows) ) \
                _signal = MismatchedToken;

Definition at line 290 of file AParser.h.

#define zzsetmatch_wsig (   _ts,
  handler 
)    if ( !_setmatch_wsig(_ts) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;}

Definition at line 280 of file AParser.h.

#define zzTRACEdata

Definition at line 87 of file AParser.h.

#define zzTRACEIN (   r)    zzTracePrevRuleName=traceCurrentRuleName;tracein(r);

Definition at line 95 of file AParser.h.

#define zzTRACEOUT (   r)    traceout(r);traceCurrentRuleName=zzTracePrevRuleName;

Definition at line 98 of file AParser.h.

#define zzUSER_GUESS_DONE_HOOK (   seqFrozen)

Definition at line 66 of file AParser.h.

#define zzUSER_GUESS_HOOK (   seqFrozen,
  zzrv 
)

Definition at line 62 of file AParser.h.


Typedef Documentation

typedef unsigned char SetWordType

Definition at line 53 of file AParser.h.

typedef struct _zzjmp_buf zzjmp_buf