blob: 914ee070138b73ea795814197e6c4583c1f22e1a [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001.Dd 2002-10-04
2.Dt LEMON 1
3.Os "Debian GNU/Linux"
4.\" Manual page created by Guus Sliepen <guus@debian.org>
5.Sh NAME
6.Nm lemon
7.Nd The Lemon Parser Generator
8.Sh SYNOPSIS
9.Nm
10.Op Fl bcgmqsx
11.Ar input
12.Sh DESCRIPTION
13.Nm
14is an LALR(1) parser generator for C or C++.
15It does the same job as bison and yacc.
16But
17.Nm
18is not another bison or yacc clone.
19It uses a different grammar syntax which is designed to reduce the number of coding errors.
20.Nm
21also uses a more sophisticated parsing engine that is faster than yacc and bison
22and which is both reentrant and thread-safe.
23Furthermore,
24.Nm
25implements features that can be used to eliminate resource leaks,
26making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers.
27.Pp
28.Nm
29will read the grammer from
30.Ar input
31and write out a parser for that grammar in the C language.
32.Sh OPTIONS
33.Bl -tag -width indent
34.It Fl b
35Print only the basis in report.
36.It Fl c
37Don't compress the action table.
38.It Fl g
39Print grammar without actions.
40.It Fl m
41Output a makeheaders compatible file.
42.It Fl q
43(Quiet) Don't print the report file.
44.It Fl s
45Print parser stats to standard output.
46.It Fl x
47Print the version number.
48.El
49.Sh FILES
50.Bl -tag -width indent
51.It Pa /usr/share/lemon/lempar.c
52Driver template for the
53.Nm
54parser generator.
55.El
56.Sh AUTHOR
57.Nm
58has been written by
59.An D. Richard Hipp Aq drh@hwaci.com .
60.Pp
61This manual page was written by
62.An Guus Sliepen Aq guus@debian.org
63for the Debian GNU/Linux system.