Bigtop::Deparse - given an AST, makes a corresponding bigtop source file
use Bigtop::Deparser;
my $source = Bigtop::Deparser->deparse( $ast );
This module support TentMaker. It takes an ast as built by Bigtop::Parser.
- 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.
Phil Crow, <crow.phil@gmail.com>
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.