Mercurial Hosting > luan
view core/src/luan/impl/LtExpr.java @ 535:289908469e02
parse numeric constants to ints or longs if possible
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 31 May 2015 00:00:17 -0600 |
parents | b48cfa14ba60 |
children | 4723d22062ce |
line wrap: on
line source
package luan.impl; import luan.Luan; import luan.LuanFunction; import luan.LuanException; import luan.LuanElement; final class LtExpr extends BinaryOpExpr { LtExpr(LuanElement el,Expr op1,Expr op2) { super(el,op1,op2); } @Override public Object eval(LuanStateImpl luan) throws LuanException { Object o1 = op1.eval(luan); Object o2 = op2.eval(luan); return luan.bit(el).isLessThan(o1,o2); } }