diff options
author | yui-knk <spiketeika@gmail.com> | 2024-03-24 14:33:04 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2024-03-25 08:34:30 +0900 |
commit | e86a6191660c613e7879e62b564502eaf5456495 (patch) | |
tree | f471397b8647454996d288f99fd2ddc52b23a2ec /tool/lrama/NEWS.md | |
parent | 5e4b4d667441461f6384b2afb47df855c06d2e20 (diff) |
Lrama v0.6.5
Diffstat (limited to 'tool/lrama/NEWS.md')
-rw-r--r-- | tool/lrama/NEWS.md | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tool/lrama/NEWS.md b/tool/lrama/NEWS.md index 3fcb0ee88a..96aaaf94f5 100644 --- a/tool/lrama/NEWS.md +++ b/tool/lrama/NEWS.md @@ -1,5 +1,45 @@ # NEWS for Lrama +## Lrama 0.6.5 (2024-03-25) + +### Typed Midrule Actions + +User can specify the type of mid rule action by tag (`<bar>`) instead of specifying it with in an action. + +``` +primary: k_case expr_value terms? + { + $<val>$ = p->case_labels; + p->case_labels = Qnil; + } + case_body + k_end + { + ... + } +``` + +can be written as + +``` +primary: k_case expr_value terms? + { + $$ = p->case_labels; + p->case_labels = Qnil; + }<val> + case_body + k_end + { + ... + } +``` + +`%destructor` for midrule action is invoked only when tag is specified by Typed Midrule Actions. + +Difference from Bison's Typed Midrule Actions is that tag is postposed in Lrama however it's preposed in Bison. + +Bison supports this feature from 3.1. + ## Lrama 0.6.4 (2024-03-22) ### Parameterizing rules (preceded, terminated, delimited) |