|
|
|
|
![]() ![]() |
Aug 27 2005, 04:40 PM
Post
#11
|
|
|
Member - Active Contributor Group: Members Posts: 84 Joined: 7-June 05 From: Antioch, California Member No.: 5,943 |
m^e:
Thanks for the tips. I really appreciate it.! -YB |
|
|
|
Jan 3 2008, 03:06 AM
Post
#12
|
|
|
Premium Member Group: [HOSTED] Posts: 369 Joined: 28-April 05 From: Salt Lake City, Utah Member No.: 4,500 |
I think you should read up some articles on creating an interpreter. That should help you crack the nut. First of all - unlike compiler, you have no need to write lexical & syntactical analyzers i.e. parsers - you can address the code line-by-line .. and then act accordingly. All scripting languages use some sort of an interpreter running in the background. So I'd say interpreter is the way to go.. Check out some basic articles on it - they might help: 1. http://www.javaworld.com/javaworld/jw-05-1...05-indepth.html 2. http://memphis.compilertools.net/interpreter.html 3.http://www.tldp.org/HOWTO/Linux-Gamers-HOWTO/interpreters.html 4. Also check out this book: http://www.amazon.com/exec/obidos/tg/detai...488159?v=glance I thought the whole point of his question was to avoid writing an interpreter himself. I added a scripting feature to my program (relspace), but I certainly did not try to imitate any previous scripting language but tailored it to the scripting needs of my program (and frankly to my own preferences). But I guess that if you want to make your program more friendly to the user, making it use a something more like a standard scripting language would be better. However, is it possible that you might run into copyright problems if you choose one that is not in the public domain? This post has been edited by mitchellmckain: Jan 3 2008, 03:07 AM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th September 2008 - 03:02 AM |