GME  13
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes
ANTLRParser Class Reference

#include <AParser.h>

Collaboration diagram for ANTLRParser:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ANTLRParser (ANTLRTokenBuffer *, int k=1, int use_inf_look=0, int demand_look=0, int bsetsize=1)
virtual ~ANTLRParser ()
virtual void init ()
ANTLRTokenType LA (int i)
_ANTLRTokenPtr LT (int i)
void setEofToken (ANTLRTokenType t)
void noGarbageCollectTokens ()
void garbageCollectTokens ()
virtual void syn (_ANTLRTokenPtr tok, ANTLRChar *egroup, SetWordType *eset, ANTLRTokenType etok, int k)
virtual void saveState (ANTLRParserState *)
virtual void restoreState (ANTLRParserState *)
virtual void panic (char *msg)
void consumeUntil (SetWordType *st)
void consumeUntilToken (int t)
virtual int _setmatch_wdfltsig (SetWordType *tokensWanted, ANTLRTokenType tokenTypeOfSet, SetWordType *whatFollows)
virtual int _match_wdfltsig (ANTLRTokenType tokenWanted, SetWordType *whatFollows)
const ANTLRCharparserTokenName (int tok)
int traceOption (int delta)
int traceGuessOption (int delta)
ANTLRTokenStreamgetLexer () const

Static Public Member Functions

static char * eMsgd (char *, int)
static char * eMsg (char *, char *)
static char * eMsg2 (char *, char *, char *)

Public Attributes

int traceOptionValueDefault
int syntaxErrCount

Protected Member Functions

virtual void guess_fail ()
virtual void guess_done (ANTLRParserState *st)
virtual int guess (ANTLRParserState *)
void look (int)
int _match (ANTLRTokenType, ANTLRChar **, ANTLRTokenType *, _ANTLRTokenPtr *, SetWordType **)
int _setmatch (SetWordType *, ANTLRChar **, ANTLRTokenType *, _ANTLRTokenPtr *, SetWordType **)
int _match_wsig (ANTLRTokenType)
int _setmatch_wsig (SetWordType *)
virtual void consume ()
void resynch (SetWordType *wd, SetWordType mask)
void prime_lookahead ()
virtual void tracein (const ANTLRChar *r)
virtual void traceout (const ANTLRChar *r)
int set_deg (SetWordType *)
int set_el (ANTLRTokenType, SetWordType *)
virtual void edecode (SetWordType *)
virtual void FAIL (int k,...)
void traceReset ()
virtual void traceGuessFail ()
virtual void traceGuessDone (const ANTLRParserState *)

Static Protected Member Functions

static unsigned MODWORD (unsigned x)
static unsigned DIVWORD (unsigned x)

Protected Attributes

int LLk
int demand_look
ANTLRTokenType eofToken
int bsetsize
ANTLRTokenBufferinputTokens
zzjmp_buf guess_start
int guessing
int can_use_inf_look
int inf_lap
int inf_labase
int inf_last
int_inf_line
ANTLRChar ** token_tbl
int dirty
ANTLRTokenTypetoken_type
int lap
int labase
int traceOptionValue
int traceGuessOptionValue
const ANTLRChartraceCurrentRuleName
int traceDepth
int zzGuessSeq
int resynchConsumed
char * zzFAILtext

Static Protected Attributes

static SetWordType bitmask [sizeof(SetWordType)*8]
static char eMsgBuffer [500] = ""

Detailed Description

Definition at line 138 of file AParser.h.


Constructor & Destructor Documentation

ANTLRParser::ANTLRParser ( ANTLRTokenBuffer _inputTokens,
int  k = 1,
int  use_inf_look = 0,
int  demand_look = 0,
int  bsetsize = 1 
)

Definition at line 79 of file AParser.cpp.

Definition at line 73 of file AParser.cpp.


Member Function Documentation

int ANTLRParser::_match ( ANTLRTokenType  _t,
ANTLRChar **  MissText,
ANTLRTokenType MissTok,
_ANTLRTokenPtr BadTok,
SetWordType **  MissSet 
) [protected]

Definition at line 246 of file AParser.cpp.

int ANTLRParser::_match_wdfltsig ( ANTLRTokenType  tokenWanted,
SetWordType whatFollows 
) [virtual]

Definition at line 534 of file AParser.cpp.

Definition at line 268 of file AParser.cpp.

int ANTLRParser::_setmatch ( SetWordType tset,
ANTLRChar **  MissText,
ANTLRTokenType MissTok,
_ANTLRTokenPtr BadTok,
SetWordType **  MissSet 
) [protected]

Definition at line 285 of file AParser.cpp.

int ANTLRParser::_setmatch_wdfltsig ( SetWordType tokensWanted,
ANTLRTokenType  tokenTypeOfSet,
SetWordType whatFollows 
) [virtual]

Definition at line 559 of file AParser.cpp.

int ANTLRParser::_setmatch_wsig ( SetWordType tset) [protected]

Definition at line 304 of file AParser.cpp.

void ANTLRParser::consume ( ) [protected, virtual]

Definition at line 193 of file AParser.cpp.

Definition at line 321 of file AParser.cpp.

Definition at line 333 of file AParser.cpp.

static unsigned ANTLRParser::DIVWORD ( unsigned  x) [inline, static, protected]

Definition at line 195 of file AParser.h.

void ANTLRParser::edecode ( SetWordType a) [protected, virtual]

Definition at line 427 of file AParser.cpp.

char * ANTLRParser::eMsg ( char *  err,
char *  s 
) [static]

Definition at line 591 of file AParser.cpp.

char * ANTLRParser::eMsg2 ( char *  err,
char *  s,
char *  t 
) [static]

Definition at line 598 of file AParser.cpp.

char * ANTLRParser::eMsgd ( char *  err,
int  d 
) [static]

Definition at line 584 of file AParser.cpp.

void ANTLRParser::FAIL ( int  k,
  ... 
) [protected, virtual]

Definition at line 459 of file AParser.cpp.

Definition at line 229 of file AParser.h.

Definition at line 261 of file AParser.h.

int ANTLRParser::guess ( ANTLRParserState st) [protected, virtual]

Definition at line 129 of file AParser.cpp.

virtual void ANTLRParser::guess_done ( ANTLRParserState st) [inline, protected, virtual]

Definition at line 179 of file AParser.h.

virtual void ANTLRParser::guess_fail ( ) [inline, protected, virtual]

Definition at line 176 of file AParser.h.

void ANTLRParser::init ( ) [virtual]

Definition at line 113 of file AParser.cpp.

Definition at line 219 of file AParser.h.

void ANTLRParser::look ( int  k) [protected]

Definition at line 221 of file AParser.cpp.

Definition at line 206 of file AParser.cpp.

static unsigned ANTLRParser::MODWORD ( unsigned  x) [inline, static, protected]

Definition at line 194 of file AParser.h.

Definition at line 228 of file AParser.h.

void ANTLRParser::panic ( char *  msg) [virtual]

Definition at line 605 of file AParser.cpp.

void ANTLRParser::prime_lookahead ( ) [protected]

Definition at line 231 of file AParser.cpp.

void ANTLRParser::restoreState ( ANTLRParserState buf) [virtual]

Definition at line 151 of file AParser.cpp.

void ANTLRParser::resynch ( SetWordType wd,
SetWordType  mask 
) [protected]

Definition at line 344 of file AParser.cpp.

void ANTLRParser::saveState ( ANTLRParserState buf) [virtual]

Definition at line 137 of file AParser.cpp.

int ANTLRParser::set_deg ( SetWordType a) [protected]

Definition at line 402 of file AParser.cpp.

int ANTLRParser::set_el ( ANTLRTokenType  b,
SetWordType p 
) [protected]

Definition at line 396 of file AParser.cpp.

Definition at line 226 of file AParser.h.

void ANTLRParser::syn ( _ANTLRTokenPtr  tok,
ANTLRChar egroup,
SetWordType eset,
ANTLRTokenType  etok,
int  k 
) [virtual]

Definition at line 371 of file AParser.cpp.

void ANTLRParser::traceGuessDone ( const ANTLRParserState state) [protected, virtual]

Definition at line 616 of file AParser.cpp.

void ANTLRParser::traceGuessFail ( ) [protected, virtual]

Definition at line 644 of file AParser.cpp.

Definition at line 733 of file AParser.cpp.

void ANTLRParser::tracein ( const ANTLRChar r) [protected, virtual]

Definition at line 665 of file AParser.cpp.

Definition at line 715 of file AParser.cpp.

void ANTLRParser::traceout ( const ANTLRChar r) [protected, virtual]

Definition at line 691 of file AParser.cpp.

void ANTLRParser::traceReset ( ) [protected]

Definition at line 120 of file AParser.cpp.


Member Data Documentation

Definition at line 161 of file AParser.h.

SetWordType ANTLRParser::bitmask [static, protected]
Initial value:
 {
        0x00000001, 0x00000002, 0x00000004, 0x00000008,
        0x00000010, 0x00000020, 0x00000040, 0x00000080
}

Definition at line 141 of file AParser.h.

Definition at line 148 of file AParser.h.

Definition at line 157 of file AParser.h.

Definition at line 146 of file AParser.h.

int ANTLRParser::dirty [protected]

Definition at line 165 of file AParser.h.

char ANTLRParser::eMsgBuffer = "" [static, protected]

Definition at line 142 of file AParser.h.

Definition at line 147 of file AParser.h.

Definition at line 153 of file AParser.h.

Definition at line 154 of file AParser.h.

Definition at line 159 of file AParser.h.

Definition at line 158 of file AParser.h.

Definition at line 160 of file AParser.h.

Definition at line 151 of file AParser.h.

int ANTLRParser::labase [protected]

Definition at line 170 of file AParser.h.

int ANTLRParser::lap [protected]

Definition at line 169 of file AParser.h.

int ANTLRParser::LLk [protected]

Definition at line 145 of file AParser.h.

Definition at line 264 of file AParser.h.

Definition at line 260 of file AParser.h.

Definition at line 163 of file AParser.h.

Definition at line 167 of file AParser.h.

Definition at line 202 of file AParser.h.

Definition at line 203 of file AParser.h.

Definition at line 201 of file AParser.h.

Definition at line 200 of file AParser.h.

Definition at line 252 of file AParser.h.

char* ANTLRParser::zzFAILtext [protected]

Definition at line 265 of file AParser.h.

Definition at line 207 of file AParser.h.


The documentation for this class was generated from the following files: