Philip Crow > Bigtop-0.30 > Bigtop::Deparse

Download:
Bigtop-0.30.tar.gz

Annotate this POD

CPAN RT

New  2
Open  1
View Bugs
Report a bug
Source   Latest Release: Bigtop-0.33

NAME ^

Bigtop::Deparse - given an AST, makes a corresponding bigtop source file

SYNOPSIS ^

    use Bigtop::Deparser;

    my $source = Bigtop::Deparser->deparse( $ast );

DESCRIPTION ^

This module support TentMaker. It takes an ast as built by Bigtop::Parser.

METHODS ^

deparse

Params: a bigtop abstract syntax tree

Returns: source code which exactly corresponds to the tree

Note that whitespace is not preserved, but deparse tries hard to use pleasant indenting. If you have comments, they may have shifted due to deletions from the tree or whitespace changes.

AUTHOR ^

Phil Crow, <crow.phil@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (C) 2006, Phil Crow

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.