1Pegex::Bootstrap(3) User Contributed Perl Documentation Pegex::Bootstrap(3)
2
3
4
6 Pegex::Bootstrap - Bootstrapping Compiler for a Pegex Grammar
7
9 use Pegex::Bootstrap;
10 my $grammar_text = '... grammar text ...';
11 my $pegex_compiler = Pegex::Bootstrap->new();
12 my $grammar_tree = $pegex_compiler->compile($grammar_text)->tree;
13
15 The Pegex language is defined in Pegex. In order to do that, it was
16 necessary to make a bootstrap compiler that did the same thing. This
17 way we could slowly build up the grammar, and make sure that the 2
18 compilers do the same thing. Parsing the Pegex language itself is not
19 terribly hard, so this module just does it by hand.
20
21 Unless you are working on Pegex itself, you can ignore this module.
22
24 • Pegex::Compiler
25
27 Ingy döt Net <ingy@cpan.org>
28
30 Copyright 2010-2020. Ingy döt Net.
31
32 This program is free software; you can redistribute it and/or modify it
33 under the same terms as Perl itself.
34
35 See <http://www.perl.com/perl/misc/Artistic.html>
36
37
38
39perl v5.34.0 2021-07-22 Pegex::Bootstrap(3)