version 1.30, 2014/06/04 06:55:50 |
version 1.31, 2015/09/09 21:23:31 |
|
|
.Os |
.Os |
.Sh NAME |
.Sh NAME |
.Nm yacc |
.Nm yacc |
.Nd an |
.Nd an LALR(1) parser generator |
.Tn LALR(1) |
|
parser generator |
|
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm yacc |
.Nm yacc |
.Op Fl dlrtv |
.Op Fl dlrtv |
|
|
.Nm |
.Nm |
reads the grammar specification in |
reads the grammar specification in |
.Ar file |
.Ar file |
and generates an |
and generates an LR(1) parser for it. |
.Tn LR(1) |
The parsers consist of a set of LALR(1) |
parser for it. |
|
The parsers consist of a set of |
|
.Tn LALR(1) |
|
parsing tables and a driver routine |
parsing tables and a driver routine |
written in the C programming language. |
written in the C programming language. |
.Nm |
.Nm |
|
|
.Sh DIAGNOSTICS |
.Sh DIAGNOSTICS |
If there are rules that are never reduced, the number of such rules is |
If there are rules that are never reduced, the number of such rules is |
written to the standard error. |
written to the standard error. |
If there are any |
If there are any LALR(1) |
.Tn LALR(1) |
|
conflicts, the number of conflicts is also written |
conflicts, the number of conflicts is also written |
to the standard error. |
to the standard error. |
.Sh SEE ALSO |
.Sh SEE ALSO |