Rename lr.default_reductions to lr.default-reductions.

* NEWS (2.5): Here.
* doc/bison.texinfo: Here.
* src/lalr.c (initialize_LA): Here.
* src/print.c (print_reductions): Here.
* src/reader.c (reader): Here.
* src/tables.c (action_row): Here.
* tests/input.at (%define enum variables): Here.
* tests/reduce.at (AT_TEST_LR_DEFAULT_REDUCTIONS): Here.
This commit is contained in:
Joel E. Denny
2009-04-29 21:48:21 -04:00
parent 0b59345789
commit 1d0f55cc84
9 changed files with 35 additions and 23 deletions

View File

@@ -938,12 +938,12 @@ AT_SETUP([[%define enum variables]])
# Front-end.
AT_DATA([[input.y]],
[[%define lr.default_reductions "bogus"
[[%define lr.default-reductions "bogus"
%%
start: ;
]])
AT_BISON_CHECK([[input.y]], [[1]], [[]],
[[input.y:1.9-29: invalid value for %define variable `lr.default_reductions': `bogus'
[[input.y:1.9-29: invalid value for %define variable `lr.default-reductions': `bogus'
input.y:1.9-29: accepted value: `all'
input.y:1.9-29: accepted value: `consistent'
input.y:1.9-29: accepted value: `accepting'

View File

@@ -1443,28 +1443,28 @@ dnl PARSER-EXIT-VALUE, PARSER-STDOUT, PARSER-STDERR
## ------------------------------- ##
## %define lr.default_reductions. ##
## %define lr.default-reductions. ##
## ------------------------------- ##
# AT_TEST_LR_DEFAULT_REDUCTIONS(GRAMMAR, INPUT, TABLES)
# -----------------------------------------------------
m4_define([AT_TEST_LR_DEFAULT_REDUCTIONS],
[
AT_TEST_TABLES_AND_PARSE([[no %define lr.default_reductions]],
AT_TEST_TABLES_AND_PARSE([[no %define lr.default-reductions]],
[[all]], [[]],
[[]],
[$1], [$2], [[]], [$3])
AT_TEST_TABLES_AND_PARSE([[%define lr.default_reductions "all"]],
AT_TEST_TABLES_AND_PARSE([[%define lr.default-reductions "all"]],
[[all]], [[]],
[[%define lr.default_reductions "all"]],
[[%define lr.default-reductions "all"]],
[$1], [$2], [[]], [$3])
AT_TEST_TABLES_AND_PARSE([[%define lr.default_reductions "consistent"]],
AT_TEST_TABLES_AND_PARSE([[%define lr.default-reductions "consistent"]],
[[consistent]], [[]],
[[%define lr.default_reductions "consistent"]],
[[%define lr.default-reductions "consistent"]],
[$1], [$2], [[]], [$3])
AT_TEST_TABLES_AND_PARSE([[%define lr.default_reductions "accepting"]],
AT_TEST_TABLES_AND_PARSE([[%define lr.default-reductions "accepting"]],
[[accepting]], [[]],
[[%define lr.default_reductions "accepting"]],
[[%define lr.default-reductions "accepting"]],
[$1], [$2], [[]], [$3])
])