Language::Ook - a Ook! interpreter.


Language-Ook documentation  | view source Contained in the Language-Ook distribution.

Index


NAME

Top

Language::Ook - a Ook! interpreter.

SYNOPSIS

Top

    use Language::Ook;
    my $interp = new Language::Ook( "program.ook" );
    $interp->run_code;

    # Print the Perl code.
    $interp->print_code;




DESCRIPTION

Top

A programming language should be writable and readable by orang-utans. So Ook! is a programming language designed for orang-utans.

Ook! is bijective with BrainFuck, and thus, Turing-complete.

CONSTRUCTOR

Top

new( [filename] )

Create a new Ook interpreter. If a filename is provided, then read and store the content of the file.

ACCESSORS

Top

code ( )

Return the associated Perl code.

PUBLIC METHODS

Top

read_file( filename )

Read a file (given as argument) and store its code.

Side effect: clear the previous code.

run_code( )

Run the stored code.

AUTHOR

Top

Jerome Quelin, <jquelin@cpan.org>

COPYRIGHT

Top

SEE ALSO

Top

http://www.dangermouse.net/esoteric/ook.html

Language-Ook documentation  | view source Contained in the Language-Ook distribution.