Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

NAME

GraphQL::Language::Grammar - GraphQL grammar

SYNOPSIS

my $parser = Pegex::Parser->new(
grammar => GraphQL::Language::Grammar->new,
receiver => Pegex::Tree::Wrap->new,
);
my $text = 'query q { foo(name: "hi") { id } }';
my $input = Pegex::Input->new(string => $text);
my $got = $parser->parse($input);

DESCRIPTION

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

METHODS

make_tree

Override method from Pegex::Grammar.