From cc05c58159efecc22b668d9447575ddfc4df8215 Mon Sep 17 00:00:00 2001 From: StefanZ3 Date: Sat, 11 May 2024 20:45:51 +0200 Subject: [PATCH] added ast methods, parameter classes --- .idea/misc.xml | 17 + src/main/java/ASTGenerator.java | 49 +- src/main/java/Compiler.java | 3 +- .../abstractSyntaxTree/Class/FieldDecl.java | 5 +- .../abstractSyntaxTree/Class/MethodDecl.java | 8 +- .../Parameter/Parameter.java | 13 + .../Parameter/ParameterList.java | 13 + src/main/java/gen/Decaf.interp | 43 +- src/main/java/gen/Decaf.tokens | 160 +- src/main/java/gen/DecafBaseListener.java | 143 +- src/main/java/gen/DecafBaseVisitor.java | 84 +- src/main/java/gen/DecafLexer.interp | 116 +- src/main/java/gen/DecafLexer.java | 425 +-- src/main/java/gen/DecafLexer.tokens | 160 +- src/main/java/gen/DecafListener.java | 129 +- src/main/java/gen/DecafParser.java | 2776 ++++++++--------- src/main/java/gen/DecafVisitor.java | 77 +- 17 files changed, 2116 insertions(+), 2105 deletions(-) create mode 100644 src/main/java/abstractSyntaxTree/Parameter/Parameter.java create mode 100644 src/main/java/abstractSyntaxTree/Parameter/ParameterList.java diff --git a/.idea/misc.xml b/.idea/misc.xml index 6ddae43..80b387d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,21 @@ + + + +