Make "not" a builtin function rather than syntax.

Fixes a really awkward grammar issue.
This commit is contained in:
Stephen Dolan committed 2012-09-17 21:08:43 +01:00
1 parent 297a0679d1
commit 830610cef8
6 files changed
+10 -14

No files matched your search

-5
View File
@@ -53,7 +53,6 @@
%token END "end"
%token AND "and"
%token OR "or"
%token NOT "not"
%token SETPIPE "|="
%token SETPLUS "+="
%token SETMINUS "-="
@@ -210,10 +209,6 @@ Exp "and" Exp {
$$ = gen_and($1, $3);
} |
"not" Exp {
$$ = gen_not($2);
} |
Exp "//" Exp {
$$ = gen_definedor($1, $3);
} |