diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-22 14:58:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-12-22 14:58:36 -0200 |
commit | be3212de781786c0a68365dee1d3510407b5c325 (patch) | |
tree | 374afa517eca46da77f8729fccc6bdd38a2689d1 | |
parent | 2eaf9a00aed72d9a15a68967146655045c6798a8 (diff) | |
download | lua-be3212de781786c0a68365dee1d3510407b5c325.tar.gz lua-be3212de781786c0a68365dee1d3510407b5c325.tar.bz2 lua-be3212de781786c0a68365dee1d3510407b5c325.zip |
details
-rw-r--r-- | lparser.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.47 1999/12/14 18:42:57 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.48 1999/12/21 17:31:28 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -974,7 +974,7 @@ static void exp1 (LexState *ls) { | |||
974 | exp0(ls, &v); | 974 | exp0(ls, &v); |
975 | lua_pushvar(ls, &v); | 975 | lua_pushvar(ls, &v); |
976 | if (is_in(ls->token, expfollow) < 0) | 976 | if (is_in(ls->token, expfollow) < 0) |
977 | luaX_error(ls, "ill-formed expression"); | 977 | luaX_error(ls, "malformed expression"); |
978 | } | 978 | } |
979 | 979 | ||
980 | 980 | ||
@@ -1282,7 +1282,9 @@ static int assignment (LexState *ls, vardesc *v, int nvars) { | |||
1282 | } | 1282 | } |
1283 | else { /* assignment -> '=' explist1 */ | 1283 | else { /* assignment -> '=' explist1 */ |
1284 | listdesc d; | 1284 | listdesc d; |
1285 | check(ls, '='); | 1285 | if (ls->token != '=') |
1286 | error_unexpected(ls); | ||
1287 | next(ls); | ||
1286 | explist1(ls, &d); | 1288 | explist1(ls, &d); |
1287 | adjust_mult_assign(ls, nvars, &d); | 1289 | adjust_mult_assign(ls, nvars, &d); |
1288 | } | 1290 | } |