diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2018-09-19 22:00:46 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2018-09-19 22:09:53 +0200 |
commit | bbfa419b892cec558d0924110abcf5d52b528339 (patch) | |
tree | d1f8f6a0b8609864db09065452c3599eb09eb043 /tests/actions.at | |
parent | b7613423ce12d417d04fdbd20ae2cb87dcd0582e (diff) | |
download | bison-bbfa419b892cec558d0924110abcf5d52b528339.tar.gz |
style: use midrule only, not mid-rule
The code was already using midrule only, never mid_rule. This is
simpler to remember, and matches a similar change we made from
look-ahead to lookahead.
* NEWS, doc/bison.texi, src/reader.c, src/scan-code.h, src/scan-code.l
* tests/actions.at, tests/c++.at, tests/existing.at: here.
Diffstat (limited to 'tests/actions.at')
-rw-r--r-- | tests/actions.at | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/actions.at b/tests/actions.at index 8289588e..5a010a1e 100644 --- a/tests/actions.at +++ b/tests/actions.at @@ -17,14 +17,14 @@ AT_BANNER([[User Actions.]]) -## ------------------ ## -## Mid-rule actions. ## -## ------------------ ## +## ----------------- ## +## Midrule actions. ## +## ----------------- ## -AT_SETUP([Mid-rule actions]) +AT_SETUP([Midrule actions]) -# Bison once forgot the mid-rule actions. It was because the action -# was attached to the host rule (the one with the mid-rule action), +# Bison once forgot the midrule actions. It was because the action +# was attached to the host rule (the one with the midrule action), # instead of being attached to the empty rule dedicated to this # action. @@ -64,11 +64,11 @@ AT_PARSER_CHECK([./input], 0, AT_CLEANUP -## ------------------------ ## -## Typed mid-rule actions. ## -## ------------------------ ## +## ----------------------- ## +## Typed midrule actions. ## +## ----------------------- ## -AT_SETUP([Typed mid-rule actions]) +AT_SETUP([Typed midrule actions]) AT_BISON_OPTION_PUSHDEFS AT_DATA_GRAMMAR([[input.y]], @@ -123,7 +123,7 @@ AT_DATA_GRAMMAR([[1.y]], [[%% exp: a b; a: /* empty. */ {}; -// A mid-rule action does not count as an empty rule. +// A midrule action does not count as an empty rule. b: {} {}; ]]) @@ -1463,11 +1463,11 @@ AT_CLEANUP -## ------------------------------------------------------ ## -## Default %printer and %destructor for mid-rule values. ## -## ------------------------------------------------------ ## +## ----------------------------------------------------- ## +## Default %printer and %destructor for midrule values. ## +## ----------------------------------------------------- ## -AT_SETUP([Default %printer and %destructor for mid-rule values]) +AT_SETUP([Default %printer and %destructor for midrule values]) AT_BISON_OPTION_PUSHDEFS([%debug]) AT_DATA_GRAMMAR([[input.y]], |