Commit Graph

39 Commits

Author SHA1 Message Date
fd35b4583e Add mainmeth 2024-05-29 19:40:34 +02:00
7d4aa26cbb Add Print as Statement 2024-05-20 22:38:44 +02:00
0eba601eff merged two parser versions 2024-05-20 22:08:38 +02:00
89f6d325a9 MOD, DIV support by Parser 2024-05-20 22:07:40 +02:00
185738d1d1 Add Continue as Statement 2024-05-20 21:57:13 +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
4d0f124057 decalaration and initialization of local vars in for loops 2024-05-18 16:43:45 +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
95bca36a27 removed null and this 2024-05-16 17:46:02 +02:00
ab6c71e9d1 Added this and null to expressions 2024-05-15 17:29:25 +02:00
404Simon
922a0b7ffd add public to class declarations 2024-05-13 23:38:22 +02:00
b3fc0c5efd Fix do while 2024-05-10 09:00:47 +02:00
03401434d5 Parser ignores Comments 2024-05-08 23:12:13 +02:00
5d44fc661f removed main method from ast, constructors are always public 2024-05-08 14:53:01 +02:00
0ac708c8ae changes to AST: id is gone, Declaration is one thing, renaming. only one Type 2024-05-08 14:27:51 +02:00
13043a196e merged changes 2024-05-08 11:46:18 +02:00
f816e5c391 left part of an assignement can be a FieldId 2024-05-08 11:44:15 +02:00
8d58ac0a08 Fix numbers in variable names 2024-05-08 11:28:52 +02:00
258819d70f Merge branch 'main' of https://github.com/JonathanFleischmann/CompilerULTIMATE 2024-05-08 10:08:52 +02:00
f97f3a3b3a remove continue 2024-05-08 10:08:29 +02:00
25d539cf49 no programm, forced public in classes and method 2024-05-08 10:08:28 +02:00
ee0a465c84 assign has it's own rule 2024-05-07 20:30:03 +02:00
706e6ee872 changed For to explicitly have an assignement in first and last place 2024-05-07 15:45:46 +02:00
1f0d690043 fix mainmethod potentially empty 2024-05-07 14:51:34 +02:00
f6d546be86 added Object Type with attatched ID to Type and ReturnType 2024-05-07 14:34:52 +02:00
c2ce7ff80f update Generators 2024-05-07 11:32:03 +02:00
73def2733a update records 2024-05-02 14:38:07 +02:00
9738fee630 Updated grammar 2024-05-02 13:29:00 +02:00
eea1af45a4 Update grammar 2024-05-02 11:11:23 +02:00
a1cc591220 Update grammar 2024-05-01 12:06:14 +02:00
deeea62737 public static void main string args 2024-04-24 22:02:26 +02:00
d9182e369d Fix records and Decaf 2024-04-24 21:56:50 +02:00
9566823ad1 surrounded Charliteral with '' 2024-04-24 18:36:06 +02:00
778611c125 added For 2024-04-24 17:26:42 +02:00
7e8f72d51f added new and charConstant 2024-04-24 17:24:26 +02:00
04f571a678 add Decaf.g4 2024-04-24 15:36:08 +02:00