cleanup of scarpet dependencies
This commit is contained in:
1 parent
fd93785fec
commit
75d94b0570
71 files changed
+1623
-1014
No files matched your search
@@ -1,7 +1,7 @@
|
||||
package carpet.script.exception;
|
||||
|
||||
import carpet.script.external.Carpet;
|
||||
import carpet.script.value.FunctionValue;
|
||||
import carpet.utils.Messenger;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -23,7 +23,7 @@ public class CarpetExpressionException extends StacklessRuntimeException impleme
|
||||
{
|
||||
for (final FunctionValue fun : stack)
|
||||
{
|
||||
Messenger.m(source, "e ... in " + fun.fullName(), "e /" + (fun.getToken().lineno + 1) + ":" + (fun.getToken().linepos + 1));
|
||||
Carpet.Messenger_message(source, "e ... in " + fun.fullName(), "e /" + (fun.getToken().lineno + 1) + ":" + (fun.getToken().linepos + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ package carpet.script.exception;
|
||||
import carpet.script.Context;
|
||||
import carpet.script.Expression;
|
||||
import carpet.script.Tokenizer;
|
||||
import carpet.script.external.Carpet;
|
||||
import carpet.script.value.FunctionValue;
|
||||
import carpet.utils.Messenger;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
@@ -22,7 +22,7 @@ public class ExpressionException extends StacklessRuntimeException implements Re
|
||||
|
||||
public static void prepareForDoom()
|
||||
{
|
||||
Messenger.c("foo bar");
|
||||
Carpet.Messenger_compose("foo bar");
|
||||
}
|
||||
|
||||
public ExpressionException(final Context c, final Expression e, final String message)
|
||||
|
||||
@@ -3,7 +3,7 @@ package carpet.script.exception;
|
||||
/**
|
||||
* A type of {@link RuntimeException} that doesn't spend time producing and filling a stacktrace
|
||||
*/
|
||||
abstract class StacklessRuntimeException extends RuntimeException
|
||||
public abstract class StacklessRuntimeException extends RuntimeException
|
||||
{
|
||||
public StacklessRuntimeException()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user