Well, let me explain how my preproccessing works:
As soon as the scripts are made they are ran through a "compiler" to turn them into the form my program wants. Specifically, mine goes through, and replaces every function with a number to the index array, and replaces all mentions of variables to what they should be, and any other changes, and then saves it as basically just a bunch of numbers that my scripting engine loads in as just a set of instructions. Everything is preparsed and ready, the engine just goes through and runs it. They way mine is setup is very similar to assembly. (as far as I know atleast. I only a know a little assembly...)
Actually, I don''t actually have text parser anywhere. I wrote a script editor that gives the list of functions and commands, and you simply add them to the list, and choose the inputs for them, and when everything is done, you just save it and it saves it in the final form the engine wants.
The big problem with mine, is that there is a set number of inputs a function can have, and everything that needs more than that number has to store the values in variables that the commands and functions will read.
LOL, can you tell I''m proud of my scripting engine

It isn''t the fanciest, or easiest to setup, out there, but I designed it for execution, and it does it''s job good.
Drakonite
[Insert Witty Signature Here]