1 package org.simantics.scl.compiler.elaboration.expressions;
3 import org.simantics.scl.compiler.common.exceptions.InternalCompilerError;
4 import org.simantics.scl.compiler.environment.Environment;
5 import org.simantics.scl.compiler.internal.codegen.references.IVal;
6 import org.simantics.scl.compiler.internal.codegen.writer.CodeWriter;
8 public abstract class SimplifiableExpression extends Expression {
10 public SimplifiableExpression() {
13 public SimplifiableExpression(long loc) {
18 public IVal toVal(Environment env, CodeWriter w) {
19 throw new InternalCompilerError("Cannot generate code for " + getClass().getSimpleName() + ".");