GraphQL::Language::Grammar(3pm) | User Contributed Perl Documentation | GraphQL::Language::Grammar(3pm) |
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.
2022-03-27 | perl v5.34.0 |