diff options
-rw-r--r-- | lparser.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.188 2002/06/06 17:29:53 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.189 2002/06/26 16:37:13 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -734,14 +734,14 @@ static const struct { | |||
734 | lu_byte left; /* left priority for each binary operator */ | 734 | lu_byte left; /* left priority for each binary operator */ |
735 | lu_byte right; /* right priority */ | 735 | lu_byte right; /* right priority */ |
736 | } priority[] = { /* ORDER OPR */ | 736 | } priority[] = { /* ORDER OPR */ |
737 | {5, 5}, {5, 5}, {6, 6}, {6, 6}, /* arithmetic */ | 737 | {6, 6}, {6, 6}, {7, 7}, {7, 7}, /* arithmetic */ |
738 | {9, 8}, {4, 3}, /* power and concat (right associative) */ | 738 | {10, 9}, {5, 4}, /* power and concat (right associative) */ |
739 | {2, 2}, {2, 2}, /* equality */ | 739 | {3, 3}, {3, 3}, /* equality */ |
740 | {2, 2}, {2, 2}, {2, 2}, {2, 2}, /* order */ | 740 | {3, 3}, {3, 3}, {3, 3}, {3, 3}, /* order */ |
741 | {1, 1}, {1, 1} /* logical */ | 741 | {2, 2}, {1, 1} /* logical (and/or) */ |
742 | }; | 742 | }; |
743 | 743 | ||
744 | #define UNARY_PRIORITY 7 /* priority for unary operators */ | 744 | #define UNARY_PRIORITY 8 /* priority for unary operators */ |
745 | 745 | ||
746 | 746 | ||
747 | /* | 747 | /* |