Pegex::Bootstrap(3pm)

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

✨ 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 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