parser Class Reference

Lemon parser interface for patch 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, scanToken *tokenVal)
 Push token/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...
 

Detailed Description

Lemon parser interface for patch expressions grammar.

Definition at line 49 of file patchExprParser.H.

Constructor & Destructor Documentation

◆ parser()

parser ( )
inline

Construct null.

Definition at line 69 of file patchExprParser.H.

◆ ~parser()

~parser ( )
inline

Destructor, deletes parser backend.

Definition at line 73 of file patchExprParser.H.

References parser::stop().

Here is the call graph for this function:

Member Function Documentation

◆ tokenName()

static word tokenName ( int  tokenId)
static

Return the text name corresponding to the tokenId.

◆ printTokenNames()

static void printTokenNames ( Ostream os)
static

Print all token names.

◆ printRules()

static void printRules ( Ostream os)
static

Print all rules.

◆ start()

void start ( parseDriver driver_)

Start parsing, with the given driver context.

◆ stop()

void stop ( )

Stop parsing, freeing the allocated parser.

Referenced by parser::~parser().

Here is the caller graph for this function:

◆ parse()

void parse ( int  tokenId,
scanToken tokenVal 
)

Push token/value to parser.

Member Data Documentation

◆ debug

int debug

Local object debugging.

Definition at line 63 of file patchExprParser.H.


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