38 : trace_scanning(false),
41 slamContext(slamContext_) {}
48 this->
lexer = &scanner;
54 return (parser.
parse() == 0);
58 std::ifstream in(filename.c_str());
59 if (!in.good())
return false;
64 std::istringstream iss(input);
69 std::cerr << l <<
": " << m << std::endl;
72void Driver::error(
const std::string& m) { std::cerr << m << std::endl; }
bool parse_string(const std::string &input, const std::string &sname="string stream")
bool trace_parsing
enable debug output in the bison parser
bool parse_stream(std::istream &in, const std::string &sname="stream input")
std::string streamname
stream name (file or input stream) used for error messages.
bool parse_file(const std::string &filename)
bool trace_scanning
enable debug output in the flex scanner
Driver(class SlamContext &slamContext_)
construct a new parser driver context
void error(const class location &l, const std::string &m)
Two points in a source file.