On 2015-07-03 05:05:54, RURBAN wrote:
Show quoted text> Unescaped left brace in regex is deprecated, passed through in regex;
> marked by <-- HERE in m/\G%{ <-- HERE / at
> /usr/local/lib/perl5/site_perl/5.14.4/Parse/Eyapp/Parse.pm line 3239.
>
> and more.
>
> please quote the 2 { in the internal regexes.
>
>
> --- lib/Parse/Eyapp/Parse.yp
> +++ lib/Parse/Eyapp/Parse.yp
> @@ -1320,13 +1320,13 @@ sub _Lexer {
> return($1, [ $1, $lineno[0] ]);
> };
>
> - $$input=~/\G\s*{/gc and return ('CODE', &slurp_perl_code());
> # }
> + $$input=~/\G\s*\{/gc and return ('CODE', &slurp_perl_code());
> # }
>
> if($lexlevel == 0) {# In head section
>
> $$input=~/\G%(left|right|nonassoc)/gc and return('ASSOC',[ uc($1),
> $lineno[0] ]);
>
> - $$input=~/\G%{/gc
> + $$input=~/\G%\{/gc
> and do {
> my($code);
This is now a hard error in perl 5.25.1:
# Failed test 'use Parse::Eyapp;'
# at t/01calc.t line 4.
# Tried to use 'Parse::Eyapp'.
# Error: Unescaped left brace in regex is illegal in regex; marked by <-- HERE in m/\G%{ <-- HERE / at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Parse.pm line 3239.
# Compilation failed in require at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Grammar.pm line 15.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Grammar.pm line 15.
# Compilation failed in require at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Lalr.pm line 6.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Lalr.pm line 6.
# Compilation failed in require at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Output.pm line 17.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp/Output.pm line 17.
# Compilation failed in require at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp.pm line 12.
# BEGIN failed--compilation aborted at /usr/home/eserte/.cpan/build/2016053100/Parse-Eyapp-1.182-GhfZeU/blib/lib/Parse/Eyapp.pm line 16.
# Compilation failed in require at t/01calc.t line 4.
# BEGIN failed--compilation aborted at t/01calc.t line 4.
Can't locate object method "new_grammar" via package "Parse::Eyapp" at t/01calc.t line 11, <DATA> line 58.
# Looks like your test exited with 255 just after 1.
t/01calc.t ..................................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 7/7 subtests
...