8 #ifndef DEFPARSER_DRIVER_H
9 #define DEFPARSER_DRIVER_H
25 using std::ostringstream;
57 const string& sname =
"stream input");
65 const string& sname =
"string stream");
76 Row const& row()
const {
return m_row;}
78 Component
const& component()
const {
return m_comp;}
79 Component& component() {
return m_comp;}
80 Pin
const& pin()
const {
return m_pin;}
81 Pin& pin() {
return m_pin;}
82 Net
const& net()
const {
return m_net;}
83 Net& net() {
return m_net;}
108 #endif // EXAMPLE_DRIVER_H
net to describe interconnection of netlist
bool parse_stream(std::istream &in, const string &sname="stream input")
bool trace_scanning
enable debug output in the flex scanner
Base class for def database. Only pure virtual functions are defined. User needs to inheritate this c...
bool parse_string(const string &input, const string &sname="string stream")
bool read(DefDataBase &db, const string &defFile)
API for DefParser. Read DEF file and initialize database by calling user-defined callback functions...
bool trace_parsing
enable debug output in the bison parser
string streamname
stream name (file or input stream) used for error messages.
Component m_comp
temporary component
bool parse_file(const string &filename)