9 dreal::DrParser::token_type dreal::DrScanner::lex( \ 10 dreal::DrParser::semantic_type* yylval, \ 11 dreal::DrParser::location_type* yylloc) 14 #ifndef __FLEX_LEXER_H 15 #define yyFlexLexer DrFlexLexer 16 #include <FlexLexer.h> 24 #include "dreal/dr/parser.yy.hh" 39 explicit DrScanner(std::istream* arg_yyin =
nullptr,
40 std::ostream* arg_yyout =
nullptr);
56 virtual DrParser::token_type
lex(DrParser::semantic_type* yylval,
57 DrParser::location_type* yylloc);
virtual DrParser::token_type lex(DrParser::semantic_type *yylval, DrParser::location_type *yylloc)
This is the main lexing function.
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9
~DrScanner() override
Required for virtual functions.
void set_debug(bool b)
Enable debug output (via arg_yyout) if compiled into the scanner.
DrScanner(std::istream *arg_yyin=nullptr, std::ostream *arg_yyout=nullptr)
Create a new scanner object.
This is the header file that we consolidate Drake's symbolic classes and expose them inside of dreal ...
DrScanner is a derived class to add some extra function to the scanner class.
Definition: scanner.h:34