first version of vararg facility (plus new function "call").

This commit is contained in:
Roberto Ierusalimschy
1996-05-28 18:07:32 -03:00
parent 9a1948e67d
commit 9863223fbf
7 changed files with 217 additions and 115 deletions

10
lex.c
View File

@@ -1,4 +1,4 @@
char *rcs_lex = "$Id: lex.c,v 2.31 1996/03/19 16:50:24 roberto Exp roberto $";
char *rcs_lex = "$Id: lex.c,v 2.32 1996/03/21 16:33:47 roberto Exp roberto $";
#include <ctype.h>
@@ -280,7 +280,13 @@ int luaY_lex (void)
if (current == '.')
{
save_and_next();
return CONC;
if (current == '.')
{
save_and_next();
return DOTS; /* ... */
}
else
return CONC; /* .. */
}
else if (!isdigit(current)) return '.';
/* current is a digit: goes through to number */