Pegex::Forth - Forth Interpreter with a Pegex Compiler
Commandline:
> pegex-forth program.forth > echo '3 4 + .' | pegex-forth # Print 7
In code:
use Pegex::Forth; Pegex::Forth->new->run('3 4 + .'); # Print 7 $num = Pegex::Forth->new->run('3 4 +'); # Return 7
Pegex::Forth is a Forth interpreter engine that uses Pegex to drive it.
Pegex
Ingy döt Net <ingy@cpan.org>
Copyright 2014. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Pegex::Forth, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pegex::Forth
CPAN shell
perl -MCPAN -e shell install Pegex::Forth
For more information on module installation, please visit the detailed CPAN module installation guide.