3 ms·
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 bi
by reeealloc 5y 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.
- tester756 5y agoWhen I've been messing with this stuff, then I decided to manually write LLVM IR instead of using C#'s LLVM Bindings
- lostmsu 5y agoWith .NET you could also emit IL.
- fishmaster 5y agoHow was F# for the task?