3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Fix Liberty issue

This commit is contained in:
Akash Levy 2024-10-03 04:14:20 -07:00
parent dd487ca8a1
commit 654e92e04e
4 changed files with 63 additions and 0 deletions

View file

@ -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;