Simon Cozens > Parse-RecDescent-Deparse-1.00 > Parse::RecDescent::Deparse

Download:
Parse-RecDescent-Deparse-1.00.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 1.00   Source  

NAME ^

Parse::RecDescent::Deparse - Turn a Parse::RecDescent object back into its grammar

SYNOPSIS ^

  use Parse::RecDescent::Deparse;

  my $foo = new Parse::RecDescent($grammar);
  print $foo->deparse;

DESCRIPTION ^

This module adds the deparse method to the Parse::RecDescent class, which returns a textual description of the grammar.

Why? There are at least two equally unlikely reasons why this could be useful:

BUGS

Parse::RecDescent::Deparse can correctly deparse the metagrammar for Parse::RecDescent input, so that's a good thing. There are no bugs in the Parse::RecDescent optimizer as it clearly does not exist.

AUTHOR ^

Simon Cozens, simon@cpan.org

SEE ALSO ^

Parse::RecDescent.

syntax highlighting: