Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/org/rascalmpl/debug/DebugHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ public void processMessage(IDebugMessage message) {
case SET:
switch (message.getDetail()) {
case CONDITIONAL:
@SuppressWarnings("unchecked")
Pair<ISourceLocation, String> payload = (Pair<ISourceLocation, String>) message.getPayload();
addBreakpoint(payload.getFirst(), payload.getSecond());
break;
Expand Down
2 changes: 0 additions & 2 deletions src/org/rascalmpl/interpreter/StringTemplateConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
import org.rascalmpl.types.ReifiedType;
import org.rascalmpl.values.RascalValueFactory;
import org.rascalmpl.values.ValueFactoryFactory;
import org.rascalmpl.values.parsetrees.SymbolAdapter;

import io.usethesource.vallang.IConstructor;
import io.usethesource.vallang.ISourceLocation;
import io.usethesource.vallang.IString;
Expand Down
1 change: 0 additions & 1 deletion src/org/rascalmpl/interpreter/env/ModuleEnvironment.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
Expand Down
1 change: 0 additions & 1 deletion src/org/rascalmpl/repl/rascal/RascalReplServices.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.rascalmpl.parser.gtd.exception.ParseError;
import org.rascalmpl.repl.IREPLService;
import org.rascalmpl.repl.StopREPLException;
import org.rascalmpl.repl.TerminalProgressBarMonitor;
import org.rascalmpl.repl.completers.CompletionMatcherWithEscapes;
import org.rascalmpl.repl.completers.RascalCommandCompletion;
import org.rascalmpl.repl.completers.RascalIdentifierCompletion;
Expand Down
35 changes: 0 additions & 35 deletions src/org/rascalmpl/runtime/$RascalModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,41 +302,6 @@ public Set<ISourceLocation> findResources(String fileName) {
}
}

private static void $usage(String module, String error, Type kwargs) {
PrintWriter $ERR = new PrintWriter(System.err);

if (!error.isEmpty() && !error.equals("help")) {
$ERR.println(error);
}

$ERR.println("Usage: ");
$ERR.println("java -cp ... " + module + " <options>");

if (kwargs.getArity() > 0) {
$ERR.println(" [options]\n\nOptions:\n");

for (String param : kwargs.getFieldNames()) {
$ERR.print("\t-");
$ERR.print(param);
if (kwargs.getFieldType(param).isSubtypeOf(TypeFactory.getInstance().boolType())) {
$ERR.println("\t[arg]: one of nothing (true), \'1\', \'0\', \'true\' or \'false\';");
}
else {
$ERR.println("\t[arg]: " + kwargs.getFieldType(param) + " argument;");
}
}
}
else {
$ERR.println('\n');
}

$ERR.flush();

if (!error.equals("help")) {
throw new IllegalArgumentException();
}
}

protected static Map<String, IValue> $parseCommandlineParameters(String module, String[] commandline, Type kwTypes) {
// reusing the same commandline parameter parser that the interpreter uses, based on the keyword parameter types
// of the function type of the `main` function.
Expand Down
Loading