Initial commit

This commit is contained in:
2022-06-05 15:16:04 +02:00
commit 9651c57760
90 changed files with 11887 additions and 0 deletions

16
TODO Normal file
View File

@ -0,0 +1,16 @@
# Compiler
- Catch exceptions thrown by the argument parser and print them normally.
- Structs or records.
- Unions.
- Type checking.
- Support immediates greater than 12 bits.
- It seems instructions are correctly encoded only if the compiler is running
on a little endian architecture.
- Assignment to a pointer.
- Static array.
- Syscalls.
- Error message with an empty file wrongly says that a ")" is expected.
- Support any expressions for constants.
- Built-in types are added in the symbol table constructor. It would be better to
add them outside, before the type analysis begins.