Project - ForthCompiler
This project was my third year’s university project.
It’s a simple compiler for a subset of the Forth programming language, as specified by the FORTH 2012 standard.
The lexing and parsing is implemented thanks to the FastParse library for Scala.
The code generation is in vanilla Scala, and “manually” generates LLVM-IR for the code.
It then uses the LLVM toolchain to optimise it and compile it into an executable.
(yes, the README is barebones, I will rewrite it ASAP)