accidentally pushed test stuffs

This commit is contained in:
laurenz 2024-05-18 16:23:43 +02:00
parent 9757c082e1
commit 546962f6ba

View File

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