theoparis / trippy

Typescript parser in rust
MIT License
2 stars 0 forks source link

LLVM Backend #2

Open theoparis opened 2 years ago

theoparis commented 2 years ago

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.

theoparis commented 2 years ago

Solved by #3

theoparis commented 2 years ago

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.

theoparis commented 2 years ago

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.