Make ** RIGHT associative

This commit is contained in:
Dale Weiler 2013-03-07 22:14:04 +00:00
parent bd54fe03b9
commit db229b6f94

View file

@ -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 },