Acme-Aheui
view release on metacpan or search on metacpan
91011121314151617181920212223242526272829
my
$interpreter
= Acme::Aheui->new(
source
=>
'ì•„í¬'
);
$interpreter
->execute();
DESCRIPTION
An aheui interpreter.
See aheui language specification at
Most logic is based on the reference implementation by Puzzlet Chung.
PUBLIC METHODS
new
my
$interpreter
= Acme::Aheui->new(
source
=>
'ì•„í¬'
);
This method will create and
return
`Acme::Aheui' object.
execute
$interpreter
->execute();
lib/Acme/Aheui.pm view on Meta::CPAN
272829303132333435363738394041424344454647
my
$interpreter
= Acme::Aheui->new(
source
=>
'ì•„í¬'
);
$interpreter
->execute();
=head1 DESCRIPTION
An aheui interpreter.
See aheui language specification at L<https://aheui.github.io/specification.en>
Most logic is based on the reference implementation by Puzzlet Chung.
=cut
use
constant {
JONG_STROKE_NUMS
=>
[0, 2, 4, 4, 2, 5, 5, 3, 5, 7, 9, 9, 7, 9,
9, 8, 4, 4, 6, 2, 4, 1, 3, 4, 3, 4, 4, 3],
REQUIRED_ELEM_NUMS
=>
[0, 0, 2, 2, 2, 2, 1, 0, 1, 0, 1, 0, 2, 0, 1, 0, 2, 2, 0],
( run in 0.514 second using v1.01-cache-2.11-cpan-748bfb374f4 )