lua

A copy of the Lua development repository
Log | Files | Refs | README

commit f8c95fa9e8db7eff36532fd598283000f30a7342
parent 9c965d0ffb8fd930a149d6c20266e32c30ba8a0c
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 30 Oct 1997 16:46:58 -0200

new "block" syntax (DO ... END)

Diffstat:
Mlua.stx | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lua.stx b/lua.stx @@ -1,6 +1,6 @@ %{ /* -** $Id: lua.stx,v 1.14 1997/10/24 18:40:29 roberto Exp roberto $ +** $Id: lua.stx,v 1.15 1997/10/28 17:26:53 roberto Exp roberto $ ** Syntax analizer and code generator ** See Copyright Notice in lua.h */ @@ -677,6 +677,8 @@ sc : /* empty */ | ';' ; stat : IF cond THEN block SaveWord elsepart END { codeIf($2, $5); } + | DO block END + | WHILE GetPC cond DO block END {{ int expsize = $3-$2;