casa
$Rev:20696$
|
Scanner is a derived class to add some extra function to the scanner class. More...
#include <ds9lex.h>
Public Member Functions | |
ds9lex (std::istream *yyin=0, std::ostream *yyout=0) | |
Create a new scanner object. | |
~ds9lex () | |
virtual ds9parse::token_type | lex (ds9parse::semantic_type *yylval, ds9parse::location_type *yylloc) |
This is the main lexing function. | |
void | begin (int, int) |
void | set_debug (bool b) |
Enable debug output (via arg_yyout) if compiled into the scanner. | |
void | discard (int) |
Scanner is a derived class to add some extra function to the scanner class.
Flex itself creates a class named yyFlexLexer, which is renamed using macros to ds9lex_FlexLexer. However we change the context of the generated yylex() function to be contained within the ds9lex class. This is required because the yylex() defined in ds9lex_display/ds9/ds9FlexLexer.has no parameters.
casa::viewer::ds9lex::ds9lex | ( | std::istream * | yyin = 0 , |
std::ostream * | yyout = 0 |
||
) | [inline] |
casa::viewer::ds9lex::~ds9lex | ( | ) | [inline] |
void casa::viewer::ds9lex::begin | ( | int | , |
int | |||
) |
void casa::viewer::ds9lex::discard | ( | int | ) |
virtual ds9parse::token_type casa::viewer::ds9lex::lex | ( | ds9parse::semantic_type * | yylval, |
ds9parse::location_type * | yylloc | ||
) | [virtual] |
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.
void casa::viewer::ds9lex::set_debug | ( | bool | b | ) |
Enable debug output (via arg_yyout) if compiled into the scanner.