lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 1fe280df725810594ef9b70af663dec3ea22b2de
parent 1ede98157db12ded9c6be1ed8ab8742bcf6c046d
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu,  4 Jul 2002 15:23:20 -0300

new priority for and/or

Diffstat:
Mlparser.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lparser.c b/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.188 2002/06/06 17:29:53 roberto Exp roberto $ +** $Id: lparser.c,v 1.189 2002/06/26 16:37:13 roberto Exp roberto $ ** Lua Parser ** See Copyright Notice in lua.h */ @@ -734,14 +734,14 @@ static const struct { lu_byte left; /* left priority for each binary operator */ lu_byte right; /* right priority */ } priority[] = { /* ORDER OPR */ - {5, 5}, {5, 5}, {6, 6}, {6, 6}, /* arithmetic */ - {9, 8}, {4, 3}, /* power and concat (right associative) */ - {2, 2}, {2, 2}, /* equality */ - {2, 2}, {2, 2}, {2, 2}, {2, 2}, /* order */ - {1, 1}, {1, 1} /* logical */ + {6, 6}, {6, 6}, {7, 7}, {7, 7}, /* arithmetic */ + {10, 9}, {5, 4}, /* power and concat (right associative) */ + {3, 3}, {3, 3}, /* equality */ + {3, 3}, {3, 3}, {3, 3}, {3, 3}, /* order */ + {2, 2}, {1, 1} /* logical (and/or) */ }; -#define UNARY_PRIORITY 7 /* priority for unary operators */ +#define UNARY_PRIORITY 8 /* priority for unary operators */ /*