2012-12-22 Glenn Morris <rgm@gnu.org>
+ * wisent.texi (Wisent Overview): Fix xref.
+ (Grammar format, Understanding the automaton): Avoid overfill.
+
* bovine.texi (Optional Lambda Expression): Allow line break.
* auth.texi (Help for users): Break long lines.
of GNU Bison 1.28 & 1.31.
For more details on the basic concepts for understanding Wisent, it is
-worthwhile to read the @ref{Top, Bison Manual, bison}.
+worthwhile to read the @ref{Top, Bison Manual, , bison}.
@ifhtml
@uref{http://www.gnu.org/manual/bison/html_node/index.html}.
@end ifhtml
can match the empty string. For example, here is how to define a
comma-separated sequence of zero or more @samp{exp} groupings:
-@example
+@smallexample
@group
(expseq (nil) ;; expseq: ;; empty
((expseq1)) ;; | expseq1
((expseq1 ?, exp)) ;; | expseq1 ',' exp
) ;; ;
@end group
-@end example
+@end smallexample
@cindex precedence level
@item precedence
Now the precedence of @code{UMINUS} can be used in specific rules:
-@example
+@smallexample
@group
(exp @dots{} ;; exp: @dots{}
((exp ?- exp)) ;; | exp '-' exp
@dots{} ;; @dots{}
) ;; ;
@end group
-@end example
+@end smallexample
If you forget to append @code{[UMINUS]} to the rule for unary minus,
Wisent silently assumes that minus has its usual precedence. This
$default reduce using rule 2 (exp)
-
state 9
exp -> exp . '+' exp (rule 1)
$default reduce using rule 3 (exp)
-
state 10
exp -> exp . '+' exp (rule 1)