Class that binds all pieces together for parsing C verbatim blocks.
More...
Class that binds all pieces together for parsing C verbatim blocks.
Definition at line 37 of file c11_driver.hpp.
#include <c11_driver.hpp>
|
static void | error (const std::string &m) |
|
static void | error (const std::string &m, const location &l) |
|
|
std::string | streamname |
| file or input stream name (used by scanner for position), see todo More...
|
|
◆ CDriver() [1/2]
nmodl::parser::CDriver::CDriver |
( |
| ) |
|
|
default |
◆ CDriver() [2/2]
nmodl::parser::CDriver::CDriver |
( |
bool |
strace, |
|
|
bool |
ptrace |
|
) |
| |
◆ ~CDriver()
nmodl::parser::CDriver::~CDriver |
( |
| ) |
|
|
default |
◆ add_token()
void nmodl::parser::CDriver::add_token |
( |
const std::string & |
text | ) |
|
◆ all_tokens()
const std::vector<std::string>& nmodl::parser::CDriver::all_tokens |
( |
| ) |
const |
|
inlinenoexcept |
◆ error() [1/2]
void nmodl::parser::CDriver::error |
( |
const std::string & |
m | ) |
|
|
static |
◆ error() [2/2]
void nmodl::parser::CDriver::error |
( |
const std::string & |
m, |
|
|
const location & |
l |
|
) |
| |
|
static |
◆ has_token()
bool nmodl::parser::CDriver::has_token |
( |
const std::string & |
token | ) |
const |
|
inlinenoexcept |
◆ is_enum_constant()
bool nmodl::parser::CDriver::is_enum_constant |
( |
const std::string & |
constant | ) |
const |
|
inlinenoexcept |
◆ is_typedef()
bool nmodl::parser::CDriver::is_typedef |
( |
const std::string & |
type | ) |
const |
|
inlinenoexcept |
◆ is_verbose()
bool nmodl::parser::CDriver::is_verbose |
( |
| ) |
const |
|
inlinenoexcept |
◆ parse_file()
bool nmodl::parser::CDriver::parse_file |
( |
const std::string & |
filename | ) |
|
◆ parse_stream()
bool nmodl::parser::CDriver::parse_stream |
( |
std::istream & |
in | ) |
|
◆ parse_string()
bool nmodl::parser::CDriver::parse_string |
( |
const std::string & |
input | ) |
|
parser c provided as string (used for testing)
Definition at line 47 of file c11_driver.cpp.
◆ scan_string()
void nmodl::parser::CDriver::scan_string |
( |
const std::string & |
text | ) |
|
◆ set_verbose()
void nmodl::parser::CDriver::set_verbose |
( |
bool |
b | ) |
|
|
inlinenoexcept |
◆ enum_constants
std::vector<std::string> nmodl::parser::CDriver::enum_constants |
|
private |
◆ lexer
std::unique_ptr<CLexer> nmodl::parser::CDriver::lexer |
|
private |
pointer to the lexer instance being used
Definition at line 55 of file c11_driver.hpp.
◆ parser
std::unique_ptr<CParser> nmodl::parser::CDriver::parser |
|
private |
pointer to the parser instance being used
Definition at line 58 of file c11_driver.hpp.
◆ streamname
std::string nmodl::parser::CDriver::streamname |
file or input stream name (used by scanner for position), see todo
Definition at line 65 of file c11_driver.hpp.
◆ tokens
std::vector<std::string> nmodl::parser::CDriver::tokens |
|
private |
◆ trace_parser
bool nmodl::parser::CDriver::trace_parser = false |
|
private |
enable debug output in the bison parser
Definition at line 52 of file c11_driver.hpp.
◆ trace_scanner
bool nmodl::parser::CDriver::trace_scanner = false |
|
private |
enable debug output in the flex scanner
Definition at line 49 of file c11_driver.hpp.
◆ typedefs
std::map<std::string, std::string> nmodl::parser::CDriver::typedefs |
|
private |
◆ verbose
bool nmodl::parser::CDriver::verbose = false |
|
private |
The documentation for this class was generated from the following files: