]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.h
Implement exponentiation operator `**` as well as __builtin_pow (used for exponentiat...
[xonotic/gmqcc.git] / lexer.h
diff --git a/lexer.h b/lexer.h
index 9724a7b90d97c386e1de013a97e08d654e05d280..e560f6d781aa54fd4b46cb637cf5cd7d585cb32c 100644 (file)
--- a/lexer.h
+++ b/lexer.h
@@ -185,6 +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, opid1('-'),         ASSOC_LEFT,  12, 0 },
 
     { "<<",  2, opid2('<','<'),     ASSOC_LEFT,  11, 0 },