scanner Class Reference

Ragel lexer/scanner interface for volume expressions. More...

Public Member Functions

 scanner (bool withDebug=false)
 Default construct, optionally setting debugging. More...
 
 ~scanner ()
 Destructor, deletes parser. More...
 
bool process (const std::string &str, size_t pos, size_t len, parseDriver &driver_)
 Evaluate sub-string. More...
 
bool process (const std::string &str, size_t pos, parseDriver &driver_)
 Evaluate sub-string. More...
 
bool process (const std::string &str, parseDriver &driver_)
 Evaluate string. More...
 

Public Attributes

int debug
 Local debugging. More...
 

Detailed Description

Ragel lexer/scanner interface for volume expressions.

Note
Ragel code generated with the ./createCode script.

Definition at line 53 of file volumeExprScanner.H.

Constructor & Destructor Documentation

◆ scanner()

scanner ( bool  withDebug = false)
inlineexplicit

Default construct, optionally setting debugging.

Definition at line 90 of file volumeExprScanner.H.

References scanner::debug.

◆ ~scanner()

~scanner ( )

Destructor, deletes parser.

Member Function Documentation

◆ process() [1/3]

bool process ( const std::string &  str,
size_t  pos,
size_t  len,
parseDriver driver_ 
)

Evaluate sub-string.

Referenced by parseDriver::parse(), and scanner::process().

Here is the caller graph for this function:

◆ process() [2/3]

bool process ( const std::string &  str,
size_t  pos,
parseDriver driver_ 
)
inline

Evaluate sub-string.

Definition at line 116 of file volumeExprScanner.H.

References Foam::pos(), and scanner::process().

Here is the call graph for this function:

◆ process() [3/3]

bool process ( const std::string &  str,
parseDriver driver_ 
)
inline

Evaluate string.

Definition at line 126 of file volumeExprScanner.H.

References scanner::process().

Here is the call graph for this function:

Member Data Documentation

◆ debug

int debug

Local debugging.

Definition at line 84 of file volumeExprScanner.H.

Referenced by scanner::scanner().


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