NAME
Language::Homespring - Perl interpreter for "Homespring"
SYNOPSIS
use Language::Homespring;
my $hs = new Language::Homespring();
$hs->parse("bear hatchery Hello,. World ..\n powers");
print $hs->tick() for (1..100);
DESCRIPTION
This module is an interpreter for the Homespring language. It currently only implements a small subset of the homespring language and is broken in places. The Hello World example in the "examples" folder works fine though :)
METHODS
- new()
-
Creates a new Language::Homespring object, with a blank op-tree.
- parse( $source )
-
Parses $source into an op-tree, discarding any previous op-tree.
- tick()
-
Executes a single "turn" of the interpreter, returning any output as a scalar.
AUTHOR
Copyright (C) 2003 Cal Henderson <cal@iamcal.com>
Homespring is Copyright (C) 2003 Jeff Binder
SEE ALSO
Language::Homespring::Visualise
http://home.fuse.net/obvious/hs.html