1afe1643c0a1689f4e0257ff88b3b9d7368d1367
LSO allows this. The compiler does too, but it chokes in RAIL. This affected a test, which has been adjusted too. Untyped lazy list elements can no longer be used in isolation in expression lists (including FOR initializator and iterator). Also rename the terribly named 'self.forbidlabels' to 'self.optenabled' which is more descriptive.
LSL PyOptimizer
LSL PyOptimizer is a LSL2 script optimizer written in Python 2. Currently it only supports code memory optimization (no speed optimization), only for Mono (no LSO), and only for the Second Life flavour of LSL (no OpenSim etc.).
HTML introduction, list of features and documentation available at http://lsl.blacktulip-virtual.com/lsl-pyoptimizer/
Description
Optimizes a LSL2 script, folding constants, removing unused code and more. Adds new syntax features too.
Languages
Python
73.5%
LSL
26.5%