#include <libparse.h>
Definition at line 42 of file libparse.h.
Yosys::LibertyParser::LibertyParser |
( |
std::istream & |
f | ) |
|
|
inline |
Yosys::LibertyParser::~LibertyParser |
( |
| ) |
|
|
inline |
void LibertyParser::error |
( |
| ) |
|
Definition at line 232 of file libparse.cc.
void log_error(const char *format,...)
int LibertyParser::lexer |
( |
std::string & |
str | ) |
|
Definition at line 87 of file libparse.cc.
93 }
while (c ==
' ' || c ==
'\t' || c ==
'\r');
95 if ((
'a' <= c && c <=
'z') || (
'A' <= c && c <=
'Z') || (
'0' <= c && c <=
'9') || c ==
'_' || c ==
'-' || c ==
'+' || c ==
'.') {
99 if ((
'a' <= c && c <=
'z') || (
'A' <= c && c <=
'Z') || (
'0' <= c && c <=
'9') || c ==
'_' || c ==
'-' || c ==
'+' || c ==
'.')
127 while (c > 0 && (last_c !=
'*' || c !=
'/')) {
134 }
else if (c ==
'/') {
135 while (c > 0 && c !=
'\n')
int lexer(std::string &str)
Definition at line 167 of file libparse.cc.
171 int tok =
lexer(str);
176 if (tok ==
'}' || tok < 0)
192 if (tok ==
':' && ast->
value.empty()) {
209 ast->
args.push_back(arg);
std::vector< std::string > args
int lexer(std::string &str)
std::vector< LibertyAst * > children
std::istream& Yosys::LibertyParser::f |
int Yosys::LibertyParser::line |
The documentation for this struct was generated from the following files: