Pegex::Tree(3pm)
π Pegex::Tree β the manual, but make it cute π
okay so bestie, welcome to Pegex::Tree (yes that's the 3pm one, the Perl module page, we're being fancy) β¨
πΈ NAME πΈ
Pegex::Tree β literally just Pegex Parse Tree Receiver. that's it. that's the name. iconic.
π SYNOPSIS π
use Pegex;
$tree = pegex($grammar, 'Pegex::Tree')->parse($input);
no cap, that's the whole vibe. you hand it a grammar, you hand it 'Pegex::Tree' as your receiver, you call .parse($input) on it, and boom β $tree is right there waiting for you π«Ά
β¨ DESCRIPTION β¨
so Pegex::Tree is a receiver class β and what does a receiver class do? it shapes the captured data from a Pegex parse operation into a tree. and that tree? it's made out of arrays. arrays all the way down, bestie π
and here's the thing: this module is a very common base class β honestly probably the most common base class β for writing your own receiver class. like, if you're gonna write a receiver, you're lowkey starting here. it's giving "starter pack" but in the most flattering way possible π
fr fr, this is the blueprint. you subclass it, you make it yours, you slay.
π AUTHOR π
Ingy dΓΆt Net <ingy@cpan.org> β the icon, the legend, the moment π
πΌ COPYRIGHT AND LICENSE πΌ
Copyright 2010-2020. Ingy dΓΆt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
and that's the whole page, bestie π no hidden sections, no extra lore, we kept every single crumb. go forth and build your tree π³π
signing off from the footer zone: this was Pegex::Tree(3pm), generated from perl v5.36.0 on 2022-11-19 π¦ mwah, bye π
π¦ where this page comes from
- debian bookworm: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpegex-perl 0.75-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms