[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Patch #168

vppreproc doesn't parse strings with line continuation characters

Added by Pete Nixon over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:10/22/2009
Priority:Normal Due date:
Assignee:Wilson Snyder % Done:

0%

Category:-
Target version:-

Description

This line will cause an unterminated string error in VPreprocLex.l, although it is valid syntax:

$display("\nWarning!  This is a\
          string with a line\
          continuation\
          at time %0d PS", $time);

Here's a patch for VPreprocLex.l from Verilog-Perl-3.220:

113a114

<STRMODE>{backslash}{crnl} { linenoInc(); yymore(); }

VPreprocLex.l - This is a patched version that handles line continuations in strings (10.6 kB) Pete Nixon, 10/22/2009 05:33 pm

History

Updated by Wilson Snyder over 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Wilson Snyder

Indeed, thanks for the patch. A similar fix is needed for VParseLex.l

I committed the fix to git, it'll be in the next release.

Updated by Wilson Snyder over 2 years ago

  • Status changed from Resolved to Closed

Fixed in Verilog-Perl 3.221, and Verilator 3.720.

Also available in: Atom