Start the AILANG interactive REPL
Starts an interactive REPL for testing expressions and debugging functions.
/plugin marketplace add sunholo-data/ailang_bootstrap/plugin install sunholo-data-ailang@sunholo-data/ailang_bootstrapStart the AILANG REPL for interactive development:
ailang repl
| Command | Description |
|---|---|
:help | Show help |
:type <expr> | Show type of expression |
:load <file> | Load file into REPL |
:reset | Clear REPL state |
:quit | Exit REPL |
> 1 + 2
3
> show(42)
"42"
> :type \x. x * 2
int -> int
> let double = \x. x * 2
> double(5)
10
The REPL is great for:
:type