Result<IValue> value = stat.interpret(__eval);
if (!value.getType().isList()) {
throw new ImplementationError(
"template eval returns non-list");
}
IList list = (IList) value.getValue();
if (list.length() == 0) {
System.out.println("bla");
}
if (!list.get(0).getType().isString()) {
throw new ImplementationError(
"template eval returns list with non-string");
}
return ResultFactory.makeResult(TF.stringType(), list.get(0), __eval);
// // todo: concat not needed anymore, because of appendString in Accumulator.
// // list is always non-empty
// Result<IValue> s = ResultFactory.makeResult(TF.stringType(),
// list.get(0), __eval);