Acme-Turing
view release on metacpan or search on metacpan
tape => [],
tape_pos => 0,
cur_state => 'START',
@_ };
$self->{'steps'} ||= 250;
my $tapelen = 200;
$self->{'tape'} = [ (" ") x $tapelen ];
$self->{'tape_pos'} = int($tapelen / 2);
return bless($self, $class);
}
# Add an entry to the spec hash.
sub add_spec {
my $self = shift;
my ($hkey, $hentry) = @_;
Carp::croak("No entry defined") unless defined($hentry);
$self->{'spec'}{$hkey} = $hentry;
return;
( run in 1.235 second using v1.01-cache-2.11-cpan-de7293f3b23 )