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::Parser - GraphQL Pegex parser

Description

       Provides both an outside-accessible point of entry into the GraphQL parser (see above), and a subclass of
       Pegex::Parser to parse a document into an AST usable by GraphQL.

Methods

parse
         parse($source, $noLocation);

       NB that unlike in "Pegex::Parser" this is a function, not an instance method. This achieves hiding of
       Pegex implementation details.

   format_error
       Override of parent method. Returns a GraphQL::Error.

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

Name

       GraphQL::Language::Parser - GraphQL Pegex parser

Synopsis

         use GraphQL::Language::Parser qw(parse);
         my $parsed = parse(
           $source
         );

See Also