mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-27 08:38:03 +00:00
accidentally pushed test stuffs
This commit is contained in:
parent
9757c082e1
commit
546962f6ba
@ -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"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user