Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cfg-grammar: fix the precedence of ';'
In 6d74e60, the precedence of ';' has implicitly changed for filter rules, changing the meaning of filter expressions: The expression `not program("a"); message("b");` should have the following interpretation: `(not program("a")) and message("b")`. Due to accidentally changed precedence of ';', currently it is interpreted as `not (message("a") and message("b"))`. This patch recovers the original precedence, but also introduces precedence and left associativity for other semicolon-separated rules. All the other (non-filter) uses of the ';' token are unambiguous, so this declaration won't interfere with those rules. Signed-off-by: László Várady <laszlo.varady@anno.io> Signed-off-by: Attila Szakacs <attila.szakacs@axoflow.com>
- Loading branch information