GraphQL::Language::Grammar - GraphQL grammar
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);
This is a subclass of Pegex::Grammar, with the GraphQL grammar.
Override method from Pegex::Grammar.
To install GraphQL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GraphQL
CPAN shell
perl -MCPAN -e shell install GraphQL
For more information on module installation, please visit the detailed CPAN module installation guide.