view core/src/luan/impl/LtExpr.java @ 652:067d9470184d

compile SetStmt and ForStmt
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 Apr 2016 23:26:06 -0600
parents 8e8c30b72e9b
children
line wrap: on
line source

package luan.impl;

import luan.Luan;
import luan.LuanFunction;
import luan.LuanException;


final class LtExpr extends BinaryOpExpr {

	LtExpr(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.isLessThan(luan,o1,o2);
	}
}