From 2be6699a6a8d92f03a563b1e1b7477c5177d15ed Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 23 Feb 2012 22:09:51 -0500 Subject: [PATCH] Internals: Make covergroup parsing closer to normal types --- src/verilog.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/verilog.y b/src/verilog.y index 5782fd4cd..739d14be1 100644 --- a/src/verilog.y +++ b/src/verilog.y @@ -1139,7 +1139,7 @@ data_type: // ==IEEE: data_type // // IEEE: class_type //UNSUP class_typeWithoutId { $$ = $1; } // // IEEE: ps_covergroup_identifier - //UNSUP ps_covergroup_identifier { $$ = $1; } + // // we put covergroups under ps_type, so can ignore this ; data_typeBasic: // IEEE: part of data_type @@ -1250,7 +1250,9 @@ enum_base_typeE: // IEEE: enum_base_type // | integer_atom_type signingE { $1->setSignedState($2); $$ = $1; } | integer_vector_type signingE rangeListE { $1->setSignedState($2); $$ = GRAMMARP->addRange($1,$3,false); } - | yaID__aTYPE rangeListE { $$ = GRAMMARP->createArray(new AstRefDType($1, *$1), $2, false); } + // // below can be idAny or yaID__aTYPE + // // IEEE requires a type, though no shift conflict if idAny + | idAny rangeListE { $$ = GRAMMARP->createArray(new AstRefDType($1, *$1), $2, false); } ; enum_nameList: