Loading...
Searching...
No Matches
parser Class Reference

Lemon parser interface for patch expressions grammar. More...

#include <patchExprParser.H>

Public Member Functions

 parser ()
 Construct null.
 ~parser ()
 Destructor, deletes parser backend.
void start (parseDriver &driver_)
 Start parsing, with the given driver context.
void stop ()
 Stop parsing, freeing the allocated 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.

Static Public Member Functions

static word tokenName (int tokenId)
 Return the text name corresponding to the tokenId.
static void printTokenNames (Ostream &os)
 Print all token names.
static void printRules (Ostream &os)
 Print all rules.

Public Attributes

int debug
 Local object debugging.

Detailed Description

Lemon parser interface for patch expressions grammar.

Definition at line 44 of file patchExprParser.H.

Constructor & Destructor Documentation

◆ parser()

parser ( )
inline

Construct null.

Definition at line 72 of file patchExprParser.H.

References debug.

◆ ~parser()

~parser ( )
inline

Destructor, deletes parser backend.

Definition at line 78 of file patchExprParser.H.

References stop().

Here is the call graph for this function:

Member Function Documentation

◆ tokenName()

word tokenName ( int tokenId)
static

Return the text name corresponding to the tokenId.

◆ printTokenNames()

void printTokenNames ( Ostream & os)
static

Print all token names.

References os().

Here is the call graph for this function:

◆ printRules()

void printRules ( Ostream & os)
static

Print all rules.

References os().

Here is the call graph for this function:

◆ start()

void start ( parseDriver & driver_)

Start parsing, with the given driver context.

◆ stop()

void stop ( )

Stop parsing, freeing the allocated parser.

Referenced by ~parser().

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.

Referenced by parser().


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