From f8c95fa9e8db7eff36532fd598283000f30a7342 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Oct 1997 16:47:19 -0200 Subject: [PATCH] new "block" syntax (DO ... END) --- lua.stx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua.stx b/lua.stx index acfdd8f5..722fd42b 100644 --- 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;