diff --git a/NEWS.md b/NEWS.md index 3fcb0ee8..49cdaca5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,43 @@ # NEWS for Lrama +## Lrama 0.6.5 (2024-03-xx) + +### Typed Midrule Actions + +User can specify the type of mid rule action by tag (``) instead of specifing it with in an action. + +``` +primary: k_case expr_value terms? + { + $$ = 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; + } + case_body + k_end + { + ... + } +``` + +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)