disclaimer :)

This commit is contained in:
apio 2022-06-08 20:16:14 +02:00
parent 09064b1581
commit 07c58aab41

View File

@ -1,3 +1,12 @@
/* Original implementation of the Sapphire compiler, in one file.
WARNING: THIS IS LEGACY. This was the original thing I wrote to make a simple compiler, but it was clear it wasn't gonna cut it.
The code was difficult to read with everything scattered across the file, and I had to throw random forward declarations everywhere.
Also, it was limited, since my intention was to make it output assembly code manually. As you can see, the definitions are for x86-64 Linux assembly.
Now I'm using LLVM, which will make it a lot easier to do stuff.
Eventually, I found that splitting the code into multiple files, using classes and such, would be much better and easier.
So I began a rewrite of this compiler in the src/ directory, which I found was way easier to write, and was more productive and more.
The src/ compiler has come a long way since then, and this code is just kept around for me to be able to see it in the future and facepalm at it.
I'm aware of Git, I'm using it, but I didn't think keeping this would make any harm. it's very clearly separated from the rest of the code. */
#include <iostream>
#include <string>
#include <stdlib.h>