Victorious3
3eebfdc9d9
Fix POP2 not being called for double and long!
2023-03-01 16:33:03 +01:00
Victorious3
ffdedd4f99
Add OL tests
2023-03-01 15:55:15 +01:00
Victorious3
9500deaf3d
Remove debug printout
2023-03-01 15:30:20 +01:00
Victorious3
11eb03cdf0
Split up equality
2023-03-01 14:55:13 +01:00
Victorious3
3de89a5cfa
Object as default bound
2023-03-01 12:02:01 +01:00
Victorious3
c0348ed304
txGenerics
2023-03-01 11:23:00 +01:00
Victorious3
1ad4cfcb21
Let lambda functions use Object instead of generic parameters
2023-03-01 10:49:03 +01:00
Victorious3
374d2e811b
Generate attribute for JavaTX
2023-03-01 10:27:19 +01:00
Victorious3
68034ed434
Fix FunNGenerator
2023-02-23 18:52:29 +01:00
Victorious3
a92172c9da
Start working on a JavaTX signature attribute
2023-02-21 14:05:21 +01:00
Victorious3
24bbce8265
Fix test cases for new inputs
2023-02-21 14:04:53 +01:00
Victorious3
84a5ed2cc3
Fix inner type variables
2023-02-21 11:31:28 +01:00
Victorious3
b58b6c2288
Fixes for TPH4
2023-02-21 10:28:00 +01:00
Victorious3
99c46bf37f
Fix console interface
2023-02-14 11:36:08 +01:00
Vic Nightfall
29f654279b
Fix codegen a bit, and add missing constraints
2023-02-10 14:54:44 +01:00
pl@gohorb.ba-horb.de
239698c8d6
modified: src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java
...
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java
etwas aufgeraeumt
2023-02-08 17:39:45 +01:00
pl@gohorb.ba-horb.de
4074273ecb
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-02-08 16:53:30 +01:00
pl@gohorb.ba-horb.de
2d117e24cf
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnify2Task.java
...
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java
methodsignature so eingerichtet, dass die Constraints erst am Ende hinzugefuegt werden.
2023-02-08 16:52:23 +01:00
Victorious3
1c2e868589
Fix removing inner type variables
2023-02-07 12:22:37 +01:00
pl@gohorb.ba-horb.de
d39fd64f0f
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-02-02 14:50:18 +01:00
pl@gohorb.ba-horb.de
e699fc36ae
modified: src/main/java/de/dhbwstuttgart/syntaxtree/factory/UnifyTypeFactory.java
...
modified: src/main/java/de/dhbwstuttgart/syntaxtree/visual/OutputGenerator.java
modified: src/main/java/de/dhbwstuttgart/typeinference/constraints/Constraint.java
modified: src/main/java/de/dhbwstuttgart/typeinference/constraints/ConstraintSet.java
modified: src/main/java/de/dhbwstuttgart/typeinference/constraints/Pair.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/RuleSet.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnify2Task.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java
2023-02-02 14:49:30 +01:00
Victorious3
64ec7989b4
Continue with eliminating inner type variables
2023-01-31 15:39:12 +01:00
Victorious3
5243b160f5
Didn't want to remove this
2023-01-31 15:00:09 +01:00
Victorious3
62fad15b6f
We actually need the signature of the class
2023-01-31 14:53:02 +01:00
Victorious3
21fb477ee1
These are the defaults, actually
2023-01-31 14:25:37 +01:00
Victorious3
baec9999db
Don't append new class files, overwrite them
2023-01-31 14:21:16 +01:00
Victorious3
a7720fbf20
Don't append new class files, overwrite them
2023-01-31 13:49:19 +01:00
pl@gohorb.ba-horb.de
0c9612a2ea
modified: ../../../main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-31 11:18:52 +01:00
Victorious3
dabe7f269c
Consider nested type variables for signature (usage)
2023-01-24 16:24:24 +01:00
Victorious3
a9f69ead5c
Use signature in methodcall
2023-01-24 15:11:31 +01:00
pl@gohorb.ba-horb.de
04508a85f1
Bei NewClass ReturnType hinzuefuegt
...
modified: src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-24 14:35:51 +01:00
Victorious3
9dca8ccdaa
Fix parameter types in super call
2023-01-24 12:27:30 +01:00
Victorious3
8250f0cb51
Didn't mean to remove that
2023-01-24 12:17:21 +01:00
Victorious3
a26f466471
Fix
2023-01-24 12:16:34 +01:00
pl@gohorb.ba-horb.de
dc4b1c7b4f
Merge branch 'targetBytecode' of gohorb.ba-horb.de:/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-01-24 12:06:16 +01:00
pl@gohorb.ba-horb.de
2448969426
In MethodCall argTypes durch signature ersetzt und ReturnType eingefuegt.
...
modified: src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/StatementGenerator.java
modified: src/main/java/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-24 12:05:26 +01:00
Victorious3
5e89ceeee8
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-01-24 11:55:55 +01:00
Victorious3
1ce180ce74
Change tests to umatch updated generics
2023-01-24 11:55:40 +01:00
pl@gohorb.ba-horb.de
2ab3becf44
Merge branch 'targetBytecode' of gohorb.ba-horb.de:/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-01-24 11:32:05 +01:00
pl@gohorb.ba-horb.de
3b77a1271b
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-24 11:31:55 +01:00
Victorious3
9d20c0564c
Get rid of inner type variables for methods
2023-01-23 16:04:19 +01:00
pl@gohorb.ba-horb.de
8be7f3d790
modified: ../../../src/main/java/de/dhbwstuttgart/syntaxtree/statement/MethodCall.java
2023-01-23 15:14:39 +01:00
pl@gohorb.ba-horb.de
9e6b2e9ced
modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/assumptions/MethodAssumption.java
...
modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-23 15:13:51 +01:00
Victorious3
69bdb4aa5b
Consider environment of type variables in method call
2023-01-23 13:56:21 +01:00
pl@gohorb.ba-horb.de
8aa67594d9
modified: ../../../src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
...
argTypes in MethodCall werden gesetzt
2023-01-23 13:49:11 +01:00
pl@gohorb.ba-horb.de
8dfce15850
new file: ../../AllgemeinTest/VectorNotObject.jav
...
new file: ../../AllgemeinTest/WildcardCaptureConversionTest.jav
modified: ../../../src/test/java/AllgemeinTest.java
2023-01-23 11:51:05 +01:00
pl@gohorb.ba-horb.de
d1fd65fad7
modified: src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java
...
Loeschungen angezeigt
modified: src/main/java/de/dhbwstuttgart/target/generate/ASTToTargetAST.java
Ansatz fuer Veraenderung des Algorithmus bei Generated Generics eingefuegt.
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java
Loeschungen angezeigt
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
Loeschungen angezeigt
modified: src/test/java/targetast/TestComplete.java
tphTest eingfuegt
2023-01-18 18:11:45 +01:00
JanUlrich
752faaca86
Add jar-building to pom-file. Fix ConsoleInterface
2023-01-17 19:31:15 +01:00
pl@gohorb.ba-horb.de
a2d8ab35ae
Merge branch 'targetBytecode' of gohorb.ba-horb.de:/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-01-17 17:22:46 +01:00
pl@gohorb.ba-horb.de
0944cf59fb
modified: src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java
...
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/model/FiniteClosure.java
modified: src/main/java/de/dhbwstuttgart/typeinference/unify/model/OrderingUnifyPair.java
new file: src/main/java/de/dhbwstuttgart/util/BiRelation.java
renamed: src/main/java/de/dhbwstuttgart/typeinference/unify/model/Pair.java -> src/main/java/de/dhbwstuttgart/util/Pair.java
2023-01-17 17:22:22 +01:00
Victorious3
abe7553c37
Add missing object bounds
2023-01-17 15:57:41 +01:00
Victorious3
43e8837308
Simplify tests by adding BoundsChain
2023-01-17 12:42:20 +01:00
Victorious3
268f2b72eb
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2023-01-17 11:59:19 +01:00
Victorious3
d9bb0037b8
Improve genericcs tests
2023-01-17 11:58:59 +01:00
pl@gohorb.ba-horb.de
f0f3a91e27
Constraints fuer Generated Generics erzeugt und schreibt diese als Attribute methCallargTypesRetType in den Klassen TYPE, TypeStmt und JavaTXCompiler
...
modified: src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java
modified: src/main/java/de/dhbwstuttgart/typeinference/constraints/Constraint.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPE.java
modified: src/main/java/de/dhbwstuttgart/typeinference/typeAlgo/TYPEStmt.java
2023-01-11 18:51:55 +01:00
pl@gohorb.ba-horb.de
b9c7b888c1
Changes to be committed:
...
deleted: src/test/java/targetast/Fun1$$.java
2023-01-11 11:14:49 +01:00
Victorious3
7aa7f94110
Add user defined generics to methods
2023-01-10 16:06:57 +01:00
Victorious3
229c6c523d
Change file path to make the tests happy
2023-01-10 13:48:21 +01:00
Vic Nightfall
96ffc12ebc
Merge with bigRefactoring
2023-01-04 16:07:48 +01:00
Vic Nightfall
f714589728
Remove unused imports
2023-01-04 15:47:04 +01:00
Vic Nightfall
f3e7fc0dc3
Test generics
2023-01-04 15:46:25 +01:00
Vic Nightfall
9f27d0d0fa
Work on the generics tests
2022-12-06 17:44:39 +01:00
Andreas Stadelmeier
b41680dc84
Merge with targetBytecode, Set language level to Java 19 + preview-features
2022-11-28 13:38:31 +01:00
Vic Nightfall
b63d1bcf73
Fix FunNGenerator
2022-11-27 13:22:47 +01:00
Vic Nightfall
8806d1462c
Fix FunNGenerator using the wrong string
2022-11-27 12:57:47 +01:00
Vic Nightfall
dbd5311d93
Fix the build by reinstating old classes
2022-11-23 21:35:33 +01:00
pl@gohorb.ba-horb.de
291fee12db
new file: ../../AllgemeinTest/VectorConstAdd.jav
...
modified: ../../bytecode/javFiles/VectorAdd.jav
new file: ../../../src/test/java/AllgemeinTest.java
wieder hergestellt.
2022-11-21 23:51:06 +01:00
JanUlrich
f8c8e2c805
Move Tests
2022-11-18 09:50:35 +01:00
Andreas Stadelmeier
00c8f41671
Change pom.xml: Clean up, Set java version to 17, Antlr4 plugin uses standard source directory. Project changes: move /test/resources to /resources
2022-11-15 16:21:09 +01:00
Vic Nightfall
84cb7d871b
Move package
2022-11-14 15:55:40 +01:00
Vic Nightfall
83b735716f
Convert FunNGenerator to class with static methods instead of using a singleton
2022-11-14 15:44:31 +01:00
Vic Nightfall
15e94111d4
Rework FunNGenerator to use target types
2022-11-14 15:28:00 +01:00
Vic Nightfall
9d942a7014
Start replacing the code generator
2022-11-13 19:03:54 +01:00
Vic Nightfall
aa156b793f
Generate proper FunN types
2022-11-13 17:05:14 +01:00
Vic Nightfall
be1c356a9f
Don't drop wildcards
2022-11-13 14:38:21 +01:00
Victorious3
4307371dee
Box test
2022-11-13 13:47:24 +01:00
pl@gohorb.ba-horb.de
26bb3c9579
modified: ../../java/AllgemeinTest.java
...
modified: Box_Main.jav
2022-10-10 18:11:57 +02:00
Andreas Stadelmeier
8f7becd62d
Fix for Bug 230
2022-10-03 10:08:50 +02:00
Victorious3
c40fbd9399
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2022-10-02 18:28:00 +02:00
Victorious3
b4e1be0fb7
Fix some type conversions
2022-10-02 18:27:41 +02:00
pl@gohorb.ba-horb.de
469feb6349
modified: src/test/resources/bytecode/javFiles/Inf.jav
...
zwei weitere Variablen eingefuegt
2022-09-27 18:18:13 +02:00
pl@gohorb.ba-horb.de
82f5146abb
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2022-09-27 15:19:20 +02:00
pl@gohorb.ba-horb.de
f119bff0b6
modified: ../bytecode/javFiles/Inf.jav
...
modified: ../bytecode/javFiles/SimpleCycle.jav
2022-09-27 15:19:10 +02:00
Victorious3
a660d7a295
Remove bounds with Object when more concrete bounds are added
2022-09-22 22:01:28 +02:00
Victorious3
247eb0ef79
Add tests for generic parameters
2022-09-22 18:48:50 +02:00
Victorious3
04b9af8c7b
Add Box test
2022-09-22 16:50:19 +02:00
pl@gohorb.ba-horb.de
33e9b87562
Der Returntyp des Konstruktors wurde mit TypePlaceholders als Parameter bestimmt.
...
Korrigiert: TypePlaceholders durch GenericRefType ersetzt
modified: ../../../../main/java/de/dhbwstuttgart/syntaxtree/ClassOrInterface.java
Methode generateTypeOfThisClass eingefuegt. Macht aus der atuellen Klasse den zugehoerigen RefType
In getConstructors in new MethodAssumption den ofType-Parameter (Typeplaceholders) durch cl.generateTypeOfThisClass()
ersetzt. Dadurch werden GenericRefType in den Typ eingefuegt.
2022-09-18 00:19:20 +02:00
Victorious3
5503f3723c
Fix Tph2
2022-08-26 17:21:23 +02:00
Victorious3
b0c1d5d96d
Remove duplicate type variables
2022-08-26 16:05:59 +02:00
Victorious3
6fb329ae1a
Initialize local variables to null
2022-08-26 15:13:48 +02:00
Victorious3
45b80bb6c5
Don't change the constraints anymore
2022-08-26 14:55:03 +02:00
pl@gohorb.ba-horb.de
5d5f3ee627
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
...
Conflicts:
src/test/java/targetast/TestComplete.java
2022-08-09 17:14:09 +02:00
Victorious3
edf85dca7f
Fix Tph4-6
2022-08-09 12:59:23 +02:00
pl@gohorb.ba-horb.de
bca1bd622f
modified: ../bytecode/javFiles/SimpleCycle.jav
...
Simple cycle aktiviert
2022-08-09 09:50:47 +02:00
pl@gohorb.ba-horb.de
6fc70db481
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2022-08-08 15:25:23 +02:00
pl@gohorb.ba-horb.de
c933160dcb
modified: ../../java/targetast/TestComplete.java
...
Test Tph7.jav in integriert.
2022-08-08 15:24:46 +02:00
Victorious3
2af59d1e1f
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2022-08-08 14:51:08 +02:00
Victorious3
f36f981ca8
Lambda captures
2022-08-08 14:50:43 +02:00
pl@gohorb.ba-horb.de
d54cd5e20a
modified: ../../../../pom.xml
...
wieder auf Java-18 umgestellt
modified: ../../java/targetast/TestComplete.java
Test Tph4Test eingefuegt
2022-08-08 14:45:58 +02:00
pl@gohorb.ba-horb.de
975f2cefe3
Merge branch 'targetBytecode' of ssh://gohorb.ba-horb.de/bahome/projekt/git/JavaCompilerCore into targetBytecode
2022-08-08 11:50:07 +02:00