File: README

package info (click to toggle)
happy 2.1.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: yacc: 2,501; haskell: 1,329; makefile: 273
file content (11 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11

Example of arithmetic expression parsing, with decoding of semantic
values (ie it gives a list of possible results of computation).

BUT: it runs the computations under a monad. In this example, certain 
cases of addition fail, which are caught and shown as zeros.

"make run" to run the test case.

For Hugs, load up Hugs.lhs - it doesn't produce graphs, and has easy entry 
point "test :: String -> IO ()