mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 05:31:11 +00:00
17 lines
801 B
Markdown
17 lines
801 B
Markdown
# REPL
|
|
|
|
[](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/tools/repl.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1)
|
|
|
|
運行不帶參數的 `erg` 命令會調用 REPL。它也可以用 `repl` 子命令調用
|
|
此外,您可以指定以下標志:
|
|
|
|
* show-type: 顯示對象及其類型
|
|
|
|
```console
|
|
$ erg repl --show-type
|
|
Erg interpreter ... (tags/?:, ...) on ...
|
|
>>> 1
|
|
1: {1}
|
|
>>> id x = x
|
|
id = <function id>: |T: Type| T -> T
|
|
```
|