/usr/share/doc/happy/examples/glr/expr-tree/README is in happy 1.19.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 | 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
|