]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Make ** RIGHT associative
authorDale Weiler <killfieldengine@gmail.com>
Thu, 7 Mar 2013 22:14:04 +0000 (22:14 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Thu, 7 Mar 2013 22:14:04 +0000 (22:14 +0000)
lexer.h

diff --git a/lexer.h b/lexer.h
index e560f6d781aa54fd4b46cb637cf5cd7d585cb32c..83cb62470dc53f79a4da813ae1177f7f91091d80 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -185,7 +185,7 @@ static const oper_info c_operators[] = {
     { "%",   2, opid1('%'),         ASSOC_LEFT,  13, 0 },
 
     { "+",   2, opid1('+'),         ASSOC_LEFT,  12, 0 },
-    { "**",  2, opid2('*', '*'),    ASSOC_LEFT,  12, 0 },
+    { "**",  2, opid2('*', '*'),    ASSOC_RIGHT, 12, 0 },
     { "-",   2, opid1('-'),         ASSOC_LEFT,  12, 0 },
 
     { "<<",  2, opid2('<','<'),     ASSOC_LEFT,  11, 0 },