1 package org.simantics.scl.expressions;
3 import org.simantics.scl.compiler.types.Type;
6 * A value that depends on some context. For example SCL expression
7 * can be compiled into contextual value where the actual value
8 * depends on the free variables of the expression.
9 * @author Hannu Niemistö
12 public interface ContextualValue<Context> {
14 * SCL type of the value.
20 * Evaluates the value in the given context.
24 Object getValue(Context context);