diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-30 16:47:19 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-30 16:47:19 -0200 |
commit | f8c95fa9e8db7eff36532fd598283000f30a7342 (patch) | |
tree | a4cd513af9ae9a452dc30da494399b1fabef9430 /lua.stx | |
parent | 9c965d0ffb8fd930a149d6c20266e32c30ba8a0c (diff) | |
download | lua-f8c95fa9e8db7eff36532fd598283000f30a7342.tar.gz lua-f8c95fa9e8db7eff36532fd598283000f30a7342.tar.bz2 lua-f8c95fa9e8db7eff36532fd598283000f30a7342.zip |
new "block" syntax (DO ... END)
Diffstat (limited to 'lua.stx')
-rw-r--r-- | lua.stx | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 | ||
678 | stat : IF cond THEN block SaveWord elsepart END { codeIf($2, $5); } | 678 | stat : 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; |