3.75. kink/repl/REPL

Provides REPL (read-eval-print-loop) tool.

3.75.1. REPL.run(...[$conf = {}])

`run` runs REPL tool.

$conf must take `Conf` val. `Conf` val has the following configuration methods.

• Conf.printer(Printer): configures `Printer` as the printer by which the REPL tool prints out prompts, messages, and results. If `printer` is not called, the REPL tool uses stdout.

• Conf.scanner(Scanner): configures `Scanner` as the scanner from which the REPL tool scans programs. If `scanner` is not called, the REPL tool uses stdin.

• Conf.binding(Binding): sets `Binding` as the binding with which programs are run. If `binding` is not called, the REPL tool makes a new empty binding.