Mercurial Hosting > luan
comparison src/luan/interp/Block.java @ 11:b7d7069fee58
add assignment statement and CmdLine
git-svn-id: https://luan-java.googlecode.com/svn/trunk@12 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 22 Nov 2012 10:51:56 +0000 |
parents | 24fd6381caca |
children | 09d41f7490a8 |
comparison
equal
deleted
inserted
replaced
10:8217d8485715 | 11:b7d7069fee58 |
---|---|
2 | 2 |
3 import luan.LuaState; | 3 import luan.LuaState; |
4 import luan.LuaException; | 4 import luan.LuaException; |
5 | 5 |
6 | 6 |
7 final class Block extends Stmt { | 7 final class Block implements Stmt { |
8 private final Stmt[] stmts; | 8 private final Stmt[] stmts; |
9 | 9 |
10 Block(Stmt[] stmts) { | 10 Block(Stmt[] stmts) { |
11 this.stmts = stmts; | 11 this.stmts = stmts; |
12 } | 12 } |
13 | 13 |
14 @Override void eval(LuaState lua) throws LuaException { | 14 @Override public void eval(LuaState lua) throws LuaException { |
15 for( Stmt stmt : stmts ) { | 15 for( Stmt stmt : stmts ) { |
16 stmt.eval(lua); | 16 stmt.eval(lua); |
17 } | 17 } |
18 } | 18 } |
19 | 19 |