Do not parse covergroup identifiers as types

Signed-off-by: Arkadiusz Kozdra <akozdra@antmicro.com>
This commit is contained in:
Arkadiusz Kozdra 2024-09-11 14:06:56 +02:00
parent 22d6bb8180
commit ac29393ec9

View File

@ -6551,12 +6551,11 @@ covergroup_declaration<nodep>: // ==IEEE: covergroup_declaration
GRAMMARP->endLabel($<fl>7, $1, $7); }
;
covergroup_declarationFront<classp>: // IEEE: part of covergroup_declaration
covergroup_declarationFront<constraintp>: // IEEE: part of covergroup_declaration
yCOVERGROUP idAny
{ $$ = new AstClass{$<fl>2, *$2};
{ $$ = new AstConstraint{$<fl>2, *$2, nullptr};
BBUNSUP($<fl>1, "Unsupported: covergroup");
SYMP->pushNew($<classp>$);
v3Global.setHasClasses(); }
SYMP->pushNew($<constraintp>$); }
;
cgexpr<nodeExprp>: // IEEE-2012: covergroup_expression, before that just expression