Subject: | Fails messily if the grammar does not end in a newline |
The attached grammar causes the error below when run through parse().
Note that it is missing a newline at the end of the file. If you add a
newline it works fine. It would be nice if Parse::ABNF emitted an error
or warning about the missing newline.
Variable "$errortext" is not available at
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line
2906, <> line 61.
Variable "$errorprefix" is not available at
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line
2906, <> line 61.
Use of uninitialized value $errorprefix in formline at
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line
2850, <> line 61.
Use of uninitialized value $errortext in formline at
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line
2850, <> line 61.
Use of uninitialized value $errortext in formline at
/usr/local/perl/5.10.0/lib/site_perl/5.10.0/Parse/RecDescent.pm line
2852, <> line 61.
:
Subject: | tap.abnf |
Message body not shown because it is not plain text.