The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

JSON::Transform::Grammar - JSON::Transform grammar

SYNOPSIS

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);

DESCRIPTION

This is a subclass of Pegex::Grammar, with the JSON::Transform grammar.

METHODS

make_tree

Override method from Pegex::Grammar.