summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-27 09:39:52 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-27 09:39:52 -0200
commite2b6b7de1b51ac662ad76423e045d0cf3274f051 (patch)
treee91912fe805b353f266413a9b79062f757cc9631 /lparser.c
parent563b1f570400828dafa76bfae4a3b0b1eb9721a7 (diff)
downloadlua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.tar.gz
lua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.tar.bz2
lua-e2b6b7de1b51ac662ad76423e045d0cf3274f051.zip
details
Diffstat (limited to '')
-rw-r--r--lparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index 20cfad38..7e6da470 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.114 2000/09/29 12:42:13 roberto Exp roberto $ 2** $Id: lparser.c,v 1.115 2000/10/10 19:51:15 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*/
@@ -859,8 +859,8 @@ static void fornum (LexState *ls, TString *varname) {
859 else 859 else
860 luaK_code1(fs, OP_PUSHINT, 1); /* default step */ 860 luaK_code1(fs, OP_PUSHINT, 1); /* default step */
861 new_localvar(ls, varname, 0); 861 new_localvar(ls, varname, 0);
862 new_localvarstr(ls, "*limit*", 1); 862 new_localvarstr(ls, "(limit)", 1);
863 new_localvarstr(ls, "*step*", 2); 863 new_localvarstr(ls, "(step)", 2);
864 forbody(ls, 3, OP_FORPREP, OP_FORLOOP); 864 forbody(ls, 3, OP_FORPREP, OP_FORLOOP);
865} 865}
866 866
@@ -876,7 +876,7 @@ static void forlist (LexState *ls, TString *indexname) {
876 "`in' expected"); 876 "`in' expected");
877 next(ls); /* skip `in' */ 877 next(ls); /* skip `in' */
878 exp1(ls); /* table */ 878 exp1(ls); /* table */
879 new_localvarstr(ls, "*table*", 0); 879 new_localvarstr(ls, "(table)", 0);
880 new_localvar(ls, indexname, 1); 880 new_localvar(ls, indexname, 1);
881 new_localvar(ls, valname, 2); 881 new_localvar(ls, valname, 2);
882 forbody(ls, 3, OP_LFORPREP, OP_LFORLOOP); 882 forbody(ls, 3, OP_LFORPREP, OP_LFORLOOP);