accidentally commited test stuff, revert

This commit is contained in:
laurenz 2024-05-15 16:57:30 +02:00
parent d4cdc45b63
commit f74ba50caa

View File

@ -18,17 +18,6 @@ import java.util.List;
*/
public class Compiler {
public static void main(String[] args) {
generateAST(List.of("""
public class E2ETests {
char ZZ;
public E2ETests() {
this.ZZ = 'z';
}
}
"""));
}
public static Program generateAST(List<String> fromSources) {
List<Class> classes = new ArrayList<>();
for (String fromSource : fromSources) {
@ -108,9 +97,9 @@ public class Compiler {
}
}
// public static void main(String[] args) {
// generateByteCodeFileFromFile(List.of("src/main/resources/JavaTestfiles/ClassWithConstructor.java",
// "src/main/resources/JavaTestfiles/ClassWithConstructorAndMethodCall.java"),
// List.of("ClassWithConstructor","ClassWithConstructorAndMethodCall"));
// }
public static void main(String[] args) {
generateByteCodeFileFromFile(List.of("src/main/resources/JavaTestfiles/ClassWithConstructor.java",
"src/main/resources/JavaTestfiles/ClassWithConstructorAndMethodCall.java"),
List.of("ClassWithConstructor","ClassWithConstructorAndMethodCall"));
}
}