14#ifndef __DLINEAR_SMT2_SCANNER_H__
15#define yyFlexLexer Smt2FlexLexer
20#ifdef DLINEAR_PYDLINEAR
21#include "pydlinear/interrupt.h"
24#include "dlinear/parser/smt2/Sort.h"
25#include "dlinear/parser/smt2/Term.h"
26#include "dlinear/symbolic/symbolic.h"
27#include "dlinear/util/Box.h"
30#include "dlinear/parser/smt2/parser.yy.hpp"
48 explicit Smt2Scanner(std::istream *arg_yyin =
nullptr, std::ostream *arg_yyout =
nullptr);
63 virtual Smt2Parser::token_type
lex(Smt2Parser::semantic_type *yylval, Smt2Parser::location_type *yylloc);
Smt2Scanner is a derived class to add some extra function to the scanner class.
void set_debug(bool b)
Enable debug output (via arg_yyout) if compiled into the scanner.
Smt2Scanner(std::istream *arg_yyin=nullptr, std::ostream *arg_yyout=nullptr)
Create a new scanner object.
virtual Smt2Parser::token_type lex(Smt2Parser::semantic_type *yylval, Smt2Parser::location_type *yylloc)
This is the main lexing function.
~Smt2Scanner() override
Required for virtual functions.
Namespace for the SMT2 parser of the dlinear library.