https://github.com/samyeyo/quickrt
Powerful REPL for Lua
https://github.com/samyeyo/quickrt
cli console lua luart repl windows
Last synced: 3 months ago
JSON representation
Powerful REPL for Lua
- Host: GitHub
- URL: https://github.com/samyeyo/quickrt
- Owner: samyeyo
- License: other
- Created: 2021-12-29T17:04:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-11-26T13:34:55.000Z (about 2 years ago)
- Last Synced: 2023-11-26T15:00:15.672Z (about 2 years ago)
- Topics: cli, console, lua, luart, repl, windows
- Language: Lua
- Homepage:
- Size: 267 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
![QuickRT][logo]
[](https://www.luart.org/)

[](#)
[](https://www.twitter.com/__LuaRT__)
QuickRT is a Lua console REPL to easily prototype, test, and learn Lua programming with LuaRT, the Windows programming framework.
[Features](#features) |
[Getting started](#getting-started) |
[Installation](#installation)
![Demo][demo]
## Features
- Lua 5.4.6 interactive REPL (Read-Print-Eval-Loop)
- Lua colored syntax highlighting as you type
- Multiline editing with indentation.
- Autocompletion.
- Pretty printing of results
- Command history.
- LuaRT documentation included.
- UTF8 characters support.
## Installation
### Running QuickRT from sources
[LuaRT](https://www.luart.org) must have been previously installed. Doubleclick on the quickrt.lua file in the Windows explorer to launch QuickRT.
Alternatively, open a LuaRT console and go to the directory where you've downloaded QuickRT source files.
Then type the following command :
```batch
luart quickrt.lua
```
### Running QuickRT from release package
No need to previously install LuaRT in this case.
Go to the folder where you have extracted the release package and doubleclick on **QuickRT.exe** in the Windows explorer.
## Getting started
To get you started with QuickRT, type the following commands :
```lua
help("topic") -- search help for "topic"
clear() -- clears the screen
a -- shows the value of variable 'a'
5+5 -- shows the result of 5+5
print("hello") -- calls a function and shows its result
pr -- type "pr" then press the TAB key to use autocompletion (should find 'print')
sys.exit() -- exits QuickRT
```
You can use last entered commands by pressing the ↑ and ↓ keys.
You can also quit QuickRT with CTRL+C.
[demo]: contrib/QuickRT.webp
[logo]: contrib/QuickRT.png