xsawyerx / guacamole

Guacamole is a parser toolkit for Standard Perl. It provides fully static BNF-based parsing capability to a reasonable subset of Perl.
https://metacpan.org/pod/Guacamole
20 stars 8 forks source link

binmode issue #114

Closed valcomm closed 2 years ago

valcomm commented 3 years ago
#!/usr/bin/env perl

use standard;
use strict;
use warnings;

binmode( STDOUT, ':utf8' );

generates

File './1.pl' does not pass Standard Perl.
Parser says:
> Error in SLIF parse: No lexeme found at line 7, column 16
> * String before error: rd;\nuse strict;\nuse warnings;\n\nbinmode( STDOUT
> * The error was at line 7, column 16, and at character 0x002c ',', ...
> * here: , ':utf8' );\n# binmode( STDIN, ':raw' ); # utf8'\s
> Marpa::R2 exception at /home/val/.plenv/versions/5.32.0/lib/perl5/site_perl/5.32.0/Guacamole.pm line 2103.
>
> Failed to parse past: STDOUT (char 11, length 1), expected LParen,OpArrow,PackageSep at /home/val/.plenv/versions/5.32.0/lib/perl5/site_perl/5.32.0/Guacamole.pm line 2119.
xsawyerx commented 2 years ago

Merged #116.