diff options
author | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-15 11:26:44 +0100 |
---|---|---|
committer | Ahmed Irfan <ahmedirfan1983@gmail.com> | 2014-01-15 11:26:44 +0100 |
commit | 8661626157f1a0d13a60580e93c614b6abb1bea6 (patch) | |
tree | a85c52348c33fffaac406ac839b73689e5d34734 /passes/techmap/libparse.cc | |
parent | 661b5a993ebbe331c8d4085372622587e1712ab4 (diff) | |
parent | 66198d8591a66b8ec34237c1151d992c7f4d5224 (diff) | |
download | yosys-8661626157f1a0d13a60580e93c614b6abb1bea6.tar.gz yosys-8661626157f1a0d13a60580e93c614b6abb1bea6.tar.bz2 yosys-8661626157f1a0d13a60580e93c614b6abb1bea6.zip |
Merge branch 'master' of https://github.com/ahmedirfan1983/yosys into btor
Diffstat (limited to 'passes/techmap/libparse.cc')
-rw-r--r-- | passes/techmap/libparse.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 8fc03b5c9..8f4a1a5fa 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -79,7 +79,7 @@ void LibertyAst::dump(FILE *f, std::string indent, std::string path, bool path_o fprintf(f, " ;\n"); } -int LibertyParer::lexer(std::string &str) +int LibertyParser::lexer(std::string &str) { int c; @@ -87,11 +87,11 @@ int LibertyParer::lexer(std::string &str) c = fgetc(f); } while (c == ' ' || c == '\t' || c == '\r'); - if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') { + if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') { str = c; while (1) { c = fgetc(f); - if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '.') + if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' || c == '-' || c == '+' || c == '.') str += c; else break; @@ -154,7 +154,7 @@ int LibertyParer::lexer(std::string &str) return c; } -LibertyAst *LibertyParer::parse() +LibertyAst *LibertyParser::parse() { std::string str; @@ -219,14 +219,14 @@ LibertyAst *LibertyParer::parse() #ifndef FILTERLIB -void LibertyParer::error() +void LibertyParser::error() { log_error("Syntax error in line %d.\n", line); } #else -void LibertyParer::error() +void LibertyParser::error() { fprintf(stderr, "Syntax error in line %d.\n", line); exit(1); @@ -611,7 +611,7 @@ int main(int argc, char **argv) } } - LibertyParer parser(f); + LibertyParser parser(f); if (parser.ast) { if (flag_verilogsim) gen_verilogsim(parser.ast); |