PPI
PPI copied to clipboard
@adamkennedy : Why are there restrictions on what type of Element can be inserted before or after another Element? It does not seem to help the document remain viable Perl...
During a dzil build (while it was scanning a file with a UTF-16 BOM) I got: ``` Can't locate object method "_error" via package "PPI::Tokenizer" at /Users/ether/.perlbrew/libs/20.0@std/lib/perl5/PPI/Token/BOM.pm line 81. ```
``` use PPI; use PPI::Find; my $src = q{f($x, $z, $x);}; my $doc = PPI::Document->new(\$src); my $finder = PPI::Find->new( sub { $_[0]->isa('PPI::Statement'); }); $finder->start($doc); while ( my $token = $finder->match...
https://rt.cpan.org/Ticket/Display.html?id=30037 With PPI 1.215: ``` ppidump '$a=-xx::cc()' PPI::Document PPI::Statement [ 1, 1, 1 ] PPI::Token::Symbol '$a' [ 1, 3, 3 ] PPI::Token::Operator '=' [ 1, 4, 4 ] PPI::Token::Word '-xx'...
https://github.com/Perl-Critic/Perl-Critic/issues/500 is not happy with this "-1" parsing as a number rather than the operator '-' followed by the number 1: ``` ppidump '(1)-1' PPI::Document PPI::Statement PPI::Structure::List ( ... )...
from https://github.com/Perl-Critic/Perl-Critic/issues/192 , hash constructor parses as a code block ``` ppidump '0 || {b => 1, a => 1};' PPI::Document PPI::Statement [ 1, 1, 1 ] PPI::Token::Number '0' [...
Pod below `__END__` is not recognized if a `__DATA__` section is present. See #15 for additional info. ``` use strict; use warnings; use feature 'say'; use PPI::Document; =head1 Test This...
The "Gory details of parsing quoted constructs" of perlop explicitly mentions that backslashes are legal qw delimiters, e.g. "qw\a b c\". PPI gets it right unless there is nothing inside...
See: https://rt.cpan.org/Ticket/Display.html?id=57163
See: https://rt.cpan.org/Ticket/Display.html?id=43933