I am working towards building a small language or dst that makes use of .net/clr. Aside from reading a lot the most progress I made is a C# program that takes some basic input (no ebnf actual lexing or fancy parsing) and used ILgenerator to create a hellow world program with opcodes.
This is obviously not a compiler but I thought calling the opcodes on the vm is what a compiler would do.
Researching the subject I noticed ILgenerator is not supported from netcore 3.0 and up (ms 'wants' to support it again in the future).
I looked into Boo looked promising but noticed it's stuck on .net with some blocking issues atm.
What I am wondering is,
- For a actual compiler would you also jsut call opcodes or how do I interact with clr without ILgenerator. Do I need to generate CIL/MSIL by hand?
- What are nice tools/languages to define a compiler for CLR without it doing all of the work for you.
- Do I need to target coreCLR nowadays instead of just clr ?
I try to center these topics around .net/C# since it's what I use at work atm and want to learn about the CLR /compilers.