Lang::Tree::Builder - Build Classes from a Tree Definition File
use Lang::Tree::Builder; my $builder = new Lang::Tree::Builder(%params); $builder->build($config_file);
Lang::Tree::Builder takes a set of parameters and a tree definition file and uses Template::Toolkit to generate perl classes and an API.
Lang::Tree::Builder
It is intended primarily to take the drudgery out of writing all of the support classes needed to build abstract syntax trees.
my $builder = new Lang::Tree::Builder(%params);
%params are
%params
The output directory, default ./
./
A prefix class prepended to all generated classes, default none. If a prefix is provided, it is used literally. i.e. if you want MyPrefix:: you must supply the :: explicitly.
MyPrefix::
::
The language of the generated classes.
$builder->build($config_file);
Builds the tree classes, API and Visitor from definitions in the $config_file.
$config_file
Bill Hails <me@billhails.net>
Full documentation is in the command line interface treebuild.
To install Lang::Tree::Builder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lang::Tree::Builder
CPAN shell
perl -MCPAN -e shell install Lang::Tree::Builder
For more information on module installation, please visit the detailed CPAN module installation guide.