Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vppreproc doesn't parse strings with line continuation characters #168

Closed
veripoolbot opened this issue Oct 22, 2009 · 2 comments
Closed
Assignees

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Pete Nixon
Original Redmine Issue: 168 from https://www.veripool.org
Original Date: 2009-10-22
Original Assignee: Wilson Snyder (@wsnyder)


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

{backslash}{crnl} { linenoInc(); yymore(); }

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2009-10-22T21:20:04Z


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.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2009-10-28T13:46:02Z


Fixed in Verilog-Perl 3.221, and Verilator 3.720.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants