Mercurial Hosting > luan
view core/src/luan/impl/ExpressionsExpr.java @ 337:0c0009eaa78e
README.md edited online with Bitbucket
author | Hugo Teixeira <hugo.tech@gmail.com> |
---|---|
date | Wed, 25 Mar 2015 04:29:21 +0000 |
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(); } }