Hi
Anybody knows how can I use VS2010 IDE to write my own language codes and compile it with my own compiler?
views:
33answers:
2
+2
A:
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.
ho1
2010-10-26 09:28:33
+2
A:
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
Vinod Maurya
2010-10-26 09:29:27
The OP didn't say they were using .NET to write their language.
ChrisF
2010-10-26 09:31:15
You are right, but using VS2010 as Editor is not a bad idea, then i can write my own editor seprately...
Dr TJ
2010-10-26 09:32:14
Yes you can use VS IDE for writing your own code. I think you will have to write a plugin and a project template for VS IDE so that you can create a project type with project template and plugin for syntax highlighting, syntax checking, etc etc.
Vinod Maurya
2010-10-26 11:45:43