69 Commits

Author SHA1 Message Date
3a8bf8ae88 Preserve passed procedure parameters 2025-12-17 12:00:25 +01:00
1cf71f1a5f Move procedure call register allocation to RTL 2025-12-12 18:32:01 +01:00
305032b534 Assign stack offset to local variables in a later pass 2025-12-09 18:49:11 +01:00
cc8f815337 Describe the type system 2025-12-04 18:57:51 +01:00
8eb87757a0 Remove modula-2 definitions 2025-12-03 09:36:26 +01:00
1c2a8e6da8 Add boolean literals and type 2025-12-02 22:28:40 +01:00
23b6f074c7 Merge GCC frontend into the branch 2025-12-02 17:14:18 +01:00
5f7d839741 Replace getters and setters with field access 2025-11-30 19:41:16 +01:00
eb691db24a Allow parsing multiple designator expressions in a row 2025-11-28 12:42:51 +01:00
f35bdd07c2 Annotate record field access expressions 2025-11-25 17:49:55 +01:00
b5b129a90c Build documentation 2025-11-25 16:20:48 +01:00
c20d9b7240 Set expression type for enumeration values 2025-11-25 08:03:05 +01:00
c3eff02f8d Visit expressions in the type checker 2025-11-22 23:27:00 +01:00
52b9152158 Support nil literals 2025-11-20 15:43:08 +01:00
fd9e8a36b5 Add jump_if_not_zero and bnez instructions 2025-11-19 13:05:51 +01:00
76f55d0796 Rename RTL instructions to Risc-V versions 2025-11-18 20:10:34 +01:00
8da9241233 Use custom 3-address code operands 2025-11-16 09:26:13 +01:00
cc3acdfd12 Handle immediate values in RTL 2025-11-13 20:40:17 +01:00
c24373927c Add assembly generation stage 2025-11-12 20:07:24 +01:00
d144cb2101 Move stages into subdirectories 2025-11-08 11:07:39 +01:00
0b51634566 Generate record accessors automatically 2025-11-07 09:57:44 +01:00
63c211a8e9 Rename elna_generator to elna_tac 2025-11-03 16:16:48 +01:00
64dc00c71f Make TAC generation stage 2025-11-02 08:42:39 +01:00
a984d2ac93 Provide binary and unary TAC operations 2025-11-01 07:20:42 +01:00
788cb4253f Add code generator procedures and enumerations 2025-10-27 22:30:28 +01:00
37a698da91 Allocate bigger memory regions dynamically 2025-10-25 21:23:47 +02:00
b206322455 Parse type declarations and variable part 2025-10-24 16:07:57 +02:00
70eab55cde Parse statement lists 2025-10-19 12:45:55 +02:00
c6531ba398 Extract simple expression parser 2025-10-10 13:53:54 +02:00
af9ad5b712 Implement enumeration 2025-10-05 11:13:24 +02:00
2519b3f9e9 Switch completely to the table based lexer 2025-09-29 16:55:38 +02:00
8ccb635302 Make begin optional in procedures with only return 2025-09-25 10:38:19 +02:00
0cc41f2d83 Implement elsif for if-statements 2025-09-23 22:22:38 +02:00
6e9086aa26 Support multiline comments 2025-09-20 18:22:54 +02:00
1e97b660bf Support named local variables and parameters 2025-09-18 13:01:00 +02:00
c5f2986120 Do not support assembly inline statements 2025-09-15 12:50:32 +02:00
ee3b733a81 Implement if-else 2025-09-13 21:15:09 +02:00
216dc59f0b Support comments between (* and *) 2025-09-11 13:05:04 +02:00
d16ec370dc Compile static initializers 2025-09-07 20:51:39 +02:00
e0ac57dc1d Add string literals 2025-09-05 17:17:28 +02:00
4888252274 Implement string literals 2025-09-04 22:07:01 +02:00
4b42c59649 Implement binary logical expressions 2025-09-03 19:38:10 +02:00
ed3e0e043c Implement arithmetic negation 2025-09-03 08:23:47 +02:00
44fa140769 Support simple variable assignment 2025-09-01 14:53:05 +02:00
627975775c Start over 2025-08-30 01:29:00 +02:00
e614d43ea9 Support procedure without _ in the first stage 2025-05-13 23:14:20 +02:00
1b31f532df Unify taking an identifier address 2025-05-12 23:07:02 +02:00
d85183c7a6 Support named identifiers on the right side 2025-05-12 00:06:02 +02:00
707f983fe9 Add symbol info for parameters and local variables 2025-05-10 23:24:03 +02:00
890486532c Wrap the mmap2 syscall 2025-05-09 18:42:46 +02:00