From fdcc4c1507392f722014c77c5847e63113508666 Mon Sep 17 00:00:00 2001 From: "Emil J. Tywoniak" Date: Thu, 6 Nov 2025 13:30:09 +0100 Subject: [PATCH] libparse: remove leftover comments --- passes/techmap/libparse.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/passes/techmap/libparse.cc b/passes/techmap/libparse.cc index 2d3f1792a..9e2556891 100644 --- a/passes/techmap/libparse.cc +++ b/passes/techmap/libparse.cc @@ -676,23 +676,18 @@ LibertyAst *LibertyParser::parse(bool top_level) tok = lexer(str); } else { // 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); } } else if (tok == '(') { // Hack for when an expression string is unquoted and starts with // parentheses - // tok = ''; - // ast->value = "("; - // std::cout << "consume_wrecked_str from (\n"; tok = consume_wrecked_str(tok, ast->value); } while (tok == '+' || tok == '-' || tok == '*' || tok == '/' || tok == '!') { ast->value += tok; tok = lexer(str); if (tok != 'v') - error("one"); + error(); ast->value += str; tok = lexer(str); } @@ -704,7 +699,7 @@ LibertyAst *LibertyParser::parse(bool top_level) if ((tok == ';') || (tok == 'n')) break; else - error("two"); + error(); continue; }