GME
13
|
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 exportSignal *_retsignal=_signal |
#define EXT_LOGWORDSIZE 3 |
#define EXT_WORDSIZE (sizeof(char)*8) |
#define MismatchedToken 1 |
#define NoSemViableAlt 3 |
#define NoViableAlt 2 |
#define setSignal | ( | newValue | ) | *_retsignal=_signal=(newValue) |
#define suppressSignal *_retsignal=_signal=0 |
#define zzfailed_pred | ( | _p | ) |
#define zzGUESS |
saveState(&zzst); \ guessing = 1; \ zzGuessSeqFrozen = ++zzGuessSeq; \ _marker = inputTokens->mark(); \ zzrv = setjmp(guess_start.state); \ zzUSER_GUESS_HOOK(zzGuessSeqFrozen,zzrv) \ if ( zzrv ) zzGUESS_DONE
#define zzGUESS_BLOCK ANTLRParserState zzst; int zzrv; int _marker; int zzGuessSeqFrozen; |
#define zzGUESS_DONE {zzrv=1; inputTokens->rewind(_marker); guess_done(&zzst);zzUSER_GUESS_DONE_HOOK(zzGuessSeqFrozen) } |
#define zzGUESS_FAIL guess_fail(); |
#define zzmatch | ( | _t | ) |
if ( !_match((ANTLRTokenType)_t, &zzMissText, &zzMissTok, \ (_ANTLRTokenPtr *) &zzBadTok, &zzMissSet) ) goto fail;
#define zzmatch_wdfltsig | ( | tokenWanted, | |
whatFollows | |||
) | if ( !_match_wdfltsig(tokenWanted, whatFollows) ) _signal = MismatchedToken; |
#define zzmatch_wsig | ( | _t, | |
handler | |||
) | if ( !_match_wsig((ANTLRTokenType)_t) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;} |
#define zzNON_GUESS_MODE if ( !guessing ) |
#define zzRULE |
SetWordType *zzMissSet=NULL; ANTLRTokenType zzMissTok=(ANTLRTokenType)0; \ _ANTLRTokenPtr zzBadTok=NULL; ANTLRChar *zzBadText=(ANTLRChar *)""; \ int zzErrk=1,zzpf=0; \ zzTRACEdata \ ANTLRChar *zzMissText=(ANTLRChar *)"";
#define zzsetmatch | ( | _ts | ) |
if ( !_setmatch(_ts, &zzMissText, &zzMissTok, \ (_ANTLRTokenPtr *) &zzBadTok, &zzMissSet) ) goto fail;
#define zzsetmatch_wdfltsig | ( | tokensWanted, | |
tokenTypeOfSet, | |||
whatFollows | |||
) |
if ( !_setmatch_wdfltsig(tokensWanted, tokenTypeOfSet, whatFollows) ) \ _signal = MismatchedToken;
#define zzsetmatch_wsig | ( | _ts, | |
handler | |||
) | if ( !_setmatch_wsig(_ts) ) if ( guessing ) zzGUESS_FAIL else {_signal=MismatchedToken; goto handler;} |
#define zzTRACEdata |
#define zzTRACEIN | ( | r | ) | zzTracePrevRuleName=traceCurrentRuleName;tracein(r); |
#define zzTRACEOUT | ( | r | ) | traceout(r);traceCurrentRuleName=zzTracePrevRuleName; |
#define zzUSER_GUESS_DONE_HOOK | ( | seqFrozen | ) |
#define zzUSER_GUESS_HOOK | ( | seqFrozen, | |
zzrv | |||
) |
typedef unsigned char SetWordType |
typedef struct _zzjmp_buf zzjmp_buf |