comparison src/luan/lib/BasicLib.java @ 13:3b22ffbdb83a

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@14 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 23 Nov 2012 13:04:03 +0000
parents 9cea1aea5eef
children 2ddf85634d20
comparison
equal deleted inserted replaced
12:9cea1aea5eef 13:3b22ffbdb83a
55 Object resultValue = result.resultValue; 55 Object resultValue = result.resultValue;
56 if( resultValue instanceof Expressions ) { 56 if( resultValue instanceof Expressions ) {
57 final Expressions expressions = (Expressions)resultValue; 57 final Expressions expressions = (Expressions)resultValue;
58 return new LuaFunction() { 58 return new LuaFunction() {
59 public Object[] call(LuaState lua,Object... args) throws LuaException { 59 public Object[] call(LuaState lua,Object... args) throws LuaException {
60 return expressions.eval(lua).toArray(); 60 return expressions.eval(lua);
61 } 61 }
62 }; 62 };
63 } 63 }
64 final Stmt stmt = (Stmt)resultValue; 64 final Stmt stmt = (Stmt)resultValue;
65 return new LuaFunction() { 65 return new LuaFunction() {