From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 12:24:12 +0000 (+0200) Subject: OP_PREFIX flag for ~ and ! X-Git-Tag: 0.1-rc1~256 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=c1bafe3d097b2af1dfa2ec5484878bc2e01e1445 OP_PREFIX flag for ~ and ! --- diff --git a/lexer.h b/lexer.h index ae8812b..c224c87 100644 --- a/lexer.h +++ b/lexer.h @@ -134,8 +134,8 @@ static const oper_info operators[] = { { ".", 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 },