• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Sep-2001-

glr/H09-Sep-2001-2,4731,894

igloo/H09-Sep-2001-236156

Calc.lyH A D09-Sep-20013.4 KiB133106

DavesExample.lyH A D09-Sep-20012.1 KiB9174

ErlParser.lyH A D09-Sep-20019.6 KiB392319

ErrorTest.lyH A D09-Sep-20014.3 KiB162131

LexerTest.lyH A D09-Sep-20014.1 KiB158127

MonadTest.lyH A D09-Sep-20013.6 KiB144115

PgnParser.lyH A D09-Sep-20011.9 KiB9674

READMEH A D09-Sep-2001901 2217

SimonsExample.lyH A D09-Sep-20011.6 KiB7669

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