mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00

Some additional modifications - Fix typing errors to English instead of Japanese - Update hash value - Additional translation - コメント内のですます調をだ、である調に変更した - "可能"と"できる"が混ざっていたためこれらを"できる"に統一した
17 lines
913 B
Markdown
17 lines
913 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=8dcbcb4235ba73cd2618fe5407a1ea18f7784da1)
|
|
|
|
`erg`コマンドを引数を与えず実行すると、REPLが起動されます。また、`repl`サブコマンドを指定して起動することもできます。
|
|
さらに以下のフラグを指定できます。
|
|
|
|
* typed: オブジェクトとその型を表示します。
|
|
|
|
```console
|
|
$ erg repl --typed
|
|
Erg interpreter ... (tags/?:, ...) on ...
|
|
>>> 1
|
|
1: {1}
|
|
>>> id x = x
|
|
id = <function id>: |T: Type| T -> T
|
|
```
|