aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parser.mly
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parser.mly')
-rw-r--r--lib/parser.mly3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parser.mly b/lib/parser.mly
index c85eccc..4bac905 100644
--- a/lib/parser.mly
+++ b/lib/parser.mly
@@ -8,7 +8,7 @@ open Ast
%token <string> NAME
%token <string> LABEL
%token LBRACKET RBRACKET LBRACE RBRACE LPAREN RPAREN HASH_LPAREN
-%token BAR AND OR EOF
+%token BAR AND OR NOT EOF
%start <Ast.statement list> program
@@ -32,6 +32,7 @@ node:
conjunction:
| left = conjunction; AND; right = operand { And (left, right) }
+ | left = conjunction; NOT; right = operand { Not (left, right) }
| operand = operand { operand }
operand: