Mercurial Hosting > luan
comparison core/src/luan/impl/ReturnStmt.java @ 663:b438a47196bc
finish compiling function blocks
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 07 Apr 2016 00:01:10 -0600 |
parents | f1150518c467 |
children |
comparison
equal
deleted
inserted
replaced
662:ee00a619eec1 | 663:b438a47196bc |
---|---|
12 ReturnStmt(Expressions expressions) { | 12 ReturnStmt(Expressions expressions) { |
13 this.expressions = expressions; | 13 this.expressions = expressions; |
14 } | 14 } |
15 | 15 |
16 @Override public void eval(LuanStateImpl luan) throws LuanException { | 16 @Override public void eval(LuanStateImpl luan) throws LuanException { |
17 luan.returnValues = expressions.eval(luan); | 17 // luan.returnValues = expressions.eval(luan); |
18 if( throwReturnException ) | 18 if( throwReturnException ) |
19 throw new ReturnException(); | 19 throw new ReturnException(); |
20 } | 20 } |
21 } | 21 } |