Pegex::Bootstrap(3pm)
β¨ Pegex::Bootstrap β¨
okay so bestie, welcome to Pegex::Bootstrap β the Bootstrapping Compiler for a Pegex Grammar π this is a page from the User Contributed Perl Documentation section, and honestly? she's a little legend. let's get into it π«Ά
πΈ SYNOPSIS πΈ
use Pegex::Bootstrap;
my $grammar_text = '... grammar text ...';
my $pegex_compiler = Pegex::Bootstrap->new();
my $grammar_tree = $pegex_compiler->compile($grammar_text)->tree;
that's the whole vibe fr fr β load it, hand it some grammar text, and it hands you back a tree π³
π DESCRIPTION π
okay so the tea β the Pegex language is defined in Pegex. and likeβ¦ to actually do that, somebody had to make a bootstrap compiler that did the exact same thing. why?? because that way they could slowly build up the grammar, and make sure that the 2 compilers do the same thing π―ββοΈ no cap, that's the whole strategy.
and here's the thing β parsing the Pegex language itself is not terribly hard, so this module just does it by hand. iconic honestly. main character energy.
β οΈ real talk: unless you are working on Pegex itself, you can ignore this module. literally just walk past her, she's doing her own thing π
π¦ SEE ALSO π¦
Pegex::Compiler
π AUTHOR π
Ingy dΓΆt Net <ingy@cpan.org> π
π 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!! π this lil cutie came to you via perl v5.36.0, dated 2022-11-19, and yes the manual page is literally also named Pegex::Bootstrap(3pm) β full circle moment, we love to see it πβ¨ bye ily!! π§
π¦ 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