Open theoparis opened 2 years ago
Solved by #3
Unfortunately I will have to delay the compiler implementation due to https://github.com/TheDan64/inkwell/issues/242. The error handling crate, miette will not work with inkwell due to *const i8
being unsafe... The only other solution is to write the compiler without the help of LLVM, which is something that I have no idea how to develop towards at the moment.
It turns out this was actually a simple fix, I just had to create a custom error type and map the LLVM errors to my custom error type.
I am currently working on adding an LLVM compilation backend to trippy in the rewrite branch. This issue will be tracking the progress so far.
loadExternalFunction
)+
,*
,/
, etc)