Jump to content


How would you make a scripting language?


4 replies to this topic

#1 Jon on Toast

    New Member

  • Members
  • Pip
  • 4 posts

Posted 06 January 2008 - 09: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?

#2 SamuraiCrow

    Senior Member

  • Members
  • PipPipPipPip
  • 459 posts

Posted 06 January 2008 - 09:29 PM

A friend and I am making a version of BASIC on top of LLVM so it will both compile statically and have a JIT compiler. See the Kaleidoscope Tutorial for details.

#3 Kenneth Gorking

    Senior Member

  • Members
  • PipPipPipPip
  • 911 posts

Posted 07 January 2008 - 12:05 PM

I went to the peroxide 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
"Stupid bug! You go squish now!!" - Homer Simpson

#4 Nicholas Christopher

    Member

  • Members
  • PipPip
  • 77 posts

Posted 07 January 2008 - 07:48 PM

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.
Nicholas Christopher
Architecture software development, and modeling
http:\\www.arconovum.com

#5 Jon on Toast

    New Member

  • Members
  • Pip
  • 4 posts

Posted 11 January 2008 - 05:20 PM

I mean kinda like whats in torque....





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users