expr-parser.pl - A simple expression parser from Mark Jason Dominus' "Higher Order Perl"
This is a perl6 translation of the expression parser from HOP. It is intended as to be a straight translation i.e it takes advantage of function signatures but doesn't change the code unnecessarily. I have changed the code in places, but that was mostly for my own sanity, so feel free to revert to the original code, which can be found here:
http://hop.perl.plover.com/Examples/
Its current state is that the lexer looks to be built fine but when it comes to parsing the expression there are issues with the closures, which aren't too obvious at this point, and the parsing fails. So some functional debugging ninjas would probably do quite well at this. Introspection will definitely help.
Originally from Higher-Order Perl by Mark Dominus, published by Morgan Kaufmann Publishers, Copyright 2005 by Elsevier Inc
Dan Brook (Perl 6 translator)
To install Perl6::Pugs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl6::Pugs
CPAN shell
perl -MCPAN -e shell install Perl6::Pugs
For more information on module installation, please visit the detailed CPAN module installation guide.