projects
/
xonotic
/
gmqcc.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd54fe0
)
Make ** RIGHT associative
author
Dale Weiler <killfieldengine@gmail.com>
Thu, 7 Mar 2013 22:14:04 +0000
(22:14 +0000)
committer
Dale Weiler <killfieldengine@gmail.com>
Thu, 7 Mar 2013 22:14:04 +0000
(22:14 +0000)
lexer.h
patch
|
blob
|
history
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 },