18 lines
383 B
Java
18 lines
383 B
Java
package carpet.script.exception;
|
|
|
|
import carpet.script.value.Value;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
/* Exception thrown to terminate execution mid expression (aka return statement) */
|
|
public class ExitStatement extends StacklessRuntimeException
|
|
{
|
|
@Nullable
|
|
public final Value retval;
|
|
|
|
public ExitStatement(@Nullable Value value)
|
|
{
|
|
retval = value;
|
|
}
|
|
}
|