Mercurial Hosting > luan
view core/src/luan/impl/ExpressionsExpr.java @ 363:17b02b56d806
fix LuanPropertyTable.asMap();
fix binary==binary;
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 16 Apr 2015 10:12:58 -0600 |
parents | 9fb218211763 |
children | b48cfa14ba60 |
line wrap: on
line source
package luan.impl; import java.util.List; import luan.Luan; import luan.LuanException; import luan.LuanSource; 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) ); } public LuanSource.Element se() { return expressions.se(); } }