HAPPY(1) | Happy Parser Generator | HAPPY(1) |
happy - the parser generator for Haskell
happy [OPTION]... file [OPTION]...
This manual page documents briefly the happy command.
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. Instead, it has documentation in various other formats, including DVI, Info and HTML; see below.
Happy is a parser generator system for Haskell. `HAPPY' is a dyslexic acronym for `A Yacc-like Haskell Parser generator'.
There are two types of grammar files, file.y and file.ly, with the latter observing the reverse comment bird track convention (i.e. each code line must begin with `>'). The examples distributed with Happy are all of the .ly form.
Caveat: When using hbc (Chalmers Haskell) the command argument structure is slightly different. This is because the hbc run time system takes some flags as its own (for setting things like the heap size, etc). This problem can be circumvented by adding a single dash (`-') to your command line. So when using a hbc generated version of Happy, the argument structure is:
happy - [OPTION]... file [OPTION]...
The programs follow the usual GNU command line syntax, with long options starting with two dashes (`--'). A summary of options is included below. For a complete description, see the other documentation.
This option has quite a significant effect on the performance of the resulting parser, but remember that parsers generated this way can only be compiled by GHC 3.02 and above.
This option may only be used in conjunction with -g.
This option may only be used in conjunction with -a.
The filename argument is optional, and if omitted the info file will be written to FILE.info (where FILE is the input file name with any extension removed).
/usr/share/happy-1.20.0
/usr/share/doc/happy, the Happy homepage (http://haskell.org/happy/)
Happy Version 1.20.0
Copyright (c) 1993-1996 Andy Gill, Simon Marlow; (c) 1997-2001 Simon Marlow
This manual page was written by Michael Weber <michaelw@debian.org>, for the Debian GNU/Linux system (but may be used by others).
2000-12-23 | Glasgow FP Suite |