1 #ifndef DISPLAY_DS9_PARSER_H_
2 #define DISPLAY_DS9_PARSER_H_
37 void error(
const class location& l,
const std::string& m);
41 void error(
const std::string& m);
bool trace_scanning
enable debug output in the flex scanner
bool parse_file(ds9context &base, const std::string &filename)
bool parse_string(ds9context &base, const std::string &input, const std::string &sname="string stream")
bool trace_parsing
enable debug output in the bison parser
bool parse_stream(ds9context &base, std::istream &in, const std::string &sname="stream input")
input stream, stream name for error messages, return true if successfully parsed
Scanner is a derived class to add some extra function to the scanner class.
std::string streamname
stream name (file or input stream) used for error messages.
void error(const class location &l, const std::string &m)
To demonstrate pure handling of parse errors, instead of simply dumping them on the standard error ou...