interactive luash
This commit is contained in:
17
README.md
17
README.md
@@ -255,14 +255,25 @@ wc("-l", "file.txt") -- Count lines
|
||||
./luash script.luash
|
||||
```
|
||||
|
||||
### Interactive Shell (REPL)
|
||||
```bash
|
||||
./luash -i
|
||||
# or
|
||||
./luash_shell.lua
|
||||
```
|
||||
|
||||
The interactive shell supports:
|
||||
- All luash preprocessing features
|
||||
- Multiline input for functions, loops, etc.
|
||||
- Command history with `.history`
|
||||
- Special commands: `.help`, `.exit`, `.clear`
|
||||
- Real-time expression evaluation
|
||||
|
||||
### Debug Mode
|
||||
```bash
|
||||
LUASH_DEBUG=1 ./luash script.luash
|
||||
```
|
||||
|
||||
### Example Script
|
||||
See `example.luash` for a comprehensive demonstration of all features.
|
||||
|
||||
## Installation
|
||||
|
||||
1. Clone or download the luash repository
|
||||
|
||||
Reference in New Issue
Block a user