From 381b363a78c9b0d737ee22b130d619d6ddbbf5f5 Mon Sep 17 00:00:00 2001 From: Alexander M Pickering Date: Sat, 23 Nov 2024 00:38:27 -0600 Subject: Add table of contents --- html/index.html | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'html') diff --git a/html/index.html b/html/index.html index 3e1576c..22e9b6a 100644 --- a/html/index.html +++ b/html/index.html @@ -6,15 +6,26 @@
-

Lua4Win

+

Lua4Win is a distribution the Lua programming language for Windows.

+
-
-

Lua4Win is a distribution the Lua programming language for Windows.

+
+

Install

+

You can install it by using the .msi file here.

Download
-
+

Rational

Unlike alternative distributions, Lua4Win comes with the Luarocks package manager and is a "batteries-not-included" distribution of Lua. Binary packages are built in the cloud and can be downloaded as-needed. The Lua4Win installer contains a copy of LuaJIT, Luarocks, Busybox, and 7zip; which allows it to come in at a slim 2MB. Updates and bugfixes can be done piecemeal instead of requireing new copies of the whole distribution every time a bug gets fixed.

@@ -54,7 +65,7 @@ os.execute("notepad.exe " .. note_filename)

Run lua --help for more options for the command line tool, and the Lua Manual for extensive documentation of the Lua programming language. Also note LuaJIT's extensions

-
+

Installing Superpowers

You can use modules that implement more than the standard lua libraries by running the $ luarocks install >module name< command to download and install modules.

@@ -76,7 +87,7 @@ $ lua color.lua

Run luarocks --help for more options on the command line tool, and the Luarocks wiki for more extensive documentation.

-
+

Sister languages

Lua4Win makes it easy to download other programming languages that are distributed through the luarocks package manager. Simply luarocks install them like you would any other package.

Moonscript

@@ -97,7 +108,7 @@ with World! \greet!
-
$ moonscript example.moon
+
$ moon example.moon
 Hello, world!
@@ -126,15 +137,15 @@ print(table.concat(s))
-
$ tl keys.tl
+					
$ tl run keys.tl
 ab
-
+

Advanced Usage

-

Lua4Win allows you to install system-wide packages with the

--tree system
flag, these packages will be located at
[INSTALLDIR]/luarocks
. You may need to be running as an administratior to install to this location.

-

Lua4Win's luarocks config lives at

[INSTALLDIR]/config/config-5.1.lua

+

Lua4Win allows you to install system-wide packages with the

--tree system
flag, these packages will be located at
[INSTALLDIR]/luarocks
. You may need to be running as an administratior to install to this location.

+

Lua4Win's luarocks config lives at

[INSTALLDIR]/config/config-5.1.lua

All of Lua4Win's binary packages are built using mingw64, if you intend to build your own modules, they must be built with mingw64 if you want them to operate with Lua4Win-distributed Lua.

Some of Lua4Win's packages needed patching or modification, source code is generally mirrored at git.lua4.win, and packaging code is kept seperate, usually in a repo

*-packaging

-- cgit v1.2.3-55-g6feb