![]() |
User Guide
|
Class that binds all pieces together for parsing C units. More...
Class that binds all pieces together for parsing C units.
Definition at line 39 of file unit_driver.hpp.
#include <unit_driver.hpp>
Public Member Functions | |
bool | parse_stream (std::istream &in) |
parse Units file provided as istream More... | |
bool | parse_string (const std::string &input) |
parser Units provided as string (used for testing) More... | |
bool | parse_file (const std::string &filename) |
parse Units file More... | |
void | set_verbose (bool b) |
bool | is_verbose () const |
Ctor & dtor | |
UnitDriver ()=default | |
UnitDriver (bool strace, bool ptrace) | |
Public Attributes | |
std::shared_ptr< nmodl::units::UnitTable > | table = std::make_shared<nmodl::units::UnitTable>() |
shared pointer to the UnitTable that stores all the unit definitions More... | |
std::string | stream_name |
file or input stream name (used by scanner for position), see todo More... | |
Private Attributes | |
UnitLexer * | lexer = nullptr |
pointer to the lexer instance being used More... | |
UnitParser * | parser = nullptr |
pointer to the parser instance being used More... | |
bool | verbose = false |
print messages from lexer/parser More... | |