--- In [email protected], "brucexs" <[EMAIL PROTECTED]> wrote:
>
>
> >
> > Is that a cmd entry including the @ symbol?
> No the name is the label. @ is optional
>
> >
> > What about the actual calls to those functions?
> >
> > LCmd1 = name(arg1, arg2, etc.)
> >
>
> You have to replace with
> LCmd1 = [EMAIL PROTECTED](arg1, arg2, etc.)
>
> You have to make sure it is not a built-in function name.
Interesting exercise.
After attempting to create and use a list of exclusionary words, I
realized it would be better to convert
name(arg1, arg2, etc.) to
[EMAIL PROTECTED](arg1, arg2, etc.)
only when I already know "name" is a Function name.
Have to trust the original script didn't try to make a Function with a
bad name choice. I presume you disallow Function statements where the
name is a reserved word (but haven't tested).
I don't see how this can work with imports(Functions) anyway because
the script owning those functions may legitimately be in a file.
>
> I also found in testing that
> quit(xxx)
> fails unless there is a blank after the keyword. There may be other
> cases like this for other *script keywords.
>
Ok, so will replace any "quit(", "if(" and "for(" so there's a space
before the opening parenthesis. Those seem to be the only *Script
keywords that have parenthetical expressions. The only keyword I'm
inserting "*Script" in front of is "Jump" (with no @).
Regards,
Sheri