From 07c58aab411e37d34b87a59c8d143b3b1955c463 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 8 Jun 2022 20:16:14 +0200 Subject: [PATCH] disclaimer :) --- sapphire.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sapphire.cpp b/sapphire.cpp index cb36d48..f8b4a69 100644 --- a/sapphire.cpp +++ b/sapphire.cpp @@ -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 #include #include