No description
Find a file
Sei Lisa 37483a72cb Fix void expressions in FOR loops.
As an enhancement over LSL, we trigger a Type Mismatch when there are void expressions in list constructors, because in LSL, while accepted, they trigger an ugly runtime exception.

This works fine, but then expression lists, where this are checked, are not exclusive of list constructor; they are used in other places. One of these places is the initializer and the iterator of FOR loops. As a consequence, we didn't allow void functions in the FOR initializer or iterator.

Fix by adding another possible value to the parameter 'expected_types' in Parse_expression_list. False means don't allow void either (what Null did before); Null now means allow anything. All callers to Parse_expression_list are changed accordingly. Added corresponding regression test.
2016-07-10 01:29:11 +02:00
lslopt Fix void expressions in FOR loops. 2016-07-10 01:29:11 +02:00
.gitignore Meta - add .gitignore 2014-07-26 03:06:33 +02:00
builtins-unittest.txt Get rid of builtins.txt.dat by adding a parameter to the parser ctor. 2015-07-09 20:35:14 +02:00
builtins.txt New upstream version of builtins.txt 2016-06-26 00:48:13 +02:00
COPYING Add copyright notices to all files, to prepare the program for release. 2015-03-05 23:18:41 +01:00
main.py Bump version. 2016-06-28 03:51:43 +02:00
README.md Update URL. 2015-04-29 00:49:34 +02:00
seftable.txt Update copyright years of some files; add legalese to seftable.txt 2016-06-27 20:06:41 +02:00
testfuncs.py Update copyright years of some files; add legalese to seftable.txt 2016-06-27 20:06:41 +02:00
testparser.py Fix void expressions in FOR loops. 2016-07-10 01:29:11 +02:00

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.project.li/lsl-pyoptimizer/