Reputation: 61
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?
Upvotes: 1
Views: 350
Reputation: 3686
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.
Upvotes: 1