From: Wolfgang (Blub) Bumiller Date: Sat, 10 Nov 2012 19:04:10 +0000 (+0100) Subject: array-subscript operator entries X-Git-Tag: 0.1~19^2~46 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4977f605d46db2a81da680011b2f6014b398ee91;p=xonotic%2Fgmqcc.git array-subscript operator entries --- diff --git a/lexer.h b/lexer.h index 2142da6..445b16c 100644 --- a/lexer.h +++ b/lexer.h @@ -162,6 +162,7 @@ static const oper_info c_operators[] = { { ".", 2, opid1('.'), ASSOC_LEFT, 15, 0 }, { "(", 0, opid1('('), ASSOC_LEFT, 15, 0 }, /* function call */ + { "[", 0, opid1('['), ASSOC_LEFT, 15, 0 }, /* array subscript */ { "!", 1, opid2('!', 'P'), ASSOC_RIGHT, 14, OP_PREFIX }, { "~", 1, opid2('~', 'P'), ASSOC_RIGHT, 14, OP_PREFIX }, @@ -222,6 +223,7 @@ static const oper_info qcc_operators[] = { { ".", 2, opid1('.'), ASSOC_LEFT, 15, 0 }, { "(", 0, opid1('('), ASSOC_LEFT, 15, 0 }, /* function call */ + { "[", 0, opid1('['), ASSOC_LEFT, 15, 0 }, /* array subscript */ { "!", 1, opid2('!', 'P'), ASSOC_RIGHT, 14, OP_PREFIX }, { "+", 1, opid2('+','P'), ASSOC_RIGHT, 14, OP_PREFIX },