Language::Homespring - Perl interpreter for "Homespring"
my $hs = new Language::Homespring();
$hs->parse("bear hatchery Hello,. World ..\n powers");
# run one tick
# run program until it ends or 1000 ticks are reached
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 :)
Creates a new Language::Homespring object, with a blank op-tree.
Parses $source into an op-tree, discarding any previous op-tree.
Executes a single "turn" of the interpreter, returning any output as a scalar.
Executes ticks until the universe is destroyed or the (optional) tick limit is reached. Output is sent to STDOUT;
upstream killing device
young range sense
young range switch
Copyright (C) 2003 Cal Henderson <email@example.com>
Homespring is Copyright (C) 2003 Jeff Binder
To install Language::Homespring, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.