Mercurial Hosting > luan
view core/src/luan/impl/ConstExpr.java @ 337:0c0009eaa78e
README.md edited online with Bitbucket
author | Hugo Teixeira <hugo.tech@gmail.com> |
---|---|
date | Wed, 25 Mar 2015 04:29:21 +0000 |
parents | 24ede40ee0aa |
children | b48cfa14ba60 |
line wrap: on
line source
package luan.impl; import luan.LuanSource; final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(LuanSource.Element se,Object obj) { super(se); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } @Override public String toString() { return "(ConstExpr "+obj+")"; } }