#include <apr_scanner.h>
◆ Scanner()
SEAMS::Scanner::Scanner |
( |
Aprepro & | aprepro_yyarg, |
|
|
std::istream * | in = nullptr, |
|
|
std::ostream * | out = nullptr ) |
|
explicit |
Create a new scanner object. The streams arg_yyin and arg_yyout default to cin and cout, but that assignment is only made when initializing in yylex().
◆ ~Scanner()
SEAMS::Scanner::~Scanner |
( |
| ) |
|
|
override |
Required for virtual functions
◆ add_include_file()
bool SEAMS::Scanner::add_include_file |
( |
const std::string & | filename, |
|
|
bool | must_exist ) |
◆ case_handler()
char * SEAMS::Scanner::case_handler |
( |
double | x | ) |
|
◆ elseif_handler()
char * SEAMS::Scanner::elseif_handler |
( |
double | x | ) |
|
◆ execute()
char * SEAMS::Scanner::execute |
( |
char * | string | ) |
|
◆ if_handler()
char * SEAMS::Scanner::if_handler |
( |
double | x | ) |
|
◆ import_handler()
char * SEAMS::Scanner::import_handler |
( |
char * | string | ) |
|
◆ lex()
This is the main lexing function. It is generated by flex according to the macro declaration YY_DECL above. The generated bison parser then calls this virtual function to fetch new tokens.
◆ LexerInput()
int SEAMS::Scanner::LexerInput |
( |
char * | buf, |
|
|
int | max_size ) |
|
overridevirtual |
◆ LexerOutput()
void SEAMS::Scanner::LexerOutput |
( |
const char * | buf, |
|
|
int | size ) |
|
overridevirtual |
◆ rescan()
char * SEAMS::Scanner::rescan |
( |
char * | string | ) |
|
◆ save_history_string()
void SEAMS::Scanner::save_history_string |
( |
| ) |
|
◆ set_debug()
void SEAMS::Scanner::set_debug |
( |
bool | b | ) |
|
Enable debug output (via arg_yyout) if compiled into the scanner.
◆ switch_handler()
char * SEAMS::Scanner::switch_handler |
( |
double | x | ) |
|
◆ yyerror()
void SEAMS::Scanner::yyerror |
( |
const char * | s | ) |
|
◆ yywrap()
int SEAMS::Scanner::yywrap |
( |
| ) |
|
|
overridevirtual |
◆ Parser
◆ aprepro
class Aprepro& SEAMS::Scanner::aprepro |
The documentation for this class was generated from the following file: