1 package org.simantics.scl.compiler.internal.interpreted;
4 public class ILet implements IExpression {
5 private final int variableId;
6 private final IExpression value;
7 private final IExpression in;
9 public ILet(int variableId, IExpression value, IExpression in) {
10 this.variableId = variableId;
16 public Object execute(Object[] variableBindings) {
17 variableBindings[variableId] = value.execute(variableBindings);
19 return in.execute(variableBindings);
21 variableBindings[variableId] = null;
26 public String toString() {
27 StringBuilder b = new StringBuilder();