Skip to content
Browse files
Merge pull request #530 from EngineHub/feature/expressions-part-2
Expressions Part 2: Compilation
  • Loading branch information
octylFractal committed Jan 1, 2020
2 parents 79c11c5 + 0e37196 commit 7b2f4ea18438a3c411fcfedab3cbf654bcf0a7c0
@@ -25,9 +25,12 @@
public class BreakException extends RuntimeException {

public static final BreakException BREAK = new BreakException(false);
public static final BreakException CONTINUE = new BreakException(true);

public final boolean doContinue;

public BreakException(boolean doContinue) {
private BreakException(boolean doContinue) {
super(doContinue ? "'continue' encountered outside a loop" : "'break' encountered outside a loop",
null, true, false);

@@ -0,0 +1,29 @@
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <>
* Copyright (C) WorldEdit team and contributors
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <>.

package com.sk89q.worldedit.internal.expression;

* Represents a "compiled" expression.
public interface CompiledExpression {

Double execute(ExecutionData executionData);


0 comments on commit 7b2f4ea

Please sign in to comment.