- Basic types can now be converted to the "any" type

- Changed OreDict 'contains' to respond to the 'in' operator
This commit is contained in:
Stan Hebben committed 2014-07-20 21:30:40 +02:00
1 parent 52f92dcfd4
commit 1b72abb2b4
59 files changed
+3595 -976

No files matched your search

@@ -20,7 +20,7 @@ public class ParseException extends RuntimeException {
private final String message;
public ParseException(Token token, String error) {
super(token == null ? "Error at end of file - " + error : "Error parsing line " + token.getPosition().getLine() + ":" + token.getPosition().getLineOffset() + " - " + error + " (last token: " + token.getValue() + ")");
super("Error parsing line " + token.getPosition().getLine() + ":" + token.getPosition().getLineOffset() + " - " + error + " (last token: " + token.getValue() + ")");
this.file = token.getPosition().getFile();
this.line = token.getPosition().getLine();
@@ -44,11 +44,11 @@ public class ParseException extends RuntimeException {
}
public int getLine() {
return token == null ? -1 : token.getPosition().getLine();
return line;
}
public int getLineOffset() {
return token == null ? -1 : token.getPosition().getLineOffset();
return lineOffset;
}
public String getExplanation() {