root/examples/rpn/README

Revision 8662, 1.1 kB (checked in by iblech, 3 years ago)

* Usual svn props.
* util/file_to_hs.pl: "DO NOT EDIT THIS FILE" is added to the output files now.

  • Property svn:mime-type set to text/plain; charset=UTF-8
  • Property svn:eol-style set to native
Line 
1This started as a little exercise for asavige to
2learn Haskell.
3
4I started by writing a simple RPN (Reverse Polish Notation)
5evaluator in a "natural"/"clear" (non-golf;-) style in Perl 5.
6Then converted it to both Perl 6 and Haskell.
7
8Being a TDD Fascist, I naturally wrote a unit test for the
9little evaluator function in each of the languages.
10
11Since then, starting with the addition of the piln
12sub-directory, this directory has morphed (in a positive way)
13as a place to showcase and compare how the same algorithm
14and its unit tests are expressed in different languages
15(a bit like http://www.99-bottles-of-beer.net/).
16
17Some references:
18
19http://www.perlmonks.org/?node_id=520826
20(the p5/p6/haskell code was discussed/analysed there)
21
22http://perlgolf.sourceforge.net/TPR/0/5a/
23(in particular, the test cases in the test program)
24
25http://en.wikipedia.org/wiki/Haskell_programming_language
26(example of simple Haskell RPN there)
27
28http://www.cse.unsw.edu.au/~dons/code/h4sh/
29(in particular, his drop in replacement for HUnit)
30
31On CPAN: Math::RPN, Parse::RPN, Affix::Infix2Postfix
32(any others, please let me know).
33
34Cheers,
35asavige aka mad golfer (30 Dec 2005)
Note: See TracBrowser for help on using the browser.