I'm working on a new toy language that will be statically compiled to .NET's IL code.
Off hand I can think of the following to actually generate the IL, but I'm open to alternatives:
- Cecil
- ILASM
I'm working on a new toy language that will be statically compiled to .NET's IL code.
Off hand I can think of the following to actually generate the IL, but I'm open to alternatives:
You can write your own language using this compiler generator. I used it. Its really easy to use and to understand.
There is also the Common Compiler Infrastructure (AST/Code, Metadata), and of course the venerable Reflection.Emit. I don't have any experience of CCI myself, but this page seems a good starting point for the IL translation side of things.