wrote more Testfiles and created files for abstract syntax

This commit is contained in:
JonathanFleischmann 2024-05-02 11:17:51 +02:00
parent 713a37cc1c
commit 272af9690b
7 changed files with 51 additions and 0 deletions

View File

@ -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;
// }
// }
//}

View File

@ -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--;
// }
// }
//}

View File

@ -0,0 +1,4 @@
//public class ClassWithMethod {
// public boolean method() {
// }
//}

View File

@ -0,0 +1,6 @@
//public class ClassWithMethodAndAssignement {
// char c = 'c';
//
// public boolean method() {
// }
//}

View File

@ -0,0 +1,6 @@
//public class ClassWithMoreComplexMethod {
// public boolean moreComplexMethod() {
// int i = 0;
// return true;
// }
//}

View File

@ -0,0 +1,2 @@
//class OnlyClass {
//}

View File

@ -0,0 +1,2 @@
//public class PublicClass {
//}