
org.snapscript.tree.EmptyStatement Maven / Gradle / Ivy
package org.snapscript.tree;
import static org.snapscript.core.result.Result.NORMAL;
import org.snapscript.core.Execution;
import org.snapscript.core.NoExecution;
import org.snapscript.core.Statement;
import org.snapscript.core.constraint.Constraint;
import org.snapscript.core.scope.Scope;
import org.snapscript.parse.StringToken;
public class EmptyStatement extends Statement {
private final Execution execution;
public EmptyStatement() {
this(null);
}
public EmptyStatement(StringToken token) {
this.execution = new NoExecution(NORMAL);
}
@Override
public Execution compile(Scope scope, Constraint returns) throws Exception {
return execution;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy