Pegex::Tree(3pm)

πŸ“¦
version 0.75 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 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