mirror of
https://github.com/verilator/verilator.git
synced 2025-05-04 14:36:55 +00:00
Show fileline in bison debug.
This commit is contained in:
parent
de8b040e31
commit
2238fa46ed
@ -1149,7 +1149,8 @@ int V3ParseImp::lexToBison() {
|
||||
int tok = lexToken();
|
||||
//yylval.scp = NULL; // Symbol table not yet needed - no packages
|
||||
if (debugFlex()>=6 || debugBison()>=6) {
|
||||
cout<<" lexToBison TOKEN="<<tok<<" "<<tokenName(tok);
|
||||
cout<<" {"<<yylval.fl->filenameLetters()<<yylval.fl->lineno()
|
||||
<<"} lexToBison TOKEN="<<tok<<" "<<tokenName(tok);
|
||||
if (tok == yaID__ETC || tok == yaID__LEX || tok == yaID__aTYPE) {
|
||||
cout<<" strp='"<<*(yylval.strp)<<"'";
|
||||
}
|
||||
|
@ -3185,7 +3185,7 @@ idDotted<nodep>:
|
||||
|
||||
idDottedMore<nodep>:
|
||||
idArrayed { $$ = $1; }
|
||||
| idDotted '.' idArrayed { $$ = new AstDot($2,$1,$3); }
|
||||
| idDottedMore '.' idArrayed { $$ = new AstDot($2,$1,$3); }
|
||||
;
|
||||
|
||||
// Single component of dotted path, maybe [#].
|
||||
|
Loading…
Reference in New Issue
Block a user