diff options
Diffstat (limited to 'lparser.c')
| -rw-r--r-- | lparser.c | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lparser.c,v 1.124 2001/01/15 16:13:24 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.125 2001/01/19 13:20:30 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 | */ |
| @@ -890,9 +890,10 @@ static void forlist (LexState *ls, TString *indexname) { | |||
| 890 | next(ls); /* skip `in' */ | 890 | next(ls); /* skip `in' */ |
| 891 | exp1(ls); /* table */ | 891 | exp1(ls); /* table */ |
| 892 | new_localvarstr(ls, "(table)", 0); | 892 | new_localvarstr(ls, "(table)", 0); |
| 893 | new_localvar(ls, indexname, 1); | 893 | new_localvarstr(ls, "(index)", 1); |
| 894 | new_localvar(ls, valname, 2); | 894 | new_localvar(ls, indexname, 2); |
| 895 | forbody(ls, 3, OP_LFORPREP, OP_LFORLOOP); | 895 | new_localvar(ls, valname, 3); |
| 896 | forbody(ls, 4, OP_LFORPREP, OP_LFORLOOP); | ||
| 896 | } | 897 | } |
| 897 | 898 | ||
| 898 | 899 | ||
