Skip to content
Cody Tilkins edited this page Feb 24, 2021 · 1 revision

Table of Contents

About

LuaConsole is a CLI application designed to support lua51, lua52, lua53, and luajit while not breaking compatibility, but also adding some very QOL features. The at-birth goal for LuaConsole was to be better than PUC-Lua in terms of pretty code, more operation, and less bugs. Soon after I took a look at LuaJit and reworked it after exporting some functions to learn (and fix) them aka jitsupport.c. One other step was luaadd.dll` which added a few debug things such as stack_dump() and primarily just current directory manipulation and terminal clearing. However, that was scrapped due to the complexity it added. stack_dump() was imported into the main project. See the website at the LuaConsole Website!

Usage

LuaJIT

LuaConsole | Version: 2/10/2021

Lua 5.1 | Copyright (C) 1994-2008 Lua.org, PUC-Rio
LuaConsole Copyright (C) 2017-2021, Cody Tilkins
LuaJIT 2.0.5 Copyright (C) 2005-2021 Mike Pall https://luajit.org/

Supports Lua5.3, Lua5.2, Lua5.1, LuaJIT5.1

Usage: luaw [-c] [FILES] [-w] [-v] [-q] [-r] [-R] [-s PATH] [-p] [-Dvar=val]
	[-Dtb.var=val] [-Lfile.lua] [-Llualib.so] [-t{a,b}] [-e "string"]
	[-E "string"] [-] [--] [-j{cmd,cmd=arg},...] [-O{level,+flag,-flag,cmd=arg}]
	[-b{l,s,g,n,t,a,o,e,-} {IN,OUT}] [-?] [-n {arg1 ...}]

-w 		With Lua version x.x.x
-v 		Prints the Lua version in use
-q 		Remove copyright/luajit message
-r 		Prevents lua core libraries from loading
-R 		Prevents lua environment variables from loading
-s 		Issues a new current directory
-p 		Activates REPL mode after all or no supplied scripts
-d 		Defines a global variable as value after '='
-l 		Executes a module before specified script or post-exist
-t[a,b] 	Loads parameters after -l's and -e
			[a]=delay arg table for file. [b]=no tuples
-e 		Executes a string as Lua Code BEFORE -l's
-E 		Executes a string as Lua Code AFTER -l's
-  		Processes input from stdin
-- 		Stops processing parameters
-j 		 [LuaJIT] Performs a control command/loads an extension module
-O 		 [LuaJIT] Sets an optimization level/parameters
-b 		 [LuaJIT] Saves or lists bytecode
-? --help 	Displays this help message
-n 		Start of parameter section

PUC-Lua

LuaConsole | Version: 2/10/2021

Lua 5.4.2  Copyright (C) 1994-2020 Lua.org, PUC-Rio
LuaConsole Copyright (C) 2017-2021, Cody Tilkins

Supports Lua5.3, Lua5.2, Lua5.1, LuaJIT5.1

Usage: luaw [-c] [FILES] [-w] [-v] [-q] [-r] [-R] [-s PATH] [-p] [-Dvar=val]
        [-Dtb.var=val] [-Lfile.lua] [-Llualib.so] [-t{a,b}] [-e "string"]
        [-E "string"] [-] [--] [-?] [-n {arg1 ...}]

-w              With Lua version x.x.x
-v              Prints the Lua version in use
-q              Remove copyright/luajit message
-r              Prevents lua core libraries from loading
-R              Prevents lua environment variables from loading
-s              Issues a new current directory
-p              Activates REPL mode after all or no supplied scripts
-c              With the following arguments, interface to luac
-d              Defines a global variable as value after '='
-l              Executes a module before specified script or post-exist
-t[a,b]         Loads parameters after -l's and -e
                        [a]=delay arg table for file. [b]=no tuples
-e              Executes a string as Lua Code BEFORE -l's
-E              Executes a string as Lua Code AFTER -l's
-               Processes input from stdin
--              Stops processing parameters
-? --help       Displays this help message
-n              Start of parameter section

Example Error

 (Syntax) | Stack Top: 1 | [string "./"]:1: unexpected symbol near '.'
LuaConsole
License
License
Codecov.io
Codecov
Gitter.im
Gitter.im
Travis-cl
travis-ci
Appveyor
appveyor OFF
Clone this wiki locally