☻ 唐鳳 ☺
and 1 contributors

NAME

expr-parser.pl - A simple expression parser from Mark Jason Dominus' "Higher Order Perl"

DESCRIPTION

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.

AUTHOR

Originally from Higher-Order Perl by Mark Dominus, published by Morgan Kaufmann Publishers, Copyright 2005 by Elsevier Inc

Dan Brook (Perl 6 translator)