Pegex has a growing number of tutorials on how to do various parsing tasks.
This document is just an index to the current tutorials.
This is a very in-depth tutorial of the creation of the module Pegex::JSON (a JSON decoder that uses Pegex) and the thought that went into creating it. It covers almost all of the Pegex::Syntax as well.
Pegex comes with an eg/ directory. One example is "eg/calculator/calculator1.pl" in Pegex. It's a simple precedence parser (and evaluator) for arithmetic expressions like this one:
eg/
1 * (2 + 3) / (4 ^ 5 ^ 6 - -7)
API documentation.
A detailed description of the Pegex grammar language syntax.
A list of all things Pegex.
To install Pegex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pegex
CPAN shell
perl -MCPAN -e shell install Pegex
For more information on module installation, please visit the detailed CPAN module installation guide.