casa
5.7.0-16
|
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. More... | |
~ds9lex () | |
virtual ds9parse::token_type | lex (ds9parse::semantic_type *yylval, ds9parse::location_type *) |
This is the main lexing function. More... | |
void | begin (int, int) |
void | set_debug (bool b) |
Enable debug output (via arg_yyout) if compiled into the scanner. More... | |
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.
|
inline |
void casa::viewer::ds9lex::begin | ( | int | , |
int | |||
) |
void casa::viewer::ds9lex::discard | ( | int | ) |
|
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.