Skip to content

Commit

Permalink
Update README for #9 (rlwrap).
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenhombre committed Jul 24, 2022
1 parent d712bf1 commit 59202cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ installed on any Python 3 installation as follows:

# Usage

## REPL
See [tests.scm](https://github.com/eigenhombre/smallscheme/blob/master/tests.scm) for many examples of the language in action.

Use `rlwrap` if you want arrow-key history, line editing, and that sort of thing:
## REPL

$ rlwrap smallscheme
$ smallscheme
scheme> (define (fact n) (if (< n 2) n (* n (fact (- n 1)))))
scheme> (fact 50)
30414093201713378043612608166064768844377641568960512000000000000
scheme> ^D
$

See [tests.scm](https://github.com/eigenhombre/smallscheme/blob/master/tests.scm) for many more examples.
The REPL comes with arrow-key history, line editing, and other features provided by [the Python Prompt Toolkit](https://python-prompt-toolkit.readthedocs.io/en/stable/).

## Running Programs

Expand Down

0 comments on commit 59202cc

Please sign in to comment.