3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Merge branch 'YosysHQ:master' into main/issue2525

This commit is contained in:
Muthiah Annamalai (முத்து அண்ணாமலை) 2023-05-16 21:21:32 -07:00 committed by GitHub
commit 693c609eec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 2505 additions and 57 deletions

View file

@ -236,10 +236,10 @@ LibertyAst *LibertyParser::parse()
if (tok == ':' && ast->value.empty()) {
tok = lexer(ast->value);
if (tok != 'v')
error();
tok = lexer(str);
while (tok == '+' || tok == '-' || tok == '*' || tok == '/') {
if (tok == 'v') {
tok = lexer(str);
}
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
ast->value += tok;
tok = lexer(str);
if (tok != 'v')