48 mTraceParsing(false), mEdifCntx(inEdifCntx), mErrorObj() {}
61 return (parser.
parse() == 0);
65 std::ifstream in(inFileName.c_str());
73 std::istringstream iss(inString);
78 std::cerr <<
"Error at:" << inLocation <<
": " << inMessage << std::endl;
82 std::cerr << inMessage << std::endl;
boost::shared_ptr< EdifContext > EdifContextSharedPtr
void set_debug_level(debug_level_type l)
Set the current debugging level.
Driver(const EdifContextSharedPtr &inEdifCntx)
construct a new parser driver context
boost::shared_ptr< Error > ErrorSharedPtr
The Error object thrown by different methods of EdifOM.
bool parseStream(std::istream &inStream, const std::string &inStreamName="stream input")
bool parseFile(const std::string &inFileName)
void error(const class location &inLocation, const std::string &inMessage)
void setParserError(const Error &inSource)
bool parseString(const std::string &inString, const std::string &inStreamName="string stream")