• Advertisement

Archived

This topic is now archived and is closed to further replies.

C-Style Scripting Language?

This topic is 5531 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know exactly what I want in a scripting language just not how to get. I want something that will basicly compile a simple c program (pointer-less) into byte code and allow me to specify predifined (in the game) functions that can be called from the script probably as well as constants that can be used in the script. I searched the internet and found some interesting things some of them close to what I''m looking for but nothing exactly it. I tried writing it my self but half neither the time nor the patience to work out all the compiler capacity needed for even just simple that simple c style program. But I''m not adversed to adding on to some other program or even paying a reasonable amount for it. Anyone know of something that fits my needs or comes close anough it can be modified?

Share this post


Link to post
Share on other sites
Advertisement
Here''s a nice set of C interpreters to check out. At a glance, I thought CInt seemed to be the most promising.

http://www.cuj.com/link/subject18.htm?topic=link

Share this post


Link to post
Share on other sites
What you're looking for sounds a lot like QuakeC, the scripting language used in Quake 1. Someone has released a VM for it and from talking with the author its pretty easy to implement. You can get ithere

Little background: QuakeC is a C-like language. It has its own compiler (the best one is FrikQCC made by same person who wrote the VM). It has a ton of mathematical equations but is pretty weak when it comes to strings. There are a bunch of tutorials out there (mostly on modifying the original source) on www.inside3d.com and www.quakesrc.org. If you know C or even learning its real easy to get into.


[edited by - Horn on December 27, 2002 8:05:46 PM]

Share this post


Link to post
Share on other sites
Also look into Neverwinternights scripting code, very C''ish.
doubt you could adapt it but it is a well written, fully thought-out scripting language.


Dreddnafious Maelstrom

"If I have seen further, it was by standing on the shoulders of Giants"

Sir Isaac Newton

Share this post


Link to post
Share on other sites

  • Advertisement