Add '-y' for bison compatibility.
Obtained from: http://invisible-island.net
This commit is contained in:
parent
c81609f43f
commit
7846096d2b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214964
@ -166,7 +166,7 @@ getargs(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "b:dlo:p:rtv")) != -1)
|
while ((ch = getopt(argc, argv, "b:dlo:p:rtvy")) != -1)
|
||||||
{
|
{
|
||||||
switch (ch)
|
switch (ch)
|
||||||
{
|
{
|
||||||
@ -202,6 +202,10 @@ getargs(int argc, char *argv[])
|
|||||||
vflag = 1;
|
vflag = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'y':
|
||||||
|
/* for bison compatibility -- byacc is already POSIX compatible */
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
.Nd an LALR(1) parser generator
|
.Nd an LALR(1) parser generator
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Nm
|
.Nm
|
||||||
.Op Fl dlrtv
|
.Op Fl dlrtvy
|
||||||
.Op Fl b Ar file_prefix
|
.Op Fl b Ar file_prefix
|
||||||
.Op Fl o Ar output_filename
|
.Op Fl o Ar output_filename
|
||||||
.Op Fl p Ar symbol_prefix
|
.Op Fl p Ar symbol_prefix
|
||||||
@ -118,6 +118,10 @@ so that debugging statements will be incorporated in the compiled code.
|
|||||||
Cause a human-readable description of the generated parser to
|
Cause a human-readable description of the generated parser to
|
||||||
be written to the file
|
be written to the file
|
||||||
.Pa y.output .
|
.Pa y.output .
|
||||||
|
.It Fl y
|
||||||
|
NOOP for bison compatibility.
|
||||||
|
.Nm
|
||||||
|
is already designed to be POSIX yacc compatible.
|
||||||
.El
|
.El
|
||||||
.Sh ENVIRONMENT
|
.Sh ENVIRONMENT
|
||||||
.Bl -tag -width ".Ev TMPDIR"
|
.Bl -tag -width ".Ev TMPDIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user