GraphQ...rammar(3pm)
β¨ GraphQL::Language::Grammar β¨
okay bestie, so this is a page from the User Contributed Perl Documentation section, and it's literally just called GraphQL::Language::Grammar β it's the GraphQL grammar π
that's the whole name, no notes, periodt.
π¦ NAME π¦
GraphQL::Language::Grammar β it's giving GraphQL grammar πΈ
π SYNOPSIS π
okay so here's the whole vibe, copy it exactly bestie:
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);
like. look at her go π«Ά
π DESCRIPTION π
so basically this module is a subclass of Pegex::Grammar, except it comes preloaded with the GraphQL grammar inside it. that's it. that's the whole personality. it's iconic, it's lowkey minimal, and it works. β¨
π METHODS π
π make_tree
this one's an override of the method that comes from Pegex::Grammar. yes bestie, she said "not me taking that method and making it my own" β override energy fr fr π
π and that's the whole page!! mwah. written by the Perl Documentation crew, shipped with perl v5.34.0, dated 2022-03-27. go forth and parse, bestie πΈπβ¨
π¦ where this page comes from
- debian bookworm: libgraphql-perl 0.54-1 Β· Artistic-2.0
- debian trixie: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu noble: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu resolute: libgraphql-perl 0.54-1 Β· Artistic-2.0
- ubuntu stonking: libgraphql-perl 0.54-1 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms