abacus/src/parse/parser-driver.hh
Bruno BELANYI 171ef10a6d
All checks were successful
continuous-integration/drone/push Build is passing
abacus: fix include directories
This cleans up one of my major pain points with the Meson way of doing
things.

The Meson solution to have nice includes would have been to create an
`include/<name>` directory per library I create...
2021-09-01 19:43:02 +02:00

37 lines
624 B
C++

#pragma once
#include <string>
#include "parser.hh"
#include "bignum/bignum.hh"
namespace abacus::parse {
class ParserDriver {
public:
using numeric_type = abacus::bignum::BigNum;
ParserDriver();
int parse(std::string filename);
void scan_open();
void scan_close();
yy::location& location();
yy::location const& location() const;
numeric_type& result();
numeric_type const& result() const;
private:
numeric_type result_{0};
std::string filename_{};
yy::location current_location_{};
bool parse_trace_p_;
bool scan_trace_p_;
};
} // namespace abacus::parse