mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Reorder the help lines to make better sense.
This commit is contained in:
parent
ed17d3330d
commit
50c2787ef4
1 changed files with 17 additions and 14 deletions
31
main.py
31
main.py
|
@ -49,21 +49,27 @@ Options (+ means active by default, - means inactive by default):
|
|||
extendedglobalexpr + Enables arbitrary expressions in globals (as opposed to
|
||||
dull simple expressions allowed by regular LSL). Needs
|
||||
the optimizer to run for the result to be compilable.
|
||||
breakcont - Allow break/continue statements for loops. Note that
|
||||
when active, 'break' and 'continue' become reserved
|
||||
words, but when inactive they can be used as variables.
|
||||
extendedtypecast + Allows extended typecast syntax e.g. (string)(integer)a
|
||||
is valid with this option.
|
||||
extendedassignment + Enables &=, |=, ^=, <<=, >>= assignment operators.
|
||||
explicitcast - Add explicit casts where they are implicit. This option
|
||||
is useless with 'optimize' and 'optsigns', and is of
|
||||
basically no use in general, other than to see where
|
||||
automatic casts happen.
|
||||
allowkeyconcat + Allow string + key and key + string (both return string)
|
||||
allowmultistrings + Allow C-like string juxtaposition, e.g. "ab" "cd" means
|
||||
"abcd", no concatenation involved. Very useful when used
|
||||
with a preprocessor. Similar to addstrings, but this one
|
||||
is not an optimization, it introduces new syntax.
|
||||
breakcont - Allow break/continue statements for loops. Note that
|
||||
when active, 'break' and 'continue' become reserved
|
||||
words, but when inactive they can be used as variables.
|
||||
duplabels - Normally, a duplicate label within a function is allowed
|
||||
by the syntax by using {} blocks; however, the server
|
||||
will just refuse to save the script (under Mono) or do
|
||||
something completely unexpected (under LSO: all jumps
|
||||
will go to the last label with that name). This flag
|
||||
works around that limitation by replacing the names of
|
||||
the labels in the output with unique ones.
|
||||
|
||||
Deprecated / compatibility syntax extension options:
|
||||
|
||||
lazylists - Support syntax like mylist[index] = 5; rather than using
|
||||
llListReplaceList. Only assignment supported. The list
|
||||
is extended when the argument is greater than the list
|
||||
|
@ -75,13 +81,6 @@ Options (+ means active by default, - means inactive by default):
|
|||
Like lazylists, it's implemented for compatibility with
|
||||
Firestorm, but not recommended. Note that the operand to
|
||||
switch() may be evaluated more than once.
|
||||
duplabels - Normally, a duplicate label within a function is allowed
|
||||
by the syntax by using {} blocks; however, the server
|
||||
will just refuse to save the script (under Mono) or do
|
||||
something completely unexpected (under LSO: all jumps
|
||||
will go to the last label with that name). This flag
|
||||
works around that limitation by replacing the names of
|
||||
the labels in the output with unique ones.
|
||||
|
||||
Optimization options
|
||||
|
||||
|
@ -118,6 +117,10 @@ Options (+ means active by default, - means inactive by default):
|
|||
were comments. Not useful unless the script is itself
|
||||
the output of a preprocessor like cpp, which inserts
|
||||
directives like: # 123 "filename".
|
||||
explicitcast - Add explicit casts where they are implicit. This option
|
||||
is useless with 'optimize' and 'optsigns', and is of
|
||||
basically no use in general, other than to see where
|
||||
automatic casts happen.
|
||||
''' % sys.argv[0])
|
||||
return 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue