I am student and I want to build my own .net language for the general purpose, just to see how it is done, and to learn something new. What do you you think what is better choice? To build static language which targets CLR or to build dynamic language on top of DLR?
- What steps in process of building these two kinds of languages are different?
- What are the available tools for generating scanner, parser and CIL code? I found that people recommend antlr parser generator for generating AST, and then translating that to DLR expression tree, so you doesn't need to generate CIL code.
I would definitely recommend ANTLR, and the book for it. Unless you really know your grammar generation, you'll need the reference material.
I would also recommend using the ANTLR AST to generate CodeDom. You could use the DLR or not, depending on what kind of a language you want to make.
I've had great success with both those routes though.
I've also generated CIL, which wasn't awesome but did work. Leave that as a last resort.