summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-25 18:06:57 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-03-25 18:06:57 -0300
commite9aa98d59484013b0aec29ddb197b3bd4b98b2f1 (patch)
tree8190697550ed9c7b5b3b38de8847c79bf01c54e5 /lparser.c
parent3e9c6a8a247ef4c4c643dd951120409833221f86 (diff)
downloadlua-e9aa98d59484013b0aec29ddb197b3bd4b98b2f1.tar.gz
lua-e9aa98d59484013b0aec29ddb197b3bd4b98b2f1.tar.bz2
lua-e9aa98d59484013b0aec29ddb197b3bd4b98b2f1.zip
do not generate SETLINE after main (it will be after last line)
Diffstat (limited to '')
-rw-r--r--lparser.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index 6e95738c..221fdf40 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.29 1999/03/11 19:00:12 roberto Exp roberto $ 2** $Id: lparser.c,v 1.30 1999/03/23 19:58:37 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*/
@@ -662,7 +662,6 @@ TProtoFunc *luaY_parser (ZIO *z) {
662 init_state(&lexstate, &funcstate, luaS_new(zname(z))); 662 init_state(&lexstate, &funcstate, luaS_new(zname(z)));
663 next(&lexstate); /* read first token */ 663 next(&lexstate); /* read first token */
664 chunk(&lexstate); 664 chunk(&lexstate);
665 check_debugline(&lexstate);
666 if (lexstate.token != EOS) 665 if (lexstate.token != EOS)
667 luaX_error(&lexstate, "<eof> expected"); 666 luaX_error(&lexstate, "<eof> expected");
668 close_func(&lexstate); 667 close_func(&lexstate);