scanner Class Reference

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

Public Member Functions

 scanner (bool withDebug=false)
 Construct null, 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 patch expressions.

Note
Ragel code generated with the ./createCode script.

Definition at line 68 of file fieldExprScanner.H.

Constructor & Destructor Documentation

◆ scanner()

scanner ( bool  withDebug = false)
inlineexplicit

Construct null, optionally setting debugging.

Definition at line 107 of file fieldExprScanner.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 134 of file fieldExprScanner.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 143 of file fieldExprScanner.H.

References scanner::process().

Here is the call graph for this function:

Member Data Documentation

◆ debug

int debug

Local debugging.

Definition at line 101 of file fieldExprScanner.H.

Referenced by scanner::scanner().


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