Provided by: libgraphql-perl_0.54-1_all
NAME
GraphQL::Language::Grammar - GraphQL grammar
SYNOPSIS
use Pegex::Parser; use GraphQL::Language::Grammar; use Pegex::Tree::Wrap; use Pegex::Input; 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.