diff options
author | rodrigc <rodrigc@FreeBSD.org> | 2014-10-11 19:34:41 +0000 |
---|---|---|
committer | rodrigc <rodrigc@FreeBSD.org> | 2014-10-11 19:34:41 +0000 |
commit | a4222aadd697ce4b01020ab3ed88d54b0d53871f (patch) | |
tree | bda1498f6f047eb64827df7ff50e43b988d4eccb /contrib/byacc/yacc.1 | |
parent | e054537bc7c2b4e39e4560faa33b4806017025c1 (diff) | |
download | FreeBSD-src-a4222aadd697ce4b01020ab3ed88d54b0d53871f.zip FreeBSD-src-a4222aadd697ce4b01020ab3ed88d54b0d53871f.tar.gz |
Merge: 272655
Import byacc 20141005 from vendor
Diffstat (limited to 'contrib/byacc/yacc.1')
-rw-r--r-- | contrib/byacc/yacc.1 | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/contrib/byacc/yacc.1 b/contrib/byacc/yacc.1 index 357426e..8076ab0 100644 --- a/contrib/byacc/yacc.1 +++ b/contrib/byacc/yacc.1 @@ -1,4 +1,4 @@ -.\" $Id: yacc.1,v 1.23 2014/04/09 09:48:50 tom Exp $ +.\" $Id: yacc.1,v 1.24 2014/10/06 00:03:48 tom Exp $ .\" .\" .TH YACC 1 "July\ 15,\ 1990" .\" .UC 6 @@ -23,7 +23,7 @@ .de bP .IP \(bu 4 .. -.TH YACC 1 "January 1, 2014" "Berkeley Yacc" "User Commands" +.TH YACC 1 "October 5, 2014" "Berkeley Yacc" "User Commands" .SH NAME Yacc \- an LALR(1) parser generator .SH SYNOPSIS @@ -339,6 +339,23 @@ relying on directives embedded in the grammar file. .bP Bison's \*(``\fB\-y\fP\*('' option does not affect bison's lack of support for features of AT&T yacc which were deemed obsolescent. +.bP +\fBYacc\fP accepts multiple parameters with \fB%lex-param\fP and \fB%parse-param\fP +in two forms +.ES +{type1 name1} {type2 name2} ... +{type1 name1, type2 name2 ...} +.XE +.IP +Bison accepts the latter (though undocumented), but depending on the +release may generate bad code. +.bP +Like bison, \fByacc\fP will add parameters specified via \fB%parse-param\fP +to \fByyparse\fP, \fByyerror\fP and (if configured for back-tracking) +to the destructor declared using \fB%destructor\fP. +Bison puts the additional parameters \fIfirst\fP for +\fByyparse\fP and \fByyerror\fP but \fIlast\fP for destructors. +\fBYacc\fP matches this behavior. . .SH DIAGNOSTICS If there are rules that are never reduced, the number of such rules is |