Debian Codegraph @

examples/glr/expr-monad/README

raw
1
2 Example of arithmetic expression parsing, with decoding of semantic
3 values (ie it gives a list of possible results of computation).
4
5 BUT: it runs the computations under a monad. In this example, certain
6 cases of addition fail, which are caught and shown as zeros.
7
8 "make run" to run the test case.
9
10 For Hugs, load up Hugs.lhs - it doesn't produce graphs, and has easy entry
11 point "test :: String -> IO ()