开发者

Compile codes with my own compiler in VS2010?

Hi

Anybody knows how can I use VS2010 IDE to write my own language开发者_C百科 codes and compile it with my own compiler?


I will not suggest to use .Net in any case to write your own programming language/compiler. If you use .net, then the person who will be using your compiler must have .net framework. And also the program will undergo lots of conversion from your launguage -> your compiler-> converted .net code -> .net stuffs here to generate the code for windows. It will just add one more step.

EDIT:

Here are some references of compilers, you can use them as your guide.

http://wiki.freepascal.org/Compiler_development_articles

http://en.wikipedia.org/wiki/Dev-C%2B%2B

http://en.wikipedia.org/wiki/Compiler


I'd suggest looking at IronPython, and specifically the IronPython tools for Visual Studio which is OpenSourced and so you might be able to see how they do it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜