mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-07 23:05:07 +00:00
libparse: remove leftover comments
This commit is contained in:
parent
90553267b0
commit
fdcc4c1507
1 changed files with 2 additions and 7 deletions
|
|
@ -676,23 +676,18 @@ LibertyAst *LibertyParser::parse(bool top_level)
|
||||||
tok = lexer(str);
|
tok = lexer(str);
|
||||||
} else {
|
} else {
|
||||||
// Hack for when an expression string is unquoted
|
// Hack for when an expression string is unquoted
|
||||||
// std::cout << "consume_wrecked_str from :\n";
|
|
||||||
// std::cout << " weh " << str << "\n";
|
|
||||||
tok = consume_wrecked_str(tok, ast->value);
|
tok = consume_wrecked_str(tok, ast->value);
|
||||||
}
|
}
|
||||||
} else if (tok == '(') {
|
} else if (tok == '(') {
|
||||||
// Hack for when an expression string is unquoted and starts with
|
// Hack for when an expression string is unquoted and starts with
|
||||||
// parentheses
|
// parentheses
|
||||||
// tok = '';
|
|
||||||
// ast->value = "(";
|
|
||||||
// std::cout << "consume_wrecked_str from (\n";
|
|
||||||
tok = consume_wrecked_str(tok, ast->value);
|
tok = consume_wrecked_str(tok, ast->value);
|
||||||
}
|
}
|
||||||
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') {
|
||||||
ast->value += tok;
|
ast->value += tok;
|
||||||
tok = lexer(str);
|
tok = lexer(str);
|
||||||
if (tok != 'v')
|
if (tok != 'v')
|
||||||
error("one");
|
error();
|
||||||
ast->value += str;
|
ast->value += str;
|
||||||
tok = lexer(str);
|
tok = lexer(str);
|
||||||
}
|
}
|
||||||
|
|
@ -704,7 +699,7 @@ LibertyAst *LibertyParser::parse(bool top_level)
|
||||||
if ((tok == ';') || (tok == 'n'))
|
if ((tok == ';') || (tok == 'n'))
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
error("two");
|
error();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue