erg/doc/EN/tools/repl.md
Shunsuke Shibayama 4c490b7f5a Update docs
2022-10-03 13:39:52 +09:00

15 lines
360 B
Markdown

# REPL
Running the `erg` command with no arguments invokes the REPL. It can also be invoked with the `repl` subcommand.
Additionally, you can specify the following flags:
* show-type: Show objects and their types.
```console
$ erg repl --show-type
Erg interpreter ... (tags/?:, ...) on ...
>>> 1
1: {1}
>>> id x = x
id = <function id>: |T: Type| T -> T
```