From 44bd2efa5b486266ec1fbc20476b0cef042a5727 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Thu, 14 Dec 2023 17:32:52 +0800 Subject: [PATCH] Add "User defined parameterizing rules" to NEWS.md --- NEWS.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/NEWS.md b/NEWS.md index de4c3bbf..4b9c38b5 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,25 @@ # NEWS for Lrama +## Lrama 0.6.0 (202X-XX-XX) + +### User defined parameterizing rules + +Allow to define parameterizing rule by `%rule` directive. + +``` +%rule pair(X, Y): X Y { $$ = $1 + $2; } + ; + +%% + +program: stmt + ; + +stmt: pair(ODD, EVEN) + | pair(EVEN, ODD) + ; +``` + ## Lrama 0.5.11 (2023-12-02) ### Type specification of parameterizing rules