LSL-PyOptimizer/lslopt
Sei Lisa a87022b73f Get rid of StSw craziness and use lsllastpass to make another pass.
This has been a TODO item for long. Now that we have lsllastpass, it's actually easy to implement.

Adds an LSLTypeDefaults dictionary to lslcommon, just in case the state-changing function returns a value and we need to insert a return statement.

We've also added subtree-local info to lsllastpass (lost when we return to the parent after visiting a subtree).

This fixes a bug where naked switch statements could appear as a result of optimization, and cause the compilation to fail.
2017-11-02 18:20:14 +01:00
..
__init__.py Initial commit. Status so far: 2014-07-26 02:43:44 +02:00
lslbasefuncs.py Fix compare and llListSort for LSO. 2017-10-21 12:32:41 +02:00
lslcommon.py Get rid of StSw craziness and use lsllastpass to make another pass. 2017-11-02 18:20:14 +01:00
lsldeadcode.py Remove "magic names" where possible, using new data from fndata.txt 2017-10-27 23:39:26 +02:00
lslextrafuncs.py Remove "magic names" where possible, using new data from fndata.txt 2017-10-27 23:39:26 +02:00
lslfoldconst.py Get rid of StSw craziness and use lsllastpass to make another pass. 2017-11-02 18:20:14 +01:00
lslfuncopt.py Comment fix. 2017-10-20 10:18:44 +02:00
lslfuncs.py Bump copyright year. 2017-08-09 19:45:46 +02:00
lsljson.py Change strategy for the checking of function input types. 2017-10-12 17:16:16 +02:00
lsllastpass.py Get rid of StSw craziness and use lsllastpass to make another pass. 2017-11-02 18:20:14 +01:00
lslloadlib.py Implement flags aimed at removing "magic names" in the code. 2017-10-27 18:49:58 +02:00
lsloptimizer.py Remove "magic names" where possible, using new data from fndata.txt 2017-10-27 23:39:26 +02:00
lsloutput.py Add a space between a minus sign and a negative constant. 2017-10-27 21:02:00 +02:00
lslparse.py Fix EParseCantChangeState so that it is always properly reported. 2017-11-02 13:45:01 +01:00
lslrenamer.py Reuse state names for function parameters; restart UsedNames. 2017-10-28 23:39:25 +02:00