- Removed the Transformer classes as transformation-based class detection is too slow

- Finished the RegisterZenClassesTask and applied it to the API & Mod support projects
- Started work on the events API
- Added a mod.info file
- Added mods detection API
This commit is contained in:
Stan Hebben committed 2014-06-25 11:54:08 +02:00
1 parent 8b00ce34b6
commit 0c535134c5
106 files changed
+2111 -444

No files matched your search

@@ -296,9 +296,9 @@ public class NFA {
out.add(i);
}
} else {
char from = processChar(stream);
int from = processChar(stream);
if (stream.optional('-')) {
char to = processChar(stream);
int to = processChar(stream);
for (int i = from; i <= to; i++) {
out.add(i);
}
@@ -309,8 +309,9 @@ public class NFA {
}
/* Processes a single character */
private char processChar(CharStream stream) {
private int processChar(CharStream stream) {
if (stream.optional('\\')) {
if (stream.optional('e')) return -1;
if (stream.optional('r')) return '\r';
if (stream.optional('n')) return '\n';
if (stream.optional('t')) return '\t';
@@ -216,6 +216,10 @@ public class TokenStream implements Iterator<Token> {
if (state == 0) throw new TokenException(line, lineOffset, (char)nextChar);
next = process(new Token(value.toString(), dfa.finals[state], new ZenPosition(file, tLine, tLineOffset)));
} else {
if (nextChar < 0 && value.length() == 0) {
return; // happens on comments at the end of files
}
System.out.println("Value: " + value.length() + " characters: " + value);
throw new TokenException(line, lineOffset, (char)nextChar);
}
} catch (IOException ex) {