From 435e1149d57b4f204b5dcff6e93135c0f79599fd Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Wed, 1 Oct 2025 10:46:55 +0100 Subject: [PATCH] Internals: Remove dupliacte netSig parse rules --- src/verilog.y | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/verilog.y b/src/verilog.y index 230207a61..ca53c686c 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -2969,17 +2969,9 @@ netSigList: // IEEE: list_of_port_identifiers ; netSig: // IEEE: net_decl_assignment - one element from list_of_port_identifiers - netId sigAttrListE - { $$ = VARDONEA($1, *$1, nullptr, $2); } - | netId sigAttrListE '=' expr - { $$ = VARDONEA($1, *$1, nullptr, $2); - AstDelay* const delayp = $$->delayp() ? $$->delayp()->unlinkFrBack() : nullptr; - AstAssignW* const assignp = new AstAssignW{$3, new AstParseRef{$1, VParseRefExp::PX_TEXT, *$1}, $4, delayp}; - if (GRAMMARP->m_netStrengthp) assignp->strengthSpecp(GRAMMARP->m_netStrengthp->cloneTree(false)); - AstNode::addNext($$, assignp); } - | netId variable_dimensionList sigAttrListE + netId variable_dimensionListE sigAttrListE { $$ = VARDONEA($1, *$1, $2, $3); } - | netId variable_dimensionList sigAttrListE '=' expr + | netId variable_dimensionListE sigAttrListE '=' expr { $$ = VARDONEA($1, *$1, $2, $3); AstDelay* const delayp = $$->delayp() ? $$->delayp()->unlinkFrBack() : nullptr; AstAssignW* const assignp = new AstAssignW{$4, new AstParseRef{$1, VParseRefExp::PX_TEXT, *$1}, $5, delayp};