abacus: parse: activate debug using ENV

This commit is contained in:
Bruno BELANYI 2021-08-22 23:57:54 +02:00
parent 6989d5209f
commit 2d437a2583
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,9 @@
namespace abacus::parse {
ParserDriver::ParserDriver() = default;
ParserDriver::ParserDriver()
: parse_trace_p_(std::getenv("PARSE")), scan_trace_p_(std::getenv("SCAN")) {
}
int ParserDriver::parse(std::string filename) {
filename_ = std::move(filename);

View file

@ -29,8 +29,8 @@ private:
numeric_type result_{0};
std::string filename_{};
yy::location current_location_{};
bool parse_trace_p_ = false;
bool scan_trace_p_ = false;
bool parse_trace_p_;
bool scan_trace_p_;
};
} // namespace abacus::parse