Mercurial Hosting > luan
comparison src/luan/interp/Block.java @ 31:5cf15507d77e
separate interpreter from interface
git-svn-id: https://luan-java.googlecode.com/svn/trunk@32 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 13 Dec 2012 02:50:04 +0000 |
parents | 2446c1755d9b |
children | c3eab5a3ce3c |
comparison
equal
deleted
inserted
replaced
30:8d8f4f5caef4 | 31:5cf15507d77e |
---|---|
1 package luan.interp; | 1 package luan.interp; |
2 | 2 |
3 import luan.LuaState; | |
4 import luan.LuaException; | 3 import luan.LuaException; |
5 | 4 |
6 | 5 |
7 final class Block implements Stmt { | 6 final class Block implements Stmt { |
8 final Stmt[] stmts; | 7 final Stmt[] stmts; |
15 this.stmts = stmts; | 14 this.stmts = stmts; |
16 this.stackStart = stackStart; | 15 this.stackStart = stackStart; |
17 this.stackEnd = stackEnd; | 16 this.stackEnd = stackEnd; |
18 } | 17 } |
19 | 18 |
20 @Override public void eval(LuaState lua) throws LuaException { | 19 @Override public void eval(LuaStateImpl lua) throws LuaException { |
21 try { | 20 try { |
22 for( Stmt stmt : stmts ) { | 21 for( Stmt stmt : stmts ) { |
23 stmt.eval(lua); | 22 stmt.eval(lua); |
24 } | 23 } |
25 } finally { | 24 } finally { |