+2003-10-05 Paul Eggert <eggert@twinsun.com>
+
+ * NEWS: Don't document %no-default-prec, as it's still
+ too experimental.
+ * doc/bison.texinfo: Document %no-default-prec only if
+ the defaultprec flag is set. Normally it's not.
+
2003-10-04 Paul Eggert <eggert@twinsun.com>
* data/glr.c (b4_rhs_value, b4_rhs_location): Yield a
@c @clear shorttitlepage-enabled
@c @set shorttitlepage-enabled
+@c Set following if you want to document %default-prec and %no-default-prec.
+@c This feature is experimental and may change in future Bison versions.
+@c @set defaultprec
+
@c ISPELL CHECK: done, 14 Jan 1993 --bob
@c Check COPYRIGHT dates. should be updated in the titlepage, ifinfo
Using it in a way that would be associative is a syntax error.
@end deffn
+@ifset defaultprec
@deffn {Directive} %default-prec
Assign a precedence to rules lacking an explicit @code{%prec} modifier
(@pxref{Contextual Precedence, ,Context-Dependent Precedence}).
@end deffn
+@end ifset
@deffn {Directive} %type
Declare the type of semantic values for a nonterminal symbol
Program}.
@end deffn
+@ifset defaultprec
@deffn {Directive} %no-default-prec
Do not assign a precedence to rules lacking an explicit @code{%prec}
modifier (@pxref{Contextual Precedence, ,Context-Dependent
Precedence}).
@end deffn
+@end ifset
@deffn {Directive} %no-parser
Do not include any C code in the parser file; generate tables only. The
@end group
@end example
+@ifset defaultprec
If you forget to append @code{%prec UMINUS} to the rule for unary
minus, Bison silently assumes that minus has its usual precedence.
This kind of problem can be tricky to debug, since one typically
The effect of @code{%no-default-prec;} can be reversed by giving
@code{%default-prec;}, which is the default.
+@end ifset
@node Parser States
@section Parser States
Equip the parser for debugging. @xref{Decl Summary}.
@end deffn
+@ifset defaultprec
@deffn {Directive} %default-prec
Assign a precedence to rules that lack an explicit @samp{%prec}
modifier. @xref{Contextual Precedence, ,Context-Dependent
Precedence}.
@end deffn
+@end ifset
@deffn {Directive} %defines
Bison declaration to create a header file meant for the scanner.
Bison declaration to rename the external symbols. @xref{Decl Summary}.
@end deffn
+@ifset defaultprec
@deffn {Directive} %no-default-prec
Do not assign a precedence to rules that lack an explicit @samp{%prec}
modifier. @xref{Contextual Precedence, ,Context-Dependent
Precedence}.
@end deffn
+@end ifset
@deffn {Directive} %no-lines
Bison declaration to avoid generating @code{#line} directives in the