Yeah, grouping the functions like that isn't really going to be any good for me...
I like the error catching idea, but as you said, I could get the function name from the message, but not the arguments.
Is it possible to restart the parsing from a particular line / character?
So I could extract the function name, define it, and then start again from the line and character?
Or perhaps go to that line and use some regexs to find the arguments?
But would the script continue to run nicely?
Maybe it is just for the "too hard basket". Must weigh up the smallish advantage against the time that would be wasted on it...