From: Dale Weiler Date: Thu, 7 Mar 2013 22:14:04 +0000 (+0000) Subject: Make ** RIGHT associative X-Git-Tag: before-library~102 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=db229b6f94175076dec1d105169aaf984db58f7d;hp=bd54fe03b9d080b5b99af874cc625b35a82580a3 Make ** RIGHT associative --- diff --git a/lexer.h b/lexer.h index e560f6d..83cb624 100644 --- 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 },