Acme-Turing
view release on metacpan or search on metacpan
to call them in.
=over 2
=item B<new> steps=>STEPS
Creates the Turing machine. The argument
is optional. It specifies a maximum number of steps that
the machine is allowed to go through before it is forced to stop
(to avoid endless looping); the default is 250 steps. The machine
will be created with a tape that is initially 200 squares in length.
Turing machine
tapes, however, are infinite, so the tape will be automatically made
longer whenever necessary; the only limit on the tape length is the
amount of available storage.
The newly created machine is in the START state. The tape is
initialized to a series of single blanks (i.e., scalars
of length 1 containing ' '). The tape head is positioned over the
middle of the tape, i.e. at C<int($tape_length/2)> = 100 =
the 101st symbol. Every square must contain
at least one character; empty strings are not allowed.
Also, blanks may not be written except by "erasing" (see below).
new() returns a hash reference. The specification for the machine
(C<$machine-E<gt>{spec}>) is empty.
You must then populate the specification
for your machine, as described next.
=item B<add_spec> CONDITIONS ACTIONS
( run in 0.538 second using v1.01-cache-2.11-cpan-65fba6d93b7 )