Hacker News new | ask | show | jobs
by reeealloc 1775 days ago
Wrote a compiler with .NET last year. Used F# for the Lexing/Parsing to an AST and C# for LLVM IR code gen. Interop was so easy, but the docs for the C# LLVM bindings were not so great, so it's a little incomplete. I only got it to effectively interpret, never actually executed a whole outputted object file.
3 comments

When I've been messing with this stuff, then I decided to manually write LLVM IR instead of using C#'s LLVM Bindings
With .NET you could also emit IL.
How was F# for the task?