org.snapscript.tree.EmptyStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
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;
}
}