From db229b6f94175076dec1d105169aaf984db58f7d Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 7 Mar 2013 22:14:04 +0000 Subject: [PATCH] Make ** RIGHT associative --- lexer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.39.2