Closed TitanHZZ closed 11 months ago
There is now support for very basic preprocessor directives like '%define' and '%include' but there are some limitations with the current system. For example, '%include' does not support the use of code (instructions) inside the included file (the resulting program will have undefined behavior) and '%define'ed statements will only be valid as instruction operands. The current preprocessor implementation will be considered unfinished until at least a proper '%include' is implemented what will most likely require rewriting the entire translation/compilation mechanism. Not closing.
With the latest commits, the preprocessor got a lot better and now supports code in '%include'ed files. '%define' statements are also better now. Closing.
Add support for preprocessor directives.