Dr TJ
Dr TJ

Reputation: 3356

Compile codes with my own compiler in VS2010?

Hi
Anybody knows how can I use VS2010 IDE to write my own language codes and compile it with my own compiler?

Upvotes: 0

Views: 198

Answers (2)

Vinod Maurya
Vinod Maurya

Reputation: 4167

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

Upvotes: 2

Hans Olsson
Hans Olsson

Reputation: 55009

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.

Upvotes: 2

Related Questions