comparison core/src/luan/impl/IndexExpr.java @ 510:2da0bcb979b5

better error messages
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 22 May 2015 02:28:15 -0600
parents d3183a330ff5
children 7c3ad6db8ac3
comparison
equal deleted inserted replaced
509:e3b0846dc2ef 510:2da0bcb979b5
10 IndexExpr(LuanElement el,Expr op1,Expr op2) { 10 IndexExpr(LuanElement el,Expr op1,Expr op2) {
11 super(el,op1,op2); 11 super(el,op1,op2);
12 } 12 }
13 13
14 @Override public Object eval(LuanStateImpl luan) throws LuanException { 14 @Override public Object eval(LuanStateImpl luan) throws LuanException {
15 return LuanTable.index( luan.bit(op1.el()), op1.eval(luan), op2.eval(luan) ); 15 return LuanTable.index( luan.bit(el()), op1.eval(luan), op2.eval(luan) );
16 } 16 }
17 17
18 } 18 }