[12 - Tree Grammar] Add suggested solution

This commit is contained in:
2020-06-10 10:02:19 +02:00
parent ff8fbbec83
commit 9cd32878d7
29 changed files with 9830 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
/* **********************************************
* Duale Hochschule Baden-Württemberg Karlsruhe
* Prof. Dr. Jörn Eisenbiegler
*
* Vorlesung Übersetzerbau
* Praxis ANTLR-Parser für X
* - Hilfsklasse für Scanner-tests
*
* **********************************************
*/
package de.dhbw.compiler.antlrxtreegrammar.test;
import org.antlr.runtime.CommonToken;
public class TestToken extends CommonToken {
private static final long serialVersionUID = 1L;
public TestToken(int type, String text, int line, int column) {
super(type, text);
super.setLine(line);
// Antlr beginnt mit 0, Kompatibilit<69>t zu anderen Tests
super.setCharPositionInLine(column-1);
}
}