Lemon parser interface for volume expressions grammar. More...
Public Member Functions | |
parser () | |
Construct null. More... | |
~parser () | |
Destructor, deletes parser backend. More... | |
void | start (parseDriver &driver_) |
Start parsing, with the given driver context. More... | |
void | stop () |
Stop parsing, freeing the allocated parser. More... | |
void | parse (int tokenId) |
Push token type to parser with default token. More... | |
void | parse (int tokenId, scanToken tok) |
Push token type/value to parser. More... | |
Static Public Member Functions | |
static word | tokenName (int tokenId) |
Return the text name corresponding to the tokenId. More... | |
static void | printTokenNames (Ostream &os) |
Print all token names. More... | |
static void | printRules (Ostream &os) |
Print all rules. More... | |
Public Attributes | |
int | debug |
Local object debugging. More... | |
Lemon parser interface for volume expressions grammar.
Definition at line 44 of file volumeExprParser.H.
|
inline |
Construct null.
Definition at line 72 of file volumeExprParser.H.
|
inline |
Destructor, deletes parser backend.
Definition at line 78 of file volumeExprParser.H.
References parser::stop().
|
static |
Return the text name corresponding to the tokenId.
|
static |
Print all token names.
|
static |
Print all rules.
void start | ( | parseDriver & | driver_ | ) |
Start parsing, with the given driver context.
void stop | ( | ) |
Stop parsing, freeing the allocated parser.
Referenced by parser::~parser().
void parse | ( | int | tokenId | ) |
Push token type to parser with default token.
void parse | ( | int | tokenId, |
scanToken | tok | ||
) |
Push token type/value to parser.
int debug |
Local object debugging.
Definition at line 64 of file volumeExprParser.H.