From 0ec025c40cf35a9fbf648e91f562ce31512ce1fa Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 10 Nov 2024 10:14:42 -0500 Subject: [PATCH] Internals: Rename rule. No functional change. --- src/verilog.y | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/verilog.y b/src/verilog.y index 1638c83fa..c91609894 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -3705,7 +3705,7 @@ statement_item: // IEEE: statement_item | yDISABLE yFORK ';' { $$ = new AstDisableFork{$1}; } | yDISABLE idAny/*UNSUP: hierarchical_identifier-task_or_block*/ ';' { $$ = new AstDisable{$1, *$2}; } - | yDISABLE idAny '.' idDotted ';' + | yDISABLE idAny '.' idDottedSel ';' { $$ = nullptr; BBUNSUP($4, "Unsupported: disable with '.'"); } // // IEEE: event_trigger | yP_MINUSGT expr ';' @@ -4141,7 +4141,7 @@ funcRef: // IEEE: part of tf_call | packageClassScope id '(' list_of_argumentsE ')' { $$ = AstDot::newIfPkg($2, $1, new AstFuncRef{$2, *$2, $4}); } //UNSUP list_of_argumentE should be pev_list_of_argumentE - //UNSUP: idDotted is really just id to allow dotted method calls + //UNSUP: idDottedSel is really just id to allow dotted method calls ; task_subroutine_callNoSemi: // similar to IEEE task_subroutine_call but without ';' @@ -4194,7 +4194,7 @@ system_t_call: // IEEE: system_tf_call (as task) refp->pli(true); $$ = refp->makeStmt(); } // - | yD_DUMPPORTS '(' idDotted ',' expr ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::FILE, $5}; DEL($3); + | yD_DUMPPORTS '(' idDottedSel ',' expr ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::FILE, $5}; DEL($3); $$->addNext(new AstDumpCtl{$1, VDumpCtlType::VARS, new AstConst{$1, 1}}); } | yD_DUMPPORTS '(' ',' expr ')' { $$ = new AstDumpCtl{$1, VDumpCtlType::FILE, $4}; @@ -5834,15 +5834,15 @@ variable_lvalueConcList: // IEEE: part of variable_lvalue: '{' variab // VarRef to dotted, and/or arrayed, and/or bit-ranged variable idClassSel: // Misc Ref to dotted, and/or arrayed, and/or bit-ranged variable - idDotted { $$ = $1; } + idDottedSel { $$ = $1; } // // IEEE: [ implicit_class_handle . | package_scope ] hierarchical_variable_identifier select - | yTHIS '.' idDotted + | yTHIS '.' idDottedSel { $$ = new AstDot{$2, false, new AstParseRef{$1, VParseRefExp::PX_ROOT, "this"}, $3}; } - | ySUPER '.' idDotted + | ySUPER '.' idDottedSel { $$ = new AstDot{$2, false, new AstParseRef{$1, VParseRefExp::PX_ROOT, "super"}, $3}; } - | yTHIS '.' ySUPER '.' idDotted { $$ = $5; BBUNSUP($1, "Unsupported: this.super"); } - // // Expanded: package_scope idDotted - | packageClassScope idDotted { $$ = new AstDot{$2, true, $1, $2}; } + | yTHIS '.' ySUPER '.' idDottedSel { $$ = $5; BBUNSUP($1, "Unsupported: this.super"); } + // // Expanded: package_scope idDottedSel + | packageClassScope idDottedSel { $$ = new AstDot{$2, true, $1, $2}; } ; idClassSelForeach: @@ -5857,10 +5857,10 @@ idClassSelForeach: | packageClassScope idDottedForeach { $$ = new AstDot{$2, true, $1, $2}; } ; -idDotted: - yD_ROOT '.' idDottedMore +idDottedSel: + yD_ROOT '.' idDottedSelMore { $$ = new AstDot{$2, false, new AstParseRef{$1, VParseRefExp::PX_ROOT, "$root"}, $3}; } - | idDottedMore { $$ = $1; } + | idDottedSelMore { $$ = $1; } ; idDottedForeach: @@ -5869,9 +5869,9 @@ idDottedForeach: | idDottedMoreForeach { $$ = $1; } ; -idDottedMore: +idDottedSelMore: idArrayed { $$ = $1; } - | idDottedMore '.' idArrayed { $$ = new AstDot{$2, false, $1, $3}; } + | idDottedSelMore '.' idArrayed { $$ = new AstDot{$2, false, $1, $3}; } ; idDottedMoreForeach: