View Full Version : How would you make a scripting language?
Jon on Toast
01-06-2008, 01:00 PM
How would you make a scripting language?
I mean like a IDE.
So it stores the converted code from what you wrote then compiles it?
SamuraiCrow
01-06-2008, 01:29 PM
A friend and I am making a version of BASIC on top of LLVM (http://www.llvm.org/) so it will both compile statically and have a JIT compiler. See the Kaleidoscope Tutorial (http://llvm.org/docs/tutorial/) for details.
Kenneth Gorking
01-07-2008, 04:05 AM
I went to the peroxide (http://www.peroxide.dk/tuts_scr.shtml) tutorials when I wanted to learn how to create a scripting language. It's both in-depth and easy to follow, and the language is very easy to mold into whatever you desire. This is of course only as long as you follow the tutorials from start to finish, and don't just skip to the end :)
For an IDE, you can use the Custom Build Rules introduced in Visual Studio 2005, which pretty much allows you to control how and when your own source-files should be compiled, from within Visual Studio. There is a nice article here that will go more into depth: Understanding Custom Build Rules in Visual C++ 2005: Building Flex and Bison Files from the IDE (http://msdn2.microsoft.com/en-us/library/aa730877(vs.80).aspx)
Nicholas Christopher
01-07-2008, 11:48 AM
Interesting subject...
Let me ask you this:
What are you looking to achieve with a new scripting language that cannot already be achieved with an existing one?
You did use the word compile, or do you mean interpreter?
I'm saying this because you use the word scripting and not programming language.
Jon on Toast
01-11-2008, 09:20 AM
I mean kinda like whats in torque....
vBulletin, Copyright ©2000-2010, Jelsoft Enterprises Ltd.