Mercurial Hosting > luan
view core/src/luan/impl/IndexExpr.java @ 645:859c0dedc8b6
remove LuanSource
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 18:09:51 -0600 |
parents | 4723d22062ce |
children |
line wrap: on
line source
package luan.impl; import luan.LuanException; final class IndexExpr extends BinaryOpExpr { IndexExpr(Expr op1,Expr op2) { super(op1,op2); } @Override public Object eval(LuanStateImpl luan) throws LuanException { Object o1 = op1.eval(luan); Object o2 = op2.eval(luan); return luan.index(o1,o2); } }