REPL
Run praia with no arguments to start the interactive REPL (Read-Eval-Print Loop).
$ praiaPraia REPL (type 'exit' to quit)>> 2 + 35>> let x = 10>> x * 220>> "hello".upper()HELLOFeatures
Section titled “Features”- Arrow keys for command history (up/down) and line editing (left/right). Requires readline or libedit.
- Auto-print — expression results are printed automatically.
nilresults are hidden. - Multi-line input — detected automatically when braces are unbalanced:
>> func greet(name) {.. print("hello %{name}").. }>> greet("world")hello world- Persistent state — variables, functions, and classes survive between inputs.
- Exit with
Ctrl-Dor typeexit.
Command-line flags
Section titled “Command-line flags”praia # start REPLpraia --tree # REPL with tree-walker interpreterThe REPL uses the bytecode VM by default. Pass --tree to use the tree-walking interpreter instead.