Commit Graph

204 Commits

Author SHA1 Message Date
36d9b74df4 Merge remote-tracking branch 'origin/master' into create-parser 2024-07-01 17:41:27 +02:00
2b45d66ac1 extend doku 2024-07-01 17:00:37 +02:00
Matthias Raba
0e1f31080e fixed method/constructor overloading in bytecode generator 2024-06-28 09:20:03 +02:00
Matthias Raba
dee1fcb2df Merge branch 'typedAST' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-28 08:51:19 +02:00
c7e72dbde3 move defaultconstructor injection to the beginning befor typechecking the classes 2024-06-28 08:51:35 +02:00
9657731a93 remove example.hs because its deprecated 2024-06-28 08:44:22 +02:00
b5efc76c17 add default constructor if none are present 2024-06-28 08:44:04 +02:00
Matthias Raba
25dd0802ad Merge branch 'typedAST' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-28 08:44:03 +02:00
Matthias Raba
0a53ea14cf Merge branch 'typedAST' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-28 07:37:02 +02:00
Matthias Raba
4c5dbd16f9 Merge branch 'create-parser' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-28 07:36:52 +02:00
fe4ef2614f add new constructortypecheck with overloading 2024-06-27 18:53:01 +02:00
2154f8fd62 add method overloading 2024-06-27 18:52:18 +02:00
504e26dcdd fix objects not comparable to null 2024-06-27 18:08:36 +02:00
f09e6ad09e adjust parser for constructordeclaration 2024-06-27 08:33:41 +02:00
3e18efc097 add constructodeclarations to class in AST 2024-06-26 18:09:00 +02:00
mrab
cb462b5e75 added constructordeclaration 2024-06-26 17:58:52 +02:00
mrab
6b4b9b496d fixed local variable declaration being ignore inside for loop 2024-06-26 09:42:07 +02:00
mrab
c8b3caa2af Merge branch 'create-parser' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-26 09:22:49 +02:00
05a6de4a0d Merge remote-tracking branch 'origin/master' into create-parser 2024-06-26 09:18:11 +02:00
1eaeffb9a4 parser add for statements 2024-06-26 09:17:21 +02:00
Matthias Raba
87f629282f fixed order of compound AST types 2024-06-24 11:30:29 +02:00
Matthias Raba
6346cb237b removed redundant definitions for opcodeEncodingLength 2024-06-24 11:20:24 +02:00
Matthias Raba
946a1f374c fixed stack op depth for getfield 2024-06-24 07:44:04 +02:00
Matthias Raba
98735fd6ba updated bytecode.md 2024-06-21 09:03:47 +02:00
Matthias Raba
8eb9c16c7a typos, formatting, comments 2024-06-21 08:49:55 +02:00
Matthias Raba
4435f7aac8 Changed internal type of boolean, because it's obviously Z not B haha 2024-06-21 08:07:20 +02:00
Matthias Raba
79ddafbf9a Fixed class offset in constant pool when newly inserted 2024-06-21 07:37:25 +02:00
Matthias Raba
29faab5112 maxStack calculation 2024-06-20 15:07:02 +02:00
Matthias Raba
8c508e6d32 Merge branch 'typedAST' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-20 12:35:34 +02:00
faf3d1674e fix constructor not handling nullliterals correctly 2024-06-20 11:52:35 +02:00
bcbec9209a fix nullliterals having the type null instead of their corresponding object types 2024-06-20 11:26:38 +02:00
Matthias Raba
6547ad04f5 Merge branch 'typedAST' of https://gitea.hb.dhbw-stuttgart.de/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-20 08:40:38 +02:00
8a6dca4e36 fix null not accepted for object method parameter 2024-06-20 08:38:56 +02:00
Matthias Raba
ee302bb245 maxLocals calculation 2024-06-18 07:37:01 +02:00
mrab
5269971334 Merge branch 'create-parser' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-14 16:05:46 +02:00
e4693729dc fix assignment with this 2024-06-14 15:12:59 +02:00
Matthias Raba
2c928ad69b renamed Generator -> Builder 2024-06-14 08:54:12 +02:00
Matthias Raba
b47da4633d refactored assemblers & builders to individual files 2024-06-14 08:47:45 +02:00
Matthias Raba
807aea112e added Test classes, fixed assignment dup missing 2024-06-14 07:57:38 +02:00
mrab
9e43b015b7 injecting initializers into all constructors, multiple classes per file supported 2024-06-13 22:25:35 +02:00
mrab
79a989eecf Merge branch 'typedAST' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-13 22:22:52 +02:00
f02226bca8 add missing typeCheckVariableDeclaration 2024-06-13 22:06:10 +02:00
mrab
3acbce8afc fixed invalid dup depth for postinc/dec 2024-06-13 21:02:00 +02:00
mrab
44c6d74afb Merge branch 'typedAST' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-13 20:51:19 +02:00
mrab
3f6eb68e91 implemented arbitrarily nested increment operators 2024-06-13 20:51:10 +02:00
7e13b3fac3 fix variable redefinition in scope not working 2024-06-13 20:35:00 +02:00
mrab
613a280079 Method & constructor calls fully working 2024-06-13 20:17:23 +02:00
mrab
fbd76deca3 Merge branch 'typedAST' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-13 17:36:09 +02:00
2139e7832c fix missing Typed Expression for local and field variable 2024-06-13 17:33:30 +02:00
mrab
9a9c508fc7 Merge branch 'typedAST' of ssh://gitea.hb.dhbw-stuttgart.de:2222/MisterChaos69/MiniJavaCompiler into bytecode 2024-06-13 17:16:29 +02:00