mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 15:48:21 +00:00
No description
They are transformed by the scanner to the identifier `inline`, which is how the parser identifies it. This solves the comment problem, but it results in a funny side effect. Now, in inline mode, /*pragma inline*/ will always be the identifier `inline`, therefore this is valid: integer /*pragma inline*/ = 5; llOwnerSay((string)inline); // will say 5 Not overly elegant, but better than making up a specific token or declaring comments as tokens or the like. |
||
---|---|---|
lslopt | ||
pcpp@18d5bc4cdb | ||
unit_tests | ||
.gitignore | ||
.gitmodules | ||
builtins-unittest.txt | ||
builtins.txt | ||
COPYING | ||
cpreproc.py | ||
fndata.txt | ||
main.py | ||
README.md | ||
run-tests.py | ||
strutil.py |
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/