开发者

what is the difference between building static and dynamic language for .net?

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?

  1. What steps in process of building these 开发者_StackOverflow社区two kinds of languages are different?
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜