From 2438fa4435d6393168412574a3ef94396a4debe5 Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sun, 8 May 2022 13:07:56 +0900 Subject: Add #assign directive An #assign directive changes only precedence. --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 92c270c..bf89c10 100644 --- a/README.md +++ b/README.md @@ -501,6 +501,8 @@ foobar `#left` and `#right` directives allow you to define precedence and associativiry of symbols. `#left`/`#right` each assign the left/right associativity to symbols. +If you want to change precedence, `#assign` directive helps you. `#assign` directive changes only precedence, not associativity. + When the right-most terminal symbol of an alternative has precedence or associativity defined explicitly, the alternative inherits its precedence and associativity. `#prec` directive assigns the same precedence as a specified symbol to an alternative. -- cgit v1.2.3