Mercurial Hosting > luan
view core/src/luan/impl/ExpressionsExpr.java @ 652:067d9470184d
compile SetStmt and ForStmt
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 04 Apr 2016 23:26:06 -0600 |
parents | 859c0dedc8b6 |
children |
line wrap: on
line source
package luan.impl; import java.util.List; import luan.Luan; import luan.LuanException; final class ExpressionsExpr implements Expr { private final Expressions expressions; ExpressionsExpr(Expressions expressions) { if( expressions==null ) throw new NullPointerException(); this.expressions = expressions; } @Override public Object eval(LuanStateImpl luan) throws LuanException { return Luan.first( expressions.eval(luan) ); } }