mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 02:48:03 +00:00
accidentally commited test stuff, revert
This commit is contained in:
parent
d4cdc45b63
commit
f74ba50caa
@ -18,17 +18,6 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
public class Compiler {
|
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) {
|
public static Program generateAST(List<String> fromSources) {
|
||||||
List<Class> classes = new ArrayList<>();
|
List<Class> classes = new ArrayList<>();
|
||||||
for (String fromSource : fromSources) {
|
for (String fromSource : fromSources) {
|
||||||
@ -108,9 +97,9 @@ public class Compiler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// generateByteCodeFileFromFile(List.of("src/main/resources/JavaTestfiles/ClassWithConstructor.java",
|
generateByteCodeFileFromFile(List.of("src/main/resources/JavaTestfiles/ClassWithConstructor.java",
|
||||||
// "src/main/resources/JavaTestfiles/ClassWithConstructorAndMethodCall.java"),
|
"src/main/resources/JavaTestfiles/ClassWithConstructorAndMethodCall.java"),
|
||||||
// List.of("ClassWithConstructor","ClassWithConstructorAndMethodCall"));
|
List.of("ClassWithConstructor","ClassWithConstructorAndMethodCall"));
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user