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:
@@ -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 \
|
||||
|
@@ -78,6 +78,10 @@
|
||||
%token <string> STRING
|
||||
%token <string> IDENTIFIER
|
||||
|
||||
%precedence '!'
|
||||
%left kw_AND
|
||||
%left kw_OR
|
||||
|
||||
%start start
|
||||
|
||||
%%
|
||||
|
Reference in New Issue
Block a user