new type `boolean'

This commit is contained in:
Roberto Ierusalimschy
2001-12-11 20:48:44 -02:00
parent ed9be5e1f0
commit 9aff171f3b
18 changed files with 166 additions and 121 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.c,v 1.160 2001/10/25 19:14:14 roberto Exp $
** $Id: lparser.c,v 1.1 2001/11/29 22:14:34 rieru Exp rieru $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -701,6 +701,16 @@ static void simpleexp (LexState *ls, expdesc *v) {
next(ls);
break;
}
case TK_TRUE: {
init_exp(v, VTRUE, 0);
next(ls);
break;
}
case TK_FALSE: {
init_exp(v, VFALSE, 0);
next(ls);
break;
}
case '{': { /* constructor */
constructor(ls, v);
break;