1Pegex::Tree::Wrap(3)  User Contributed Perl Documentation Pegex::Tree::Wrap(3)
2
3
4

NAME

6       Pegex::Tree::Wrap - Pegex Wrapper Parse Tree Receiver
7

SYNOPSIS

9           use Pegex;
10           $tree = pegex($grammar, 'Pegex::Tree::Wrap')->parse($input);
11

DESCRIPTION

13       Pegex::Tree::Wrap is receiver class that will shape the captured data
14       from a Pegex parse operation into a tree made out of hashes. The keys
15       of the hashes are the rule names that matched, and the values are
16       arrays of captured data.
17
18       This module is not often used as a receiver base class, but it is the
19       default receiver for a Pegex parse. That's because the tree is very
20       readable with all the rule keys in it.
21

SEE ALSO

23       •   Pegex::Receiver
24
25       •   Pegex::Tree
26

AUTHOR

28       Ingy döt Net <ingy@cpan.org>
29
31       Copyright 2010-2020. Ingy döt Net.
32
33       This program is free software; you can redistribute it and/or modify it
34       under the same terms as Perl itself.
35
36       See <http://www.perl.com/perl/misc/Artistic.html>
37
38
39
40perl v5.38.0                      2023-07-21              Pegex::Tree::Wrap(3)
Impressum