Commentary
This commit is contained in:
parent
8170f6f03f
commit
c9e8a1cb4d
|
|
@ -1138,9 +1138,11 @@ void V3ParseImp::lexToken() {
|
||||||
UINFO(7," lexToken: Found "<<scp<<endl);
|
UINFO(7," lexToken: Found "<<scp<<endl);
|
||||||
if (VN_IS(scp, Typedef)) token = yaID__aTYPE;
|
if (VN_IS(scp, Typedef)) token = yaID__aTYPE;
|
||||||
else if (VN_IS(scp, TypedefFwd)) token = yaID__aTYPE;
|
else if (VN_IS(scp, TypedefFwd)) token = yaID__aTYPE;
|
||||||
else if (VN_IS(scp, Package)) token = yaID__aPACKAGE;
|
|
||||||
else if (VN_IS(scp, Class)) token = yaID__aTYPE;
|
else if (VN_IS(scp, Class)) token = yaID__aTYPE;
|
||||||
//UNSUP else if (VN_IS(scp, CoverGroup)) token = yaID__aCOVERGROUP;
|
// Packages we could alternatively determine by looking for
|
||||||
|
// an yaID__LEX followed by yP_COLONCOLON (but we can't lookahead
|
||||||
|
// after an yaID__LEX as described above.)
|
||||||
|
else if (VN_IS(scp, Package)) token = yaID__aPACKAGE;
|
||||||
else token = yaID__ETC;
|
else token = yaID__ETC;
|
||||||
} else { // Not found
|
} else { // Not found
|
||||||
yylval.scp = NULL;
|
yylval.scp = NULL;
|
||||||
|
|
@ -1161,8 +1163,8 @@ int V3ParseImp::lexToBison() {
|
||||||
if (debugFlex() >= 6 || debugBison() >= 6) { // --debugi-flex and --debugi-bison
|
if (debugFlex() >= 6 || debugBison() >= 6) { // --debugi-flex and --debugi-bison
|
||||||
cout << " {" << yylval.fl->filenameLetters() << yylval.fl->asciiLineCol()
|
cout << " {" << yylval.fl->filenameLetters() << yylval.fl->asciiLineCol()
|
||||||
<< "} lexToBison TOKEN=" << yylval.token << " " << tokenName(yylval.token);
|
<< "} lexToBison TOKEN=" << yylval.token << " " << tokenName(yylval.token);
|
||||||
if (yylval.token == yaID__ETC
|
if (yylval.token == yaID__ETC //
|
||||||
|| yylval.token == yaID__LEX
|
|| yylval.token == yaID__LEX //
|
||||||
|| yylval.token == yaID__aTYPE) {
|
|| yylval.token == yaID__aTYPE) {
|
||||||
cout << " strp='" << *(yylval.strp) << "'";
|
cout << " strp='" << *(yylval.strp) << "'";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue