NAME

Language::l33t - a l33t interpreter

VERSION

version 1.1.0

SYNOPSIS

use Language::l33t;

my $interpreter = Language::l33t->new;
$interpreter->set_source( 'Ph34r my l33t sk1llz' );
$interpreter->run;

DESCRIPTION

Language::l33t is a Perl interpreter of the l33t language created by Stephen McGreal and Alex Mole. For the specifications of l33t, refer to Language::l33t::Specifications.

METHODS

new( %options )

Creates a new interpreter. The options that can be passed to the function are:

source( $l33tcode )

Loads and "compiles" the string $l33tcode. If one program was already loaded, it is clobbered by the newcomer.

run( [ $nbr_iterations ] )

Runs the loaded program. If $nbr_iterations is given, interupts the program after this number of iterations even if it hasn't terminated. Returns 0 in case the program terminated by evaluating an END, 1 if it finished by reaching $nbr_iterations.

reset

Reset the interpreter to its initial setting. Code is recompiled, and pointers reset to their initial values.

E.g.

my $l33t = Language::l33t->new();
$l33t->load( $code );
$l33t->run;

# to run the same code a second time
$l33t->reset;
$l33t->run;

memory

Returns the memory of the interpreter in its current state as an array.

DIAGNOSTICS

SEE ALSO

Language::l33t::Specifications

THANKS

It goes without saying, special thanks go to Stephen McGreal and Alex Mole for inventing l33t. They are teh rOxX0rs.

AUTHOR

Yanick Champoux yanick@cpan.org endorse

COPYRIGHT AND LICENSE

This software is copyright (c) 2026, 2008 by Yanick Champoux.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.