abacus: parse: activate debug using ENV
This commit is contained in:
parent
6989d5209f
commit
2d437a2583
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
namespace abacus::parse {
|
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) {
|
int ParserDriver::parse(std::string filename) {
|
||||||
filename_ = std::move(filename);
|
filename_ = std::move(filename);
|
||||||
|
|
|
@ -29,8 +29,8 @@ private:
|
||||||
numeric_type result_{0};
|
numeric_type result_{0};
|
||||||
std::string filename_{};
|
std::string filename_{};
|
||||||
yy::location current_location_{};
|
yy::location current_location_{};
|
||||||
bool parse_trace_p_ = false;
|
bool parse_trace_p_;
|
||||||
bool scan_trace_p_ = false;
|
bool scan_trace_p_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace abacus::parse
|
} // namespace abacus::parse
|
||||||
|
|
Loading…
Reference in a new issue