diff --git a/src/main/java/de/maishai/Compiler.java b/src/main/java/de/maishai/Compiler.java index c245997..1f1ebeb 100644 --- a/src/main/java/de/maishai/Compiler.java +++ b/src/main/java/de/maishai/Compiler.java @@ -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 fromSources) { List 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")); + } }