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)
 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...
 

Detailed Description

Lemon parser interface for patch expressions grammar.

Definition at line 50 of file patchExprParser.H.

Constructor & Destructor Documentation

◆ parser()

parser ( )
inline

Construct null.

Definition at line 70 of file patchExprParser.H.

◆ ~parser()

~parser ( )
inline

Destructor, deletes parser backend.

Definition at line 74 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(), and Time::~Time().

Here is the caller graph for this function:

◆ parse() [1/2]

void parse ( int  tokenId)

Push token type to parser with default token.

◆ parse() [2/2]

void parse ( int  tokenId,
scanToken  tok 
)

Push token type/value to parser.

Member Data Documentation

◆ debug

int debug

Local object debugging.

Definition at line 64 of file patchExprParser.H.


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