Commit Graph

415 Commits

Author SHA1 Message Date
7b53346580 Merge branch 'main' of https://github.com/JonathanFleischmann/CompilerULTIMATE 2024-05-20 21:50:15 +02:00
ce19fcb603 bugfix Parser for return; statements 2024-05-20 21:50:12 +02:00
404Simon
8bccfc3a56 bugfix in fieldvaraccess 2024-05-20 21:22:16 +02:00
404Simon
ad57e4baff Merge branch 'refs/heads/codeGEn' 2024-05-20 20:53:04 +02:00
404Simon
050dedd4db remove unused labels and make break work 2024-05-20 20:45:17 +02:00
404Simon
cc68035406 add for 2024-05-20 20:24:00 +02:00
404Simon
de4082eff3 add while and do while 2024-05-20 20:18:23 +02:00
404Simon
99ed3a322b add methodcall 2024-05-20 18:44:34 +02:00
404Simon
acf7b4eff8 accurately depicted stack size 2024-05-20 17:53:15 +02:00
404Simon
02039a5334 accurately depicted stack size 2024-05-20 16:59:30 +02:00
ca9f6cc06a Parser return bugfix 2024-05-20 16:52:36 +02:00
3a267180ba Parser can do Else-if 2024-05-20 16:26:20 +02:00
9f6fc527f3 Parser can do new Object(arg).method() now 2024-05-20 15:23:07 +02:00
c3a9dd1f1d Parser bugfix 2024-05-20 14:41:16 +02:00
fb8bfb719a Parser bugfix 2024-05-20 14:18:32 +02:00
35d7733c62 Parser Bugfix 2024-05-18 17:19:31 +02:00
4d0f124057 decalaration and initialization of local vars in for loops 2024-05-18 16:43:45 +02:00
546962f6ba accidentally pushed test stuffs 2024-05-18 16:23:43 +02:00
9757c082e1 Declaration is now a Statement and Varaibles can be declared anywhere BUT now it actually all get's parsed in the right order 2024-05-18 16:18:52 +02:00
4b69908ed7 parser can deal with int i = 5 2024-05-16 18:42:30 +02:00
31290c7c2c Parser doesn't accept code after a return statement (unreachable) 2024-05-16 18:09:29 +02:00
9aedcd646d Merge branch 'main' of https://github.com/JonathanFleischmann/CompilerULTIMATE 2024-05-16 17:46:06 +02:00
95bca36a27 removed null and this 2024-05-16 17:46:02 +02:00
ahmad
b89dca7517 Merge remote-tracking branch 'origin/main' 2024-05-16 07:33:55 +02:00
JonathanFleischmann
2eecf3faa8 implemented test with complex class for type check 2024-05-16 00:09:05 +02:00
ahmad
4aa2a52480 Retrieve typeCheck in TypedAssignment 2024-05-15 22:42:58 +02:00
404Simon
f1b366e157 Merge branch 'refs/heads/main' into codeGen
# Conflicts:
#	src/main/java/de/maishai/typedast/typedclass/TypedAssignment.java
#	src/main/java/de/maishai/typedast/typedclass/TypedBinary.java
#	src/main/java/de/maishai/typedast/typedclass/TypedFieldVarAccess.java
#	src/main/java/de/maishai/typedast/typedclass/TypedIntLiteral.java
#	src/main/java/de/maishai/typedast/typedclass/TypedNew.java
#	src/main/java/de/maishai/typedast/typedclass/TypedUnary.java
#	src/main/resources/JavaTestfiles/ClassCanBeTyped.java
2024-05-15 20:22:18 +02:00
ahmad
3e63f309d9 Add some docu for TypedProgram 2024-05-15 19:12:49 +02:00
ahmad
5fe0098062 Refactored typed classes 2024-05-15 18:50:43 +02:00
ahmad
0215d38aa1 Updated the TypedFieldVarAccess 2024-05-15 18:42:49 +02:00
ahmad
bac72bdc81 Merge remote-tracking branch 'origin/main' 2024-05-15 18:25:18 +02:00
ahmad
1fb977f248 Refactored some typed classes 2024-05-15 18:23:39 +02:00
ahmad
7979aece64 update typeCheck of TypedFieldVarAccess 2024-05-15 17:59:16 +02:00
JonathanFleischmann
e51369715c implemented test with complex class for parser and scanner 2024-05-15 17:47:57 +02:00
ab6c71e9d1 Added this and null to expressions 2024-05-15 17:29:25 +02:00
8318defd30 minor change in ExpressionGenerator 2024-05-15 16:58:58 +02:00
f74ba50caa accidentally commited test stuff, revert 2024-05-15 16:57:30 +02:00
d4cdc45b63 Bugfix: charLiteral now get's the actual char, not just the quotationmark 2024-05-15 16:56:47 +02:00
ahmad
aaa8a27ff9 Doing typeCheck for multi classes 2024-05-15 16:42:09 +02:00
404Simon
017014c0ce make new work 2024-05-14 23:57:17 +02:00
ahmad
fdac5aa346 Merge remote-tracking branch 'origin/main' 2024-05-14 23:05:29 +02:00
3e64278624 Fix args null in New 2024-05-14 23:03:34 +02:00
ahmad
98a46b7679 Replaced the TypedClass to TypedProgram in typeCheck and others convert methods 2024-05-14 22:54:38 +02:00
404Simon
a3d7c1da7e add typecheck 2024-05-14 15:51:01 +02:00
JonathanFleischmann
f5cc94316e fixed program instead of classes and did some renaming etc 2024-05-14 15:23:12 +02:00
JonathanFleischmann
131264d27e Merge branch 'refs/heads/MultipleClasses' into testsuites 2024-05-14 15:05:12 +02:00
JonathanFleischmann
fedd7ca233 fixed program instead of classes and implemented some tests for typecheck 2024-05-14 15:03:38 +02:00
JonathanFleischmann
99d2e7a104 fixed program instead of classes and implemented some tests for typecheck 2024-05-14 15:03:26 +02:00
36f3d2755a Finish Compiler for Multiple Classes 2024-05-14 15:01:22 +02:00
404Simon
34efc2847b Merge branch 'refs/heads/main' into codeGen 2024-05-14 14:56:45 +02:00