erg/doc/EN/tools/repl.md
2022-09-05 21:13:10 +08:00

351 B

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:

  • typed: Show objects and their types.
$ erg repl --typed
Erg interpreter ... (tags/?:, ...) on ...
>>> 1
1: {1}
>>> id x = x
id = <function id>: |T: Type| T -> T