mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
`(exp)' adjusts exp to 1 result
This commit is contained in:
parent
186111dc01
commit
89c301d180
3 changed files with 15 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lparser.c,v 1.147 2001/06/08 19:00:57 roberto Exp roberto $
|
||||
** $Id: lparser.c,v 1.148 2001/06/11 14:56:42 roberto Exp roberto $
|
||||
** LL(1) Parser and code generator for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -636,6 +636,7 @@ static void primaryexp (LexState *ls, expdesc *v) {
|
|||
next(ls);
|
||||
expr(ls, v);
|
||||
check(ls, l_c(')'));
|
||||
luaK_dischargevars(ls->fs, v);
|
||||
return;
|
||||
}
|
||||
case TK_NAME: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue