Just a C-like compiler for fun
The latest commits don't work since I'm refactoring at the moment Test it out on b2abfe948b447c9c6b5e8202dff9391e88f1b413 (Untested, I'm just guessing :P)
Todo:
- Variables
- Conditionals
- Pointers / Arrays
- Functions *
- Structs
- AST and code gen optimizations
- Linker (see sonder for my attempts at a linker
4: Unusable
3: Major inconvinience
2: Minor inconvinience
1: "Feature"
Symptom: Results in segmentation fault.
Suspected Cause: Returning from a stack frame to another stack frame that isn't its parent causes a misalignment in the stack.
Potential Fix: Make if statements return in a different way or make them a different kind of frame
Level 3
This is a huge limitation that will be addressed ASAP.