NAME

Language::Homespring::Visualise - An op-tree viewer for "Homespring"

SYNOPSIS

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();

DESCRIPTION

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.

METHODS

new({'interp' => $hs})

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.

do()

Returns a string containing a visualisation of the op-tree.

AUTHOR

Copyright (C) 2003 Cal Henderson <cal@iamcal.com>

SEE ALSO

perl

Language::Homespring