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.
MSILの生成自体が重要でない場合は、言語をC#に「コンパイル」(変換)してから、通常のdotnetコンパイラを使用できます。難解なパフォーマンスの最適化などを実装する余地はあまりありませんが、それはかなり簡単だと思います。コンパイル速度の最適化に関心がなかったこのような新しい言語の状況では、一般的な高級言語への翻訳が間違いなく私の最初の選択肢でした。