logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

GraphQL::Language::Grammar - GraphQL grammar

Description

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

Methods

make_tree
       Override method from Pegex::Grammar.

perl v5.34.0                                       2022-03-27                    GraphQL::Language::Grammar(3pm)

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

See Also