C-Style Scripting Language?
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?
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
http://www.cuj.com/link/subject18.htm?topic=link
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]
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]
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement