|
@@ -10,7 +10,7 @@ import de.jplag.AbstractParser;
|
|
|
import de.jplag.TokenConstants;
|
|
import de.jplag.TokenConstants;
|
|
|
import de.jplag.TokenList;
|
|
import de.jplag.TokenList;
|
|
|
|
|
|
|
|
-public class Parser extends AbstractParser implements TokenConstants {
|
|
|
|
|
|
|
+public class Parser extends AbstractParser {
|
|
|
|
|
|
|
|
protected Hashtable<String, Integer> table = new Hashtable<>();
|
|
protected Hashtable<String, Integer> table = new Hashtable<>();
|
|
|
protected int serial = 1; // 0 is FILE_END token
|
|
protected int serial = 1; // 0 is FILE_END token
|
|
@@ -28,7 +28,7 @@ public class Parser extends AbstractParser implements TokenConstants {
|
|
|
getErrorConsumer().print("", "Parsing file " + file);
|
|
getErrorConsumer().print("", "Parsing file " + file);
|
|
|
if (!parseFile(directory, file))
|
|
if (!parseFile(directory, file))
|
|
|
errors++;
|
|
errors++;
|
|
|
- tokens.addToken(new TextToken(FILE_END, file, this));
|
|
|
|
|
|
|
+ tokens.addToken(new TextToken(TokenConstants.FILE_END, file, this));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
TokenList tmp = tokens;
|
|
TokenList tmp = tokens;
|