Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 09-Sep-2001 | - | ||||
glr/ | H | 09-Sep-2001 | - | 2,473 | 1,894 | |
igloo/ | H | 09-Sep-2001 | - | 236 | 156 | |
Calc.ly | H A D | 09-Sep-2001 | 3.4 KiB | 133 | 106 | |
DavesExample.ly | H A D | 09-Sep-2001 | 2.1 KiB | 91 | 74 | |
ErlParser.ly | H A D | 09-Sep-2001 | 9.6 KiB | 392 | 319 | |
ErrorTest.ly | H A D | 09-Sep-2001 | 4.3 KiB | 162 | 131 | |
LexerTest.ly | H A D | 09-Sep-2001 | 4.1 KiB | 158 | 127 | |
MonadTest.ly | H A D | 09-Sep-2001 | 3.6 KiB | 144 | 115 | |
PgnParser.ly | H A D | 09-Sep-2001 | 1.9 KiB | 96 | 74 | |
README | H A D | 09-Sep-2001 | 901 | 22 | 17 | |
SimonsExample.ly | H A D | 09-Sep-2001 | 1.6 KiB | 76 | 69 |
README
1These are a few examples of Happy parsers, taken from various sources. 2The are intended as illustrations, not as working, complete examples, 3as some require functions and datatypes imported from other sources. 4 5Calc.ly : The calculator example from the Happy manual 6DavesExample.ly : Parses simple lambda expressions to combinators 7SimonsExample.ly : Another lambda expression parser 8ErlParser.ly : A parser for Erlang 9MonadTest.ly : Demonstrates use of %monad 10LexerTest.ly : Demonstrates use of %monad and %lexer 11ErrorTest.ly : Demonstrates use of the 'error' token 12 13There are also a few more examples under happy/tests. 14 15A full Haskell 98 parser written using Happy is available from the GHC 16CVS repository in fptools/hslibs/hssource. See 17http://www.haskell.org/ghc/ for instructions on how to access the GHC 18CVS repository. 19 20-- 21Simon Marlow <simonmar@microsoft.com> 22