Why?
The motiviation behind creating this compiler was to understand how compilers work and try to make HolyC
compile on macos/linux. There are a myriad of c
compilers and precious few HolyC
compilers. The small additions I have made to the language, such as type inference, aim to further simplify the usage of the language. Type inference is in most modern languges; go
, rust
, c++
to new but a few. I've watched my fair share of Terry's tutorial videos and he usually states that HolyC
only compiles in TempleOS
as no one had, at his time of recording, written a compiler for it.
Other projects
Here are some projects that I have found which are directly related to HolyC
.
Future
Broadly speaking converting the ast to an IR
to be able to perform some optimisations and target ARM
are high on the list. Also potentially targeting LLVM
and creating an LSP
would be beneficial. It would be cool to be able to have similar performance c
and potentially be able to mix c
and holyc
interchangaby.