diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,11 +1,10 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.183 2002/05/14 17:52:22 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.184 2002/05/16 18:39:46 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 | */ |
6 | 6 | ||
7 | 7 | ||
8 | #include <stdio.h> | ||
9 | #include <string.h> | 8 | #include <string.h> |
10 | 9 | ||
11 | #include "lua.h" | 10 | #include "lua.h" |
@@ -852,7 +851,7 @@ static void check_conflict (LexState *ls, struct LHS_assign *lh, expdesc *v) { | |||
852 | static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { | 851 | static void assignment (LexState *ls, struct LHS_assign *lh, int nvars) { |
853 | expdesc e; | 852 | expdesc e; |
854 | check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED, | 853 | check_condition(ls, VLOCAL <= lh->v.k && lh->v.k <= VINDEXED, |
855 | "syntax error!"); | 854 | "syntax error"); |
856 | if (ls->t.token == ',') { /* assignment -> `,' primaryexp assignment */ | 855 | if (ls->t.token == ',') { /* assignment -> `,' primaryexp assignment */ |
857 | struct LHS_assign nv; | 856 | struct LHS_assign nv; |
858 | nv.prev = lh; | 857 | nv.prev = lh; |