Mercurial Hosting > luan
view src/luan/interp/ConstExpr.java @ 108:3c404a296995
make Package module more standard;
return _ENV by default;
add "import" statement;
git-svn-id: https://luan-java.googlecode.com/svn/trunk@109 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 03:21:54 +0000 |
parents | 8ede219cd111 |
children | 14281d5bd36f |
line wrap: on
line source
package luan.interp; import luan.LuanSource; final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(Object obj) { this(null,obj); } ConstExpr(LuanSource.Element se,Object obj) { super(se); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } }