mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
%define: accept unquoted values.
* NEWS (2.5): Group all %define changes together, and document
this one. Remove quotes in IELR and canonical LR entry.
* doc/bison.texinfo: Remove quotes in most examples throughout.
(Decl Summary): Update %define documentation.
(Table of Symbols): Likewise.
* src/ielr.c (LrType): Update documentation.
* src/parse-gram.y (content.opt): Add production for ID.
* tests/calc.at: Likewise.
* tests/existing.at: Likewise.
* tests/input.at: Likewise.
* tests/local.at: Likewise.
* tests/push.at: Likewise.
* tests/reduce.at: Likewise.
* tests/torture.at: Likewise.
(cherry picked from commit cf499cff31)
Conflicts:
doc/bison.texinfo
src/parse-gram.c
src/parse-gram.h
tests/actions.at
tests/calc.at
This commit is contained in:
@@ -1004,7 +1004,7 @@ AT_SETUP([[%define enum variables]])
|
||||
|
||||
# Front-end.
|
||||
AT_DATA([[input.y]],
|
||||
[[%define lr.default-reductions "bogus"
|
||||
[[%define lr.default-reductions bogus
|
||||
%%
|
||||
start: ;
|
||||
]])
|
||||
@@ -1017,7 +1017,7 @@ input.y:1.9-29: accepted value: `accepting'
|
||||
|
||||
# Back-end.
|
||||
AT_DATA([[input.y]],
|
||||
[[%define api.push-pull "neither"
|
||||
[[%define api.push-pull neither
|
||||
%%
|
||||
start: ;
|
||||
]])
|
||||
@@ -1052,7 +1052,7 @@ input.y:1.9-21: accepted value: `both'
|
||||
]])
|
||||
|
||||
AT_DATA([[input.y]],
|
||||
[[%define lr.keep_unreachable_states "maybe"
|
||||
[[%define lr.keep_unreachable_states maybe
|
||||
%%
|
||||
start: ;
|
||||
]])
|
||||
@@ -1096,11 +1096,11 @@ AT_BISON_CHECK([[input.y]], [0], [],
|
||||
])
|
||||
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines]], [[]])
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines]], [["false"]])
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines]], [[false]])
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines %glr-parser]], [[""]])
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines %glr-parser]], [["false"]])
|
||||
AT_CHECK_API_PURE([[%language "java"]], [["true"]])
|
||||
AT_CHECK_API_PURE([[%language "java"]], [["false"]])
|
||||
AT_CHECK_API_PURE([[%language "c++" %defines %glr-parser]], [[false]])
|
||||
AT_CHECK_API_PURE([[%language "java"]], [[true]])
|
||||
AT_CHECK_API_PURE([[%language "java"]], [[false]])
|
||||
|
||||
AT_CLEANUP
|
||||
|
||||
|
||||
Reference in New Issue
Block a user