01 Aug 2002 17:23:11 UTC
- Distribution: Parse-RecDescent-Deparse
- Module version: 1.00
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (2)
- Testers (592 / 0 / 0)
- KwaliteeBus factor: 0
- 36.75% Coverage
- License: unknown
- Activity24 month
- Download (4.09KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Why not adopt me?This distribution is up for adoption! If you're interested then please contact the PAUSE module admins via email.
Parse::RecDescent::Deparse - Turn a Parse::RecDescent object back into its grammar
use Parse::RecDescent::Deparse; my $foo = new Parse::RecDescent($grammar); print $foo->deparse;
This module adds the
deparsemethod to the
Parse::RecDescentclass, which returns a textual description of the grammar.
Why? There are at least two equally unlikely reasons why this could be useful:
You're working on something which grovels around in the
Parse::RecDescentobject data structure and want to view the effects of your changes. For instance, a
Parse::RecDescentoptimizer. (This package does not contain a functional
You want to understand how
Parse::RecDescentdoes what it does, and fancy the source of this package is a bit more of a gentle introduction than the source of
Parse::RecDescent::Deparsecan correctly deparse the metagrammar for
Parse::RecDescentinput, so that's a good thing. There are no bugs in the
Parse::RecDescentoptimizer as it clearly does not exist.
Module Install Instructions
To install Parse::RecDescent::Deparse, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Parse::RecDescent::Deparse
For more information on module installation, please visit the detailed CPAN module installation guide.