ilusm.dev

repl

Interactive shell, autocomplete, history.

Load with: use repl

Quick example

use repl

result = repls(10)
prn(result)

Functions

REPL state

repln()

Performs the operation.

repls(config)

Lists items. Takes config.

replh(repl, line)

Performs the operation. Takes repl, line.

replc(repl, cmd_line)

Performs the operation. Takes repl, cmd_line.

reple(code)

Performs the operation. Takes code.

reple(repl, code)

Performs the operation. Takes repl, code.

repls(repl, name, value)

Lists items. Takes repl, name, value.

replg(repl, name)

Performs the operation. Takes repl, name.

History

replh(repl, entry)

Performs the operation. Takes repl, entry.

repls(repl)

Lists items. Takes repl.

replh(repl)

Performs the operation. Takes repl.

replh(repl)

Performs the operation. Takes repl.

Completion

replc(repl, prefix)

Performs the operation. Takes repl, prefix.

replc(repl, line, cursor_pos)

Performs the operation. Takes repl, line, cursor_pos.

Help

replh()

Performs the operation.

replv(repl)

Performs the operation. Takes repl.

repld(name)

Performs the operation. Takes name.

repll(repl, path)

Performs the operation. Takes repl, path.

Syntax highlighting

replh(line)

Performs the operation. Takes line.

Multi-line editing

replm(repl)

Returns limits or constraints. Takes repl.

Save/restore session

repls(repl, path)

Lists items. Takes repl, path.

replr(repl, path)

Performs the operation. Takes repl, path.

Main entry

replm()

Returns limits or constraints.

Notes

  • REPL (Read-Eval-Print Loop) framework - build interactive shells.