mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-19 11:49:05 +00:00
- 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:
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';
|
||||
|
||||
Reference in new issue
Block a user