Mercurial Hosting > luan
view core/src/luan/impl/ConstExpr.java @ 576:4723d22062ce
remove LuanBit
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 13 Jul 2015 20:38:26 -0600 |
parents | 92c3d22745b8 |
children | 859c0dedc8b6 |
line wrap: on
line source
package luan.impl; import luan.LuanElement; final class ConstExpr extends CodeImpl implements Expr { private final Object obj; ConstExpr(LuanElement el,Object obj) { super(el); this.obj = obj; } @Override public Object eval(LuanStateImpl luan) { return obj; } @Override public String toString() { return "(ConstExpr "+obj+")"; } }