JSON::Transform::Grammar - JSON::Transform grammar
use Pegex::Parser; use JSON::Transform::Grammar; use Pegex::Tree::Wrap; use Pegex::Input; my $parser = Pegex::Parser->new( grammar => JSON::Transform::Grammar->new, receiver => Pegex::Tree::Wrap->new, ); my $text = '"" <% [ $V+`id`:$K ]'; my $input = Pegex::Input->new(string => $text); my $got = $parser->parse($input);
This is a subclass of Pegex::Grammar, with the JSON::Transform grammar.
Override method from Pegex::Grammar.
To install JSON::Transform, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSON::Transform
CPAN shell
perl -MCPAN -e shell install JSON::Transform
For more information on module installation, please visit the detailed CPAN module installation guide.