On Tuesday, May 29, 2001, at 01:21 AM, Chris Dillman wrote:
Im thinking of doing more preprocessing and or possibly
turning the tokens into a kind of byte code of numbers....
aka IF would equal 1 etc.
I could modify the interpreter to use only numbers
this would cut out all the string comparisions...
Trade off the code would get kind of ugly fast
with out a lot of comments.
This would probably offer your best solution. The code would not need to
get ugly, just define a bunch of constants. Make a module called
ScriptingConstants or something and make a bunch of integers. For example:
kCmd_If = 1
kCmd_Else = 2
kCmd_Endif = 3
etc.
-Noah Desch
Wireframe Software
http://wireframe.virtualave.net
|