Mercurial Hosting > luan
comparison src/luan/impl/ExpressionsExpr.java @ 166:4eaee12f6c65
move luan/interp to impl
git-svn-id: https://luan-java.googlecode.com/svn/trunk@167 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 22 Jun 2014 04:17:38 +0000 |
parents | src/luan/interp/ExpressionsExpr.java@8ede219cd111 |
children |
comparison
equal
deleted
inserted
replaced
165:94bbc4cbc106 | 166:4eaee12f6c65 |
---|---|
1 package luan.impl; | |
2 | |
3 import java.util.List; | |
4 import luan.Luan; | |
5 import luan.LuanException; | |
6 import luan.LuanSource; | |
7 | |
8 | |
9 final class ExpressionsExpr implements Expr { | |
10 private final Expressions expressions; | |
11 | |
12 ExpressionsExpr(Expressions expressions) { | |
13 this.expressions = expressions; | |
14 } | |
15 | |
16 @Override public Object eval(LuanStateImpl luan) throws LuanException { | |
17 return Luan.first( expressions.eval(luan) ); | |
18 } | |
19 | |
20 public LuanSource.Element se() { | |
21 return expressions.se(); | |
22 } | |
23 | |
24 } |