Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 8de1f55ea6a1a64d0f3f3ea116288458 > files > 48

happy-1.17-3mdv2009.0.i586.rpm


Example of arithmetic expression parsing, but producing a labelled
forest. 

Note use of polymorphic type in the labels. See the code more more 
discussion.

"make run" to run the test case.

For Hugs, load up Hugs.lhs - it is a simplified version of Main, with entry
point "test :: String -> IO ()"

NOTE: you need the -98 flag on Hugs, owing to non-standard class use