Skip Menu |

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

Report information
The Basics
Id: 125568
Status: new
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: tod222 [...] gmail.com
Cc:
AdminCc:

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



Subject: Option -standalone generates invalid output file
Date: Tue, 12 Jun 2018 13:09:36 -0400
To: bug-Parse-RecDescent [...] rt.cpan.org
From: Tod Hagan <tod222 [...] gmail.com>
Steps to reproduce on Ubuntu 16.04.4 LTS: Show quoted text
> cat test_grammar.rules
<autotree> identifier: /[A-Za-z]\w*/ { $return = $item[1]; } Show quoted text
> perl -e 'use Parse::RecDescent; local $/; my $g = <>;
Parse::RecDescent->Precompile({-standalone => 1}, $g, "Test");' test_grammar.rules Show quoted text
> perl Test.pm
Missing right curly or square bracket at Test.pm line 3540, at end of line syntax error at Test.pm line 3540, at EOF Execution of Test.pm aborted due to compilation errors. Show quoted text
> perl -MParse::RecDescent -e 'print "$Parse::RecDescent::VERSION\n";'
1.967015 Show quoted text
>
The error happens not at the true EOF, but the location of the __END__ line. This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-linux-gnu-thread-multi (with 68 registered patches, see perl -V for more detail) Linux 4.13.0-43-generic #48~16.04.1-Ubuntu SMP Thu May 17 12:56:46 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux