Books and literature for implementing a language on the CLR [closed]

[亡魂溺海] 提交于 2020-01-01 03:38:05

问题


I'm looking for books and literature on the inner workings of the CLR (and/or possibly the DLR), my long time goal is to implement a simple language on the CLR.


回答1:


A few starters for the CLR:

  • CLR via C# (soon to have an update for v4) (Jeff Richter)
  • ECMA 335
  • Essential .NET volume 1 (Don Box et al) - doesn't cover .NET 2.0, but a good starting point

The DLR itself is Open Source, and its documentation is pretty handy.




回答2:


I would imagine the source code for Mono might have something to say about that. The C# compiler is itself written in C#, and source code is available.




回答3:


Irony - .NET Language Implementation Kit.




回答4:


IronPython and IronRuby are open source implementations on top of the DLR (itself open sourced on Codeplex); and some IronPython releases included a ToyScript language which was meant to serve as an example for general DLR language implementation -- it may still be part of the DLR bundle these days.




回答5:


I'm not sure about the DLR, but here's some open source .NET languages that you can look at the source code for to see how they do it:

  • Boo - A Python-like language
  • LOLCode - Pretty much a joke, but it could still provide some info for you

I'll post more if I can remember any others...




回答6:


Expert .NET 2.0 IL Assembler could also be useful as it describes a lot of the details for .NET applications.



来源:https://stackoverflow.com/questions/1255820/books-and-literature-for-implementing-a-language-on-the-clr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!