mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 07:43:03 +00:00
* tests/regression.at (Mixing %token styles): New test.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2001-11-02 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* tests/regression.at (Mixing %token styles): New test.
|
||||||
|
|
||||||
2001-11-02 Akim Demaille <akim@epita.fr>
|
2001-11-02 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/reader.c (parse_thong_decl): Formatting changes.
|
* src/reader.c (parse_thong_decl): Formatting changes.
|
||||||
|
|||||||
@@ -44,6 +44,29 @@ AT_CLEANUP([duplicate.*])
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## ---------------------- ##
|
||||||
|
## Mixing %token styles. ##
|
||||||
|
## ---------------------- ##
|
||||||
|
|
||||||
|
|
||||||
|
AT_SETUP([Mixing %token styles])
|
||||||
|
|
||||||
|
# Taken from the documentation.
|
||||||
|
AT_DATA([input.y],
|
||||||
|
[[%token <operator> OR "||"
|
||||||
|
%token <operator> LE 134 "<="
|
||||||
|
%left OR "<="
|
||||||
|
%%
|
||||||
|
exp: ;
|
||||||
|
%%
|
||||||
|
]])
|
||||||
|
|
||||||
|
AT_CHECK([bison -v input.y -o input.c], 0, ignore, ignore)
|
||||||
|
|
||||||
|
AT_CLEANUP([input.*])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ---------------------- ##
|
## ---------------------- ##
|
||||||
## %union and --defines. ##
|
## %union and --defines. ##
|
||||||
## ---------------------- ##
|
## ---------------------- ##
|
||||||
|
|||||||
Reference in New Issue
Block a user