[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] doc: formatting changes
From: |
Akim Demaille |
Subject: |
[PATCH 1/4] doc: formatting changes |
Date: |
Thu, 22 Nov 2012 16:10:27 +0100 |
* 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 18d3bb0..24d05d3 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
address@hidden
sequence:
/* empty */ @{ printf ("empty sequence\n"); @}
| sequence word @{ printf ("added word %s\n", $2); @}
;
address@hidden group
@end example
Here is another common error that yields a reduce/reduce conflict:
@example
sequence:
address@hidden
/* empty */
| sequence words
| sequence redirects
;
address@hidden group
address@hidden
words:
/* empty */
| words word
;
address@hidden group
address@hidden
redirects:
/* empty */
| redirects redirect
;
address@hidden group
@end example
@noindent
--
1.8.0