summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoel E. Denny <jdenny@clemson.edu>2009-08-28 00:57:06 -0400
committerJoel E. Denny <jdenny@clemson.edu>2009-08-28 07:35:23 -0400
commit3a414bbfa049a2f6e0f497a230bd86fe96a87884 (patch)
tree738d450588f3303638ebb45a9037969b7e128a60 /doc
parent4bb975e1ad59a39460fe6b16eec5c7830f904b6b (diff)
downloadbison-3a414bbfa049a2f6e0f497a230bd86fe96a87884.tar.gz
%define lr.type: make values lowercase IDs.
That is, "LALR" => "lalr", "IELR" => "ielr", and "canonical LR" => "canonical-lr". * NEWS (2.5): Update documentation. * doc/bison.texinfo (Decl Summary): Likewise. * src/ielr.c (ielr): Use new values. * src/ielr.h (ielr): Update documentation. * src/reader.c (prepare_percent_define_front_end_variables): Use and validate new values. * tests/existing.at (AT_TEST_EXISTING_GRAMMAR): Update test grammars. * tests/reduce.at (AT_TEST_LR_TYPE): Likewise. (cherry picked from commit 6ba9640406758718fdcfb7a1154e58ce4d9b196c)
Diffstat (limited to 'doc')
-rw-r--r--doc/bison.texinfo10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/bison.texinfo b/doc/bison.texinfo
index a4474df7..8ed32e0c 100644
--- a/doc/bison.texinfo
+++ b/doc/bison.texinfo
@@ -4956,7 +4956,7 @@ without performing any extra reductions.
@item Default Value:
@itemize
-@item @code{"accepting"} if @code{lr.type} is @code{"canonical LR"}.
+@item @code{"accepting"} if @code{lr.type} is @code{"canonical-lr"}.
@item @code{"all"} otherwise.
@end itemize
@end itemize
@@ -5020,7 +5020,7 @@ More user feedback will help to stabilize it.)
@item Accepted Values:
@itemize
-@item @code{"LALR"}.
+@item @code{"lalr"}.
While Bison generates @acronym{LALR} parser tables by default for
historical reasons, @acronym{IELR} or canonical @acronym{LR} is almost
always preferable for deterministic parsers.
@@ -5049,7 +5049,7 @@ investigate such problems while ignoring the more subtle differences
from @acronym{IELR} and canonical @acronym{LR}.
@end itemize
-@item @code{"IELR"}.
+@item @code{"ielr"}.
@acronym{IELR} is a minimal @acronym{LR} algorithm.
That is, given any grammar (@acronym{LR} or non-@acronym{LR}),
@acronym{IELR} and canonical @acronym{LR} always accept exactly the same
@@ -5063,7 +5063,7 @@ grammars, the number of conflicts for @acronym{IELR} is often an order
of magnitude less as well.
This can significantly reduce the complexity of developing of a grammar.
-@item @code{"canonical LR"}.
+@item @code{"canonical-lr"}.
@cindex delayed syntax errors
@cindex syntax errors delayed
The only advantage of canonical @acronym{LR} over @acronym{IELR} is
@@ -5079,7 +5079,7 @@ Even when canonical @acronym{LR} behavior is ultimately desired,
facilitate the development of a grammar.
@end itemize
-@item Default Value: @code{"LALR"}
+@item Default Value: @code{"lalr"}
@end itemize
@item namespace