From 51356dd2ad33db6fb8f88fd1791f93612ff06d04 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Thu, 22 Nov 2012 14:24:54 +0100 Subject: [PATCH] doc: formatting changes * doc/bison.texi: Use @group. --- doc/bison.texi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/bison.texi b/doc/bison.texi index 18d3bb05..24d05d33 100644 --- a/doc/bison.texi +++ b/doc/bison.texi @@ -6994,30 +6994,38 @@ reduce/reduce conflict must be studied and usually eliminated. Here is the proper way to define @code{sequence}: @example +@group sequence: /* empty */ @{ printf ("empty sequence\n"); @} | sequence word @{ printf ("added word %s\n", $2); @} ; +@end group @end example Here is another common error that yields a reduce/reduce conflict: @example sequence: +@group /* empty */ | sequence words | sequence redirects ; +@end group +@group words: /* empty */ | words word ; +@end group +@group redirects: /* empty */ | redirects redirect ; +@end group @end example @noindent -- 2.47.2