Commentary

This commit is contained in:
Wilson Snyder 2024-11-24 20:16:54 -05:00
parent f58aee2ff2
commit 6f35fec5ce
2 changed files with 23 additions and 24 deletions

View File

@ -516,8 +516,7 @@ int V3ParseImp::tokenPipelineId(int token) {
&& m_tokenLastBison.token != '.') {
if (const size_t depth = tokenPipeScanIdCell(0)) return yaID__aCELL;
}
if (nexttok == '#') {
VL_RESTORER(yylval); // Remember value, as about to read ahead
if (nexttok == '#') { // e.g. class_type parameter_value_assignment '::'
const size_t depth = tokenPipeScanParam(0, false);
if (tokenPeekp(depth)->token == yP_COLONCOLON) return yaID__CC;
}

View File

@ -1433,7 +1433,7 @@ parameter_value_assignmentInst<pinp>: // IEEE: parameter_value_assignment
// // '#' delay_value { UNSUP }
;
parameter_value_assignmentClass<pinp>: // IEEE: [ parameter_value_assignment ] (for classes)
parameter_value_assignmentClass<pinp>: // IEEE: parameter_value_assignment (for classes)
// // Like parameter_value_assignment, but for classes only, which always have #()
'#' '(' cellparamListE ')' { $$ = $3; }
;