No description
Find a file
Sei Lisa d70c914738 Fix wrong output leading to incorrect tokenization of minus signs
When the tree has a unary minus node (NEG) whose child is a product node (*), and the left operand of the product node starts with a minus sign but is not a NEG node, this produced at least two minus signs in sequence without any spaces.

Normally, OptSigns hides this problem, but when it is disabled, or when the left factor is a pre-decrement (--V) node, the problem is visible.

Fix by creating a function that detects all kinds of leading minus signs, and use it in place of the comparison with NEG.

Fixes #31. Reported by @KrsityKu, who also provided a repro.
2024-05-24 23:55:23 +02:00
lslopt Fix wrong output leading to incorrect tokenization of minus signs 2024-05-24 23:55:23 +02:00
pcpp@18d5bc4cdb Update to latest pcpp, remove expression evaluator 2020-11-04 13:09:34 +01:00
unit_tests Fix wrong output leading to incorrect tokenization of minus signs 2024-05-24 23:55:23 +02:00
.gitignore Add the outfile.tmp file generated by a test to .gitignore 2019-01-15 23:22:02 +01:00
.gitmodules Don't report pcpp as modified if it has untracked files 2019-01-12 20:33:52 +01: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 Update to kwdb 0.0.20240415000 2024-04-15 16:15:56 +02:00
COPYING Add copyright notices to all files, to prepare the program for release. 2015-03-05 23:18:41 +01:00
cpreproc.py New copyright year 2024-04-14 11:40:21 +02:00
fndata.txt Mark llGetUnixTime as unstable 2024-05-24 22:52:58 +02:00
main.py New copyright year 2024-04-14 11:40:21 +02:00
README.md Update link to point to lsl.blacktulip-virtual.com instead of lsl.project.zone 2018-01-18 15:41:28 +01:00
run-tests.py New copyright year 2024-04-14 11:40:21 +02:00
strutil.py New copyright year 2024-04-14 11:40:21 +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.blacktulip-virtual.com/lsl-pyoptimizer/