From 3823da5b2f8062a99a0c38377a065cfc2640f78a Mon Sep 17 00:00:00 2001 From: i22011 <89882946+notbad3500@users.noreply.github.com> Date: Wed, 8 May 2024 09:45:38 +0200 Subject: [PATCH 1/2] Tests --- src/main/test/java/MainTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/test/java/MainTest.java b/src/main/test/java/MainTest.java index 92d0239..c956827 100644 --- a/src/main/test/java/MainTest.java +++ b/src/main/test/java/MainTest.java @@ -2,7 +2,9 @@ import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; - +/** + * run: mvn test + */ public class MainTest { @Test void testAdd() { @@ -13,6 +15,3 @@ public class MainTest { } -/** - * run: mvn test - */ \ No newline at end of file From 220fdb506dcdf88cf61be856605850945016e32d Mon Sep 17 00:00:00 2001 From: i22011 <89882946+notbad3500@users.noreply.github.com> Date: Wed, 8 May 2024 09:52:58 +0200 Subject: [PATCH 2/2] Tests --- src/main/test/java/TestSpecs.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/test/java/TestSpecs.md b/src/main/test/java/TestSpecs.md index e3f4c68..3626c74 100644 --- a/src/main/test/java/TestSpecs.md +++ b/src/main/test/java/TestSpecs.md @@ -29,8 +29,7 @@ [TokRightBrace] # Parser -## Parser Input -(Scanner Output) +## Parser Input (Scanner Output) ## Parser Output -> AST ### Beispiel 1: Empty Class @@ -42,6 +41,16 @@ # Semantische Analyse / Typcheck +## Typcheck Input (Parser Output) + +## Typcheck Output + +### Beispiel 1: Empty Class + + + +### Beispiel 2: Filled Class + # Bytecodegenerierung