From 60a304667ad9399b59e334f6f3a34d364c8bc39e Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Fri, 10 Feb 2017 17:37:42 +0100 Subject: [PATCH] ANTLR Parser erweitert --- .../syntaxtree/type/RefType.html | 2 +- .../dhbwstuttgart/syntaxtree/type/Void.html | 4 +- .../syntaxtree/type/class-use/RefType.html | 4 +- .../de/dhbwstuttgart/typeinference/FunN.html | 4 +- src/de/dhbwstuttgart/parser/JavaTXParser.java | 35 ++++++++++--- src/de/dhbwstuttgart/parser/RunParser.java | 3 +- .../parser/SyntaxTreeGenerator.java | 50 +++++++++++++++---- .../syntaxtree/ClassOrInterface.java | 12 ++--- .../dhbwstuttgart/syntaxtree/Constructor.java | 7 +-- .../syntaxtree/ExceptionList.java | 6 +-- src/de/dhbwstuttgart/syntaxtree/Field.java | 6 ++- .../syntaxtree/FieldDeclaration.java | 11 +--- .../syntaxtree/FormalParameter.java | 6 +-- .../syntaxtree/GenericTypeVar.java | 10 ++-- src/de/dhbwstuttgart/syntaxtree/Method.java | 9 +--- .../syntaxtree/statement/Assign.java | 5 +- .../syntaxtree/statement/CastExpr.java | 9 +--- .../syntaxtree/statement/DoubleLiteral.java | 13 ----- .../syntaxtree/statement/Executeable.java | 9 ++-- .../syntaxtree/statement/Expr.java | 10 +--- .../syntaxtree/statement/ExprStmt.java | 4 +- .../syntaxtree/statement/InstanceOf.java | 11 ++-- .../statement/LambdaExpression.java | 16 ------ .../syntaxtree/statement/Literal.java | 4 +- .../syntaxtree/statement/NewArray.java | 11 +--- .../syntaxtree/statement/NewClass.java | 12 +---- .../syntaxtree/statement/Statement.java | 13 +---- .../syntaxtree/type/ExtendsWildcardType.java | 2 +- .../dhbwstuttgart/syntaxtree/type/FunN.java | 9 ++-- .../syntaxtree/type/FunVoidN.java | 10 ++-- .../syntaxtree/type/RefType.java | 28 ++++++----- .../syntaxtree/type/RefTypeOrTPH.java | 12 +++++ .../syntaxtree/type/SuperWildcardType.java | 2 +- .../syntaxtree/type/TypePlaceholder.java | 6 +-- .../dhbwstuttgart/syntaxtree/type/Void.java | 4 -- .../syntaxtree/type/WildcardType.java | 6 +-- .../typecheck/JavaClassRegistry.java | 6 +++ test/parser/StructuralTypes.jav | 5 ++ 38 files changed, 175 insertions(+), 201 deletions(-) create mode 100755 src/de/dhbwstuttgart/syntaxtree/type/RefTypeOrTPH.java create mode 100644 test/parser/StructuralTypes.jav diff --git a/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/RefType.html b/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/RefType.html index 03ee44159..b83e05f4f 100644 --- a/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/RefType.html +++ b/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/RefType.html @@ -109,7 +109,7 @@ var activeTableTab = "activeTableTab";
  • de.dhbwstuttgart.syntaxtree.type.ObjectType
  • diff --git a/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/Void.html b/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/Void.html index dd492ebc9..2c016df1b 100644 --- a/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/Void.html +++ b/doc/LambdaJavadoc/de/dhbwstuttgart/syntaxtree/type/Void.html @@ -109,7 +109,7 @@ var activeTableTab = "activeTableTab";
  • de.dhbwstuttgart.syntaxtree.type.ObjectType