Hi all !
I am writing a script editor and interpreter project in C/C++. I am finished with script editor (a small syntax coloring app). The script interpreter supports run and step mode, and support about 20 commands (nearly same as ASM). I need your help. Do you have any documents or demo/free source code about writing a script interpreter ? If you have it, can you share or introduce with me. I really appreciate your help.
Sorry for my bad English skill.
Best regards,
Posted on 2005-01-12 09:12:56 by TQN
I don't know any documents about it, but it would be very close to writing an own compiler. If I were you, I'd translate the script into a kind of byte code language, running on a virtual machine. I'd go for a stack machine architecture, not for a particular reason, but just because I'm a stack machine fetishist :-D
Posted on 2005-01-12 11:36:30 by lifewire
NullSoft, the Winamp guys have a scritping language for their install software (NSIS) the C++ source is available from sourceforge...

Posted on 2005-01-12 11:44:43 by donkey
...and if you want JIT capability, you might want to check out http://softwire.sf.net :-)
Posted on 2005-01-12 11:51:55 by f0dder