mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
360 B
360 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:
- show-type: Show objects and their types.
$ erg repl --show-type
Erg interpreter ... (tags/?:, ...) on ...
>>> 1
1: {1}
>>> id x = x
id = <function id>: |T: Type| T -> T