11# Laço
22
3- A better REPL for lua. This was mainly for luajit because the default
4- interactive mode, ie. the REPL, was pretty bad. You couldn't move back
5- and forth in the to edit, and no going through history. With laco you
6- can actually do that, and I also believe that that regular lua can as
7- well.
3+ A better REPL for lua. This was created mainly for luajit because the
4+ default interactive mode, better known as the REPL, was pretty bare
5+ bones. You can't move left or right in the current line if wanted to
6+ edit the line, and there is no history for repeating commands easily.
7+ With laco you can actually do that, and I also believe that that regular
8+ lua REPL can as well.
89
910## Features
1011
@@ -20,20 +21,20 @@ well.
2021```
2122
2223* In memory history, so pressing up will go to the previous line.
24+ * Command mode (use ` :help ` to see the list of commands)
2325
2426This is still in early development so there isn't much so far, but I
2527think its enough to use a replacement (atleast for luajit users).
2628
2729## Laço?
2830
29- In Portuguese, laco mean loop and since Lua is a Portuguese name and a
31+ In Portuguese, laco mean loop. Since Lua is a Portuguese name, and a
3032REPL is a read eval print loop, the name was born.
3133
3234## Building
3335
34- Since laco depends on [ linenoise] ( https://github.com/antirez/linenoise#tested-with ) ,
35- I don't think this will work for Windows terminals, but nevertheless,
36- here are the step on building.
36+ Since laco depends on [ linenoise] [ 1 ] , I don't think this will work for
37+ Windows terminals, but nevertheless, here are the step on building.
3738
3839** Denpendencies (not included):**
3940
@@ -43,7 +44,7 @@ here are the step on building.
4344** Note** : This is for regular lua, to enable luajit you need to replace.
4445` cmake .. ` with ` cmake -DLACO_USE_LUAJIT=on .. ` . Also if you are using
4546anything lua 5.2+, I'm not sure if this will work since I've only tested
46- on luajit which is currently 5.1
47+ on luajit which is currently 5.1.
4748
4849``` bash
4950git clone --recursive https://github.com/sourrust/laco.git
5556```
5657
5758The binary will be located in ` build/bin ` and it can be run from there.
59+
60+ [ 1 ] : https://github.com/antirez/linenoise#tested-with
0 commit comments