38 trace_scanning(false),
40 slamContext(slamContext_)
50 this->
lexer = &scanner;
56 return (parser.
parse() == 0);
61 std::ifstream in(filename.c_str());
62 if (!in.good())
return false;
68 std::istringstream iss(input);
75 std::cerr << l <<
": " << m << std::endl;
80 std::cerr << m << std::endl;
bool parse_file(const std::string &filename)
bool parse_string(const std::string &input, const std::string &sname="string stream")
void error(const class location &l, const std::string &m)
bool trace_scanning
enable debug output in the flex scanner
bool trace_parsing
enable debug output in the bison parser
bool parse_stream(std::istream &in, const std::string &sname="stream input")
Driver(class SlamContext &slamContext_)
construct a new parser driver context
std::string streamname
stream name (file or input stream) used for error messages.