aboutsummaryrefslogtreecommitdiff
path: root/lua.stx
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-30 16:47:19 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-30 16:47:19 -0200
commitf8c95fa9e8db7eff36532fd598283000f30a7342 (patch)
treea4cd513af9ae9a452dc30da494399b1fabef9430 /lua.stx
parent9c965d0ffb8fd930a149d6c20266e32c30ba8a0c (diff)
downloadlua-f8c95fa9e8db7eff36532fd598283000f30a7342.tar.gz
lua-f8c95fa9e8db7eff36532fd598283000f30a7342.tar.bz2
lua-f8c95fa9e8db7eff36532fd598283000f30a7342.zip
new "block" syntax (DO ... END)
Diffstat (limited to 'lua.stx')
-rw-r--r--lua.stx4
1 files changed, 3 insertions, 1 deletions
diff --git a/lua.stx b/lua.stx
index acfdd8f5..722fd42b 100644
--- a/lua.stx
+++ b/lua.stx
@@ -1,6 +1,6 @@
1%{ 1%{
2/* 2/*
3** $Id: lua.stx,v 1.14 1997/10/24 18:40:29 roberto Exp roberto $ 3** $Id: lua.stx,v 1.15 1997/10/28 17:26:53 roberto Exp roberto $
4** Syntax analizer and code generator 4** Syntax analizer and code generator
5** See Copyright Notice in lua.h 5** See Copyright Notice in lua.h
6*/ 6*/
@@ -677,6 +677,8 @@ sc : /* empty */ | ';' ;
677 677
678stat : IF cond THEN block SaveWord elsepart END { codeIf($2, $5); } 678stat : IF cond THEN block SaveWord elsepart END { codeIf($2, $5); }
679 679
680 | DO block END
681
680 | WHILE GetPC cond DO block END 682 | WHILE GetPC cond DO block END
681 {{ 683 {{
682 int expsize = $3-$2; 684 int expsize = $3-$2;