15#ifndef __DLINEAR_MPS_SCANNER_H__
16#define yyFlexLexer MpsFlexLexer
21#ifdef DLINEAR_PYDLINEAR
22#include "pydlinear/interrupt.h"
25#include "dlinear/parser/mps/BoundType.h"
26#include "dlinear/parser/mps/Sense.h"
29#include "dlinear/parser/mps/parser.yy.hpp"
47 explicit MpsScanner(std::istream *arg_yyin =
nullptr, std::ostream *arg_yyout =
nullptr);
62 virtual MpsParser::token_type
lex(MpsParser::semantic_type *yylval, MpsParser::location_type *yylloc);
MpsScanner is a derived class to add some extra function to the scanner class.
~MpsScanner() override
Required for virtual functions.
virtual MpsParser::token_type lex(MpsParser::semantic_type *yylval, MpsParser::location_type *yylloc)
This is the main lexing function.
MpsScanner(std::istream *arg_yyin=nullptr, std::ostream *arg_yyout=nullptr)
Create a new scanner object.
void set_debug(bool b)
Enable debug output (via arg_yyout) if compiled into the scanner.
Namespace for the MPS parser of the dlinear library.