This is a compiler for the Sapian programming language. Sapian is a language I developed during my time in college for the compilers course, and it's named after my professor, whose last name is Sapia.
Sapian is a simple programming language based on C, which is easy to learn. It includes basic data types such as integers, floats, characters, and strings, as well as conditional statements and for and while loops. For now, I have only written the parser and lexer using Python, and the mainframe is also written in Python and uses Tkinter. The mainframe is simple and includes two menu buttons, one for compiling and one for opening .sap files, as well as saving them. - It also has three main areas: - The middle area is where you can write Sapian code. - The right area shows the code's tokens line by line (which was a requirement from my professor). - The bottom area shows any errors.
To use the Sapian compiler, you must have Python 3 installed on your system. You can download Python 3 from official website.
Once you have installed it, you can download the Sapian Compiler source code from this repository: Sapian Compiler.
Numpy is required.
I have a small bug with the column numbers. It's not something that interferes with using the compiler, but it's a bit annoying. I haven't been able to figure it out yet.
Contributions to enhance or extend the functionality of the M42 Sapian Compiler project are welcome. Feel free to fork this repository and submit pull requests with improvements or new features.
For more information or inquiries, you can find me on GitHub or send an email.