Skip to content

Commit

Permalink
update REPL docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Mar 25, 2024
1 parent 46f444b commit 0c202a1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/docs/lips/REPL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ description: features of Node.js and Web REPL

# REPL

LIPS Scheme REPL ([Read Even Print Loop](https://en.wikipedia.org/wiki/Read–eval–print_loop)) is
a way to interact with running LIPS Scheme session.

## Web REPL

Web REPL you can access from [Home page](/) or as a [bookmarklet](/#bookmark) use
Expand All @@ -26,3 +29,13 @@ code.
In the future the Node.js REPL may also support parentheses matching. It's supported by
[CLisp](https://www.gnu.org/software/clisp/) and [Common Lisp](https://common-lisp.net/)
interpreter.

## Procedures useful in REPL

There are few procedures useful in the REPL:

* `help` - prints doc string for a given procedure, macro, or a variable (see documentation about
[Doc Strings](/docs/lips/intro#doc-strings)),
* `apropos` - function return list of procedures from environment that match a string or a regex,
* `env` - function returns list of symbols which is everything that is inside an environment,
* `dir` - function return all properties from an object including those in prototype chain (a class).

0 comments on commit 0c202a1

Please sign in to comment.