From 2238fa46eda1b145656b6b01ef95a572b38b7688 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 2 Dec 2012 18:03:34 -0500 Subject: [PATCH] Show fileline in bison debug. --- src/verilog.l | 3 ++- src/verilog.y | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/verilog.l b/src/verilog.l index 172ad167a..7793e76e4 100644 --- a/src/verilog.l +++ b/src/verilog.l @@ -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="<filenameLetters()<lineno() + <<"} lexToBison TOKEN="<: idDottedMore: idArrayed { $$ = $1; } - | idDotted '.' idArrayed { $$ = new AstDot($2,$1,$3); } + | idDottedMore '.' idArrayed { $$ = new AstDot($2,$1,$3); } ; // Single component of dotted path, maybe [#].