]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
OP_PREFIX flag for ~ and !
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 12:24:12 +0000 (14:24 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 12:24:12 +0000 (14:24 +0200)
lexer.h

diff --git a/lexer.h b/lexer.h
index ae8812b261c5be6e68252a78704e2e32438b59c7..c224c873b91850f6179ae24b4112db6331ea7c58 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -134,8 +134,8 @@ static const oper_info operators[] = {
 
     { ".",   2, opid1('.'),         ASSOC_LEFT,  15, 0 },
 
 
     { ".",   2, opid1('.'),         ASSOC_LEFT,  15, 0 },
 
-    { "!",   1, opid2('!', 'P'),    ASSOC_RIGHT, 14, 0 },
-    { "~",   1, opid2('~', 'P'),    ASSOC_RIGHT, 14, 0 },
+    { "!",   1, opid2('!', 'P'),    ASSOC_RIGHT, 14, OP_PREFIX },
+    { "~",   1, opid2('~', 'P'),    ASSOC_RIGHT, 14, OP_PREFIX },
     { "+",   1, opid2('+','P'),     ASSOC_RIGHT, 14, OP_PREFIX },
     { "-",   1, opid2('-','P'),     ASSOC_RIGHT, 14, OP_PREFIX },
     { "++",  1, opid3('+','+','P'), ASSOC_RIGHT, 14, OP_PREFIX },
     { "+",   1, opid2('+','P'),     ASSOC_RIGHT, 14, OP_PREFIX },
     { "-",   1, opid2('-','P'),     ASSOC_RIGHT, 14, OP_PREFIX },
     { "++",  1, opid3('+','+','P'), ASSOC_RIGHT, 14, OP_PREFIX },