View on
MetaCPAN
Ed J > GraphQL-0.13 > GraphQL::Grammar

Download:
GraphQL-0.13.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

GraphQL::Grammar - GraphQL grammar

SYNOPSIS ^

  use Pegex::Parser;
  use GraphQL::Grammar;
  use Pegex::Tree::Wrap;
  use Pegex::Input;

  my $parser = Pegex::Parser->new(
    grammar => GraphQL::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.

syntax highlighting: