hx509: Fix sel-gram.y shift/reduce conflicts

AND and OR are now binary operators, left-associative, with AND having
higher precedence than OR.

The not operator is now higher-precedence than the AND and OR operators.
This commit is contained in:
Nicolas Williams
2022-01-21 22:57:24 -06:00
parent e1fa08a4d6
commit 664b749399
2 changed files with 5 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ BUILT_SOURCES = \
hx509_err.c \
hx509_err.h
AM_YFLAGS = -d
AM_YFLAGS = -o sel-gram.c
dist_libhx509_la_SOURCES = \
ca.c \

View File

@@ -78,6 +78,10 @@
%token <string> STRING
%token <string> IDENTIFIER
%precedence '!'
%left kw_AND
%left kw_OR
%start start
%%