Language::Homespring::Visualise - An op-tree viewer for "Homespring"
use Language::Homespring; use Language::Homespring::Visualise; my $code = "bear hatchery Hello,. World ..\n powers"; my $hs = new Language::Homespring(); $hs->parse($code); my $vis = new Language::Homespring::Visualise({'interp' => $hs}); print $vis->do();
This module implements a fairly quick and dirty viewer for Homespring op-trees. It's very useful for checking that your programming is parsing correctly.
Creates a new Language::Homespring::Visualise object. The single hash argument contains initialisation info. The only key currently supported (and required!) is 'interp', which should point to the Language::Homespring object you wish to visualise.
Returns a string containing a visualisation of the op-tree.
Copyright (C) 2003 Cal Henderson <cal@iamcal.com>
perl
Language::Homespring
To install Language::Homespring, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Language::Homespring
CPAN shell
perl -MCPAN -e shell install Language::Homespring
For more information on module installation, please visit the detailed CPAN module installation guide.