Skip Menu |

This queue is for tickets about the Parse-RecDescent CPAN distribution.

Report information
The Basics
Id: 1328
Status: resolved
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: emenchen [...] xilinx.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: C parser examples don't deal with char a = '"';
Required info: Distribution name and version - Parse-RecDescent-1.80 Perl version - 5.6.1 OS - Windows 2000 Pro SP 2 The grammers found in demo/demo_decomment.pl and demo/demo_decomment_nonlocal.pl are incomplete in that they don't recognize character values in single quotes. This can easily be demonstrated by adding the line: char a = '"'; // Will it recognize this? after the line that declares cp2. -Eric
I've added a rule that should allow valid character literals to pass. This doesn't validate that the character literal is valid, but that's not the point of the demo. Commit here: https://github.com/jtbraun/Parse-RecDescent/commit/2e56e032a85f1be92e6e41f6fc3ec7745a8b03dd Expect it in a release post v1.966_002.