torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
torc::LutScanner Class Reference

#include <LutScanner.hpp>

+ Inheritance diagram for torc::LutScanner:
+ Collaboration diagram for torc::LutScanner:

Public Member Functions

 LutScanner (std::istream *arg_yyin=0, std::ostream *arg_yyout=0)
 Public constructor. More...
 
virtual ~LutScanner ()
 Virtual destructor. More...
 
virtual LutParser::token_type lex (LutParser::semantic_type *yylval, LutParser::location_type *yylloc)
 Main scanning function. More...
 
void set_debug (bool b)
 Enables or disables debugging output. More...
 

Protected Attributes

bool in_double_quote
 Flag to track whether we are inside a double quote. More...
 
int colon
 Flag to count the number of separator colons seen. More...
 
std::string last_string
 Last double-quoted string that we saw. More...
 

Friends

class LutParser
 The Lut parser has full access to our internals. More...
 

Detailed Description

Definition at line 45 of file LutScanner.hpp.

Constructor & Destructor Documentation

torc::LutScanner::LutScanner ( std::istream *  arg_yyin = 0,
std::ostream *  arg_yyout = 0 
)

Public constructor.

Scans the input stream for tokens, and sends any output to the output stream.

Parameters
arg_yyinThe input stream.
arg_yyoutThe output stream.

Definition at line 1652 of file LutScanner.cpp.

1652 : LutFlexLexer(in, out) {}
torc::LutScanner::~LutScanner ( )
virtual

Virtual destructor.

Definition at line 1654 of file LutScanner.cpp.

1654 {}

Member Function Documentation

virtual LutParser::token_type torc::LutScanner::lex ( LutParser::semantic_type yylval,
LutParser::location_type yylloc 
)
virtual

Main scanning function.

void torc::LutScanner::set_debug ( bool  b)

Enables or disables debugging output.

Definition at line 1656 of file LutScanner.cpp.

1656  {
1657  yy_flex_debug = b;
1658  }

+ Here is the caller graph for this function:

Friends And Related Function Documentation

friend class LutParser
friend

The Lut parser has full access to our internals.

Definition at line 65 of file LutScanner.hpp.

Field Documentation

int torc::LutScanner::colon
protected

Flag to count the number of separator colons seen.

Definition at line 70 of file LutScanner.hpp.

bool torc::LutScanner::in_double_quote
protected

Flag to track whether we are inside a double quote.

Definition at line 68 of file LutScanner.hpp.

std::string torc::LutScanner::last_string
protected

Last double-quoted string that we saw.

Definition at line 72 of file LutScanner.hpp.


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