GraphQL::Language::Parser - GraphQL Pegex parser
use GraphQL::Language::Parser; my $parsed = GraphQL::Language::Parser->parse( $source );
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.
GraphQL::Language::Parser->parse($source, $noLocation);
NB that unlike in Pegex::Parser this is a class method, not an instance method. This achieves hiding of Pegex implementation details.
Pegex::Parser
Override of parent method. Returns a GraphQL::Error.
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.