No description
Find a file
Sei Lisa c544b51e37 Rewrite ReportError() and change EParse to report columns in chars.
ReportError() needed to account for terminal encodings that don't support the characters being printed. It was also reporting an inaccurate column number and its corresponding marker position, because the count was in bytes, not in characters, so that has been fixed.

Now EParse.__init__() calls a new function GetErrLineCol() that calculates the line and column corresponding to an error position.

The algorithm for finding the start of the line has also been changed in both ReportError() and EParse.__init__(); as a result, function fieldpos() has been removed.

The exception's lno and cno fields have been changed to be 1-based, rather than 0-based.

Thanks to @Jomik for the report. Fixes #5.
2017-10-05 18:50:45 +02:00
lslopt Rewrite ReportError() and change EParse to report columns in chars. 2017-10-05 18:50:45 +02:00
.gitignore Yet another follow-up to 2f4f403 (lslcalc support) 2016-12-15 04:15:26 +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 New upstream release of builtins.txt. 2017-08-17 16:57:08 +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 Rewrite ReportError() and change EParse to report columns in chars. 2017-10-05 18:50:45 +02:00
README.md URL changed. 2016-12-15 04:37:45 +01:00
seftable.txt llUnescapeURL is side effect-free. 2017-01-27 20:14:47 +01:00
testfuncs.py Bump copyright year. 2017-08-09 19:45:46 +02:00
testparser.py Rewrite ReportError() and change EParse to report columns in chars. 2017-10-05 18:50:45 +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.zone/lsl-pyoptimizer/