Pegex::Tree::Wrap(3pm)

Pegex::Tree::Wrap3pm

Pegex wrapper parse tree receiver

Usage

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

Overview

Pegex::Tree::Wrap is receiver class that will shape the captured data from a Pegex parse operation into a tree made out of hashes. The keys of the hashes are the rule names that matched, and the values are arrays of captured data.

This module is not often used as a receiver base class, but it is the default receiver for a Pegex parse. That's because the tree is very readable with all the rule keys in it.

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13
  6. Arch

Author

Ingy döt Net <[email protected]>

From perl-pegex 0.75-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.