mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-24 01:25:33 +00:00
Fix Liberty issue
This commit is contained in:
parent
dd487ca8a1
commit
654e92e04e
4 changed files with 63 additions and 0 deletions
|
@ -251,6 +251,13 @@ LibertyAst *LibertyParser::parse()
|
|||
// instead of the ';' too..
|
||||
if ((tok == ';') || (tok == 'n'))
|
||||
break;
|
||||
else if (tok == '[') {
|
||||
while (tok != ']') {
|
||||
tok = lexer(str);
|
||||
}
|
||||
ast->value += '[' + str + ']';
|
||||
continue;
|
||||
}
|
||||
else
|
||||
error();
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue