diff --git a/index.html b/index.html index c4d2704..e5e7168 100644 --- a/index.html +++ b/index.html @@ -355,16 +355,16 @@ string b = "A very long string that appears in this script once" + " or twice";
This program is designed to work as a filter. It can read from standard input if the file name argument is "-"; in any case it currently outputs the result to standard output and any errors to standard error.
+This program is designed to work as a filter. It can read from standard input if the file name argument is "-", and it can (and does by default) output the result to standard output. Any errors and warnings go to standard error always, to not interfere with the script being output.
-Running it by hand to optimize your scripts can be cumbersome. The intention is for it to act as a transparent filter; however, as of this writing there's no support for any viewer or IDE, as it has just been released. Run it without parameters to see the invocation help, for example with python main.py
. Redirect the output to a file if you want to store the result, possibly to open it with an editor and copy it to the clipboard. Or under X Window, you can pipe the output directly to xclip -quiet -selection clipboard
to copy it to the clipboard, rather than using a file, so you can paste it directly into the viewer. Examples:
Running it by hand to optimize your scripts can be cumbersome. The intention is for it to act as a filter that is transparent to the user; however, as of this writing there's no support for any viewer or IDE, as it has just been released. Run it without parameters to see the invocation help, for example with python main.py
. Redirect the output to a file if you want to store the result, possibly to open it with an editor and copy it to the clipboard. Or under X Window, you can pipe the output directly to xclip -quiet -selection clipboard
to copy it to the clipboard, rather than using a file, so you can paste it directly into the viewer. Examples:
python main.py myscript.lsl | xclip -quiet -selection clipboard
will, under X Window, read myscript.lsl
, optimize it, and copy the optimized result to the clipboard, ready to be pasted into the viewer.
python main.py myscript.lsl > temp.opt
+python main.py myscript.lsl -o temp.opt
notepad temp.opt
@@ -379,7 +379,7 @@ notepad temp.opt
Support for other IDEs like Eclipse is not planned, but the author encourages others to write it. Please notify Sei Lisa if you write one, so that it can be listed in this page.
-The program uses two external files. One is builtins.txt
, which is in the same format as needed by lslint, and an up-to-date copy can be obtained from the kwdb project: https://bitbucket.org/Sei_Lisa/kwdb/raw/tip/outputs/builtins.txt. The other is seftable.txt
, which is a list of functions that have no side effects (SEF stands for Side-Effect Free), allowing them to be removed (optimized out) if nothing else has side effects in an expression and the result of the expression is not used.
+The program uses two external files. One is builtins.txt
, which is in the same format as needed by lslint, and an up-to-date copy can be obtained from the kwdb project: https://bitbucket.org/Sei_Lisa/kwdb/raw/tip/outputs/builtins.txt. The other is seftable.txt
, which is a list of functions that have no side effects (SEF stands for Side-Effect Free), allowing them to be removed (optimized out) if nothing else has side effects in an expression and the result of the expression is not used.