summaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y13
1 files changed, 8 insertions, 5 deletions
diff --git a/parser.y b/parser.y
index f1c103c..c4cd3d4 100644
--- a/parser.y
+++ b/parser.y
@@ -71,14 +71,17 @@ public:
%token LE GE EQ NE AND OR
-%left '[' ']'
+%left OR
+%left AND
+
+%left '<' LE GE '>'
+%left EQ NE
+
%left '!' '+' '-'
%left '*' '/' '%'
+%left '[' ']'
%left '.'
-%left '<' LE GE '>'
-%left EQ NE
-%left AND
-%left OR
+
%right '?' ':'
%type <expr> expr
contact: Jan Huwald // Impressum