mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 01:58:02 +00:00
wrote more Testfiles and created files for abstract syntax
This commit is contained in:
parent
713a37cc1c
commit
272af9690b
@ -0,0 +1,17 @@
|
||||
//public class ClassWithConstructorAndMethodCall {
|
||||
// int x = 10;
|
||||
// public classWithConstructorAndMethodCall() {
|
||||
// this.x = 10;
|
||||
// while (methodCall()) {
|
||||
// this.x = this.x * this.x;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// public boolean methodCall() {
|
||||
// if (x > 100) {
|
||||
// return false;
|
||||
// } else {
|
||||
// return true;
|
||||
// }
|
||||
// }
|
||||
//}
|
@ -0,0 +1,14 @@
|
||||
//public class ClassWithConstructorWithParameters {
|
||||
// int x = 0;
|
||||
// public classWithConstructorWithParameters(int startvalue, int repitions) {
|
||||
// this.x = startvalue;
|
||||
// while (repitions > 0) {
|
||||
// int innerRepititions = this.x;
|
||||
// while (innerRepititions > 0) {
|
||||
// this.x = this.x * this.x;
|
||||
// innerRepititions--;
|
||||
// }
|
||||
// repitions--;
|
||||
// }
|
||||
// }
|
||||
//}
|
@ -0,0 +1,4 @@
|
||||
//public class ClassWithMethod {
|
||||
// public boolean method() {
|
||||
// }
|
||||
//}
|
@ -0,0 +1,6 @@
|
||||
//public class ClassWithMethodAndAssignement {
|
||||
// char c = 'c';
|
||||
//
|
||||
// public boolean method() {
|
||||
// }
|
||||
//}
|
@ -0,0 +1,6 @@
|
||||
//public class ClassWithMoreComplexMethod {
|
||||
// public boolean moreComplexMethod() {
|
||||
// int i = 0;
|
||||
// return true;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,2 @@
|
||||
//class OnlyClass {
|
||||
//}
|
@ -0,0 +1,2 @@
|
||||
//public class PublicClass {
|
||||
//}
|
Loading…
Reference in New Issue
Block a user