1 package org.simantics.scl.compiler.elaboration.chr.plan;
3 import org.simantics.scl.compiler.compilation.CompilationContext;
4 import org.simantics.scl.compiler.elaboration.expressions.Expression;
5 import org.simantics.scl.compiler.internal.codegen.writer.CodeWriter;
7 public class ExecuteOp extends PlanOp {
10 public ExecuteOp(long location, Expression expression) {
12 this.expression = expression;
16 public void toString(StringBuilder b) {
17 b.append("EXECUTE ").append(expression);
22 public void generateCode(CompilationContext context, PlanContext planContext, CodeWriter w) {
23 expression.toVal(context.environment, w);
24 planContext.nextOp(w);