added astprinter to parsertest
This commit is contained in:
parent
eb5cf1ab33
commit
e3edd0410a
@ -9,6 +9,7 @@ import java.util.stream.Collectors;
|
||||
|
||||
import de.dhbwstuttgart.core.JavaTXCompiler;
|
||||
import de.dhbwstuttgart.parser.JavaTXParser;
|
||||
import de.dhbwstuttgart.syntaxtree.visual.ASTPrinter;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
@ -41,11 +42,13 @@ public class GeneralParserTest {
|
||||
filenames.add("PackageNameTest.jav");
|
||||
filenames.add("AntlrTest.jav");
|
||||
// filenames.add("Java17Rules.jav");
|
||||
filenames.add("NestedPattern.jav");
|
||||
// filenames.add("NestedPattern.jav");
|
||||
try {
|
||||
for (String filename : filenames) {
|
||||
System.out.println(filename);
|
||||
new JavaTXCompiler(new File(rootDirectory + filename));
|
||||
File sf = new File(rootDirectory + filename);
|
||||
JavaTXCompiler compiler = new JavaTXCompiler(sf);
|
||||
System.out.println(ASTPrinter.print(compiler.sourceFiles.get(sf)));
|
||||
}
|
||||
// new JavaTXCompiler(filenames.stream().map(s -> new File(rootDirectory +
|
||||
// s)).collect(Collectors.toList()));
|
||||
|
Loading…
Reference in New Issue
Block a user