From: Wolfgang Bumiller Date: Sat, 16 Nov 2013 13:34:24 +0000 (+0100) Subject: now it parses and has the desired precedence X-Git-Tag: xonotic-v0.8.0~89 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ec03b55d1a81b425afdb9ff708a5c3d146c385dd;p=xonotic%2Fgmqcc.git now it parses and has the desired precedence --- diff --git a/lexer.h b/lexer.h index 2b5a741..ee9be17 100644 --- a/lexer.h +++ b/lexer.h @@ -185,13 +185,12 @@ static const oper_info c_operators[] = { { "++", 1, opid3('+','+','P'), ASSOC_RIGHT, 16, OP_PREFIX, false}, { "--", 1, opid3('-','-','P'), ASSOC_RIGHT, 16, OP_PREFIX, false}, - { "!", 1, opid2('!','P'), ASSOC_RIGHT, 15, OP_PREFIX, true}, - { "~", 1, opid2('~','P'), ASSOC_RIGHT, 15, OP_PREFIX, true}, - { "+", 1, opid2('+','P'), ASSOC_RIGHT, 15, OP_PREFIX, false}, - { "-", 1, opid2('-','P'), ASSOC_RIGHT, 15, OP_PREFIX, true}, -/* { "&", 1, opid2('&','P'), ASSOC_RIGHT, 15, OP_PREFIX, false}, */ - { "**", 2, opid2('*','*'), ASSOC_RIGHT, 14, 0, true}, + { "!", 1, opid2('!','P'), ASSOC_RIGHT, 14, OP_PREFIX, true}, + { "~", 1, opid2('~','P'), ASSOC_RIGHT, 14, OP_PREFIX, true}, + { "+", 1, opid2('+','P'), ASSOC_RIGHT, 14, OP_PREFIX, false}, + { "-", 1, opid2('-','P'), ASSOC_RIGHT, 14, OP_PREFIX, true}, +/* { "&", 1, opid2('&','P'), ASSOC_RIGHT, 14, OP_PREFIX, false}, */ { "*", 2, opid1('*'), ASSOC_LEFT, 13, 0, true}, { "/", 2, opid1('/'), ASSOC_LEFT, 13, 0, true},