From d9bcf8032a44122db91c099485180aa3bbe657a5 Mon Sep 17 00:00:00 2001 From: GreasySlug <9619abgoni@gmail.com> Date: Sun, 18 Sep 2022 13:14:17 +0900 Subject: [PATCH] Doc: translate En to Ja in other than "syntax" --- doc/JA/API/special.md | 2 +- doc/JA/compiler/TODO_hint.md | 2 +- doc/JA/compiler/TODO_recov_suggest.md | 2 +- doc/JA/compiler/TODO_warn.md | 2 +- doc/JA/compiler/inference.md | 2 +- doc/JA/python/bytecode_instructions.md | 9 +++++++-- doc/JA/python/bytecode_specification.md | 2 +- 7 files changed, 13 insertions(+), 8 deletions(-) diff --git a/doc/JA/API/special.md b/doc/JA/API/special.md index 7841e142..e1ee5def 100644 --- a/doc/JA/API/special.md +++ b/doc/JA/API/special.md @@ -1,5 +1,5 @@ +# 特殊形式 -# 特殊形式(Special form) [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/API/special.md%26commit_hash%3D06f8edc9e2c0cee34f6396fd7c64ec834ffb5352)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/API/special.md&commit_hash=06f8edc9e2c0cee34f6396fd7c64ec834ffb5352) diff --git a/doc/JA/compiler/TODO_hint.md b/doc/JA/compiler/TODO_hint.md index 76edb2cd..7491075c 100644 --- a/doc/JA/compiler/TODO_hint.md +++ b/doc/JA/compiler/TODO_hint.md @@ -1,4 +1,4 @@ -# Hint (not implemented) +# Hint (未実装) [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/compiler/TODO_hint.md%26commit_hash%3Dd15cbbf7b33df0f78a575cff9679d84c36ea3ab1)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/compiler/TODO_hint.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1) diff --git a/doc/JA/compiler/TODO_recov_suggest.md b/doc/JA/compiler/TODO_recov_suggest.md index 92d04c7c..fb60fd7b 100644 --- a/doc/JA/compiler/TODO_recov_suggest.md +++ b/doc/JA/compiler/TODO_recov_suggest.md @@ -1,4 +1,4 @@ -# Error recovery suggestions (not implemented yet) +# Error recovery suggestions (未実装) [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/compiler/TODO_recov_suggest.md%26commit_hash%3Dd15cbbf7b33df0f78a575cff9679d84c36ea3ab1)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/compiler/TODO_recov_suggest.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1) diff --git a/doc/JA/compiler/TODO_warn.md b/doc/JA/compiler/TODO_warn.md index e03ffd4f..d3dd1737 100644 --- a/doc/JA/compiler/TODO_warn.md +++ b/doc/JA/compiler/TODO_warn.md @@ -1,4 +1,4 @@ -# warnings (not implemented yet) +# warnings (未実装) [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/compiler/TODO_warn.md%26commit_hash%3Dd15cbbf7b33df0f78a575cff9679d84c36ea3ab1)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/compiler/TODO_warn.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1) diff --git a/doc/JA/compiler/inference.md b/doc/JA/compiler/inference.md index c189965c..55d356ce 100644 --- a/doc/JA/compiler/inference.md +++ b/doc/JA/compiler/inference.md @@ -71,7 +71,7 @@ line 3. Call{obj: print!, args: [v]} ```rust pub enum Type { ... - Var(RcCell>), // a reference to the type of other expression, see docs/compiler/inference.md + Var(RcCell>), // 他の式の型への参照, docs/compiler/inference.md を参照 ... } ``` diff --git a/doc/JA/python/bytecode_instructions.md b/doc/JA/python/bytecode_instructions.md index 83414094..266b0164 100644 --- a/doc/JA/python/bytecode_instructions.md +++ b/doc/JA/python/bytecode_instructions.md @@ -1,4 +1,4 @@ -# Python Bytecode Instructions +# Pythonバイトコード命令 [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/python/bytecode_instructions.md%26commit_hash%3Dd15cbbf7b33df0f78a575cff9679d84c36ea3ab1)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/python/bytecode_instructions.md&commit_hash=d15cbbf7b33df0f78a575cff9679d84c36ea3ab1) @@ -52,15 +52,20 @@ stack.push(consts[namei]) ``` ## STORE_FAST(namei) - +```python fastlocals[namei] = stack.pop() +``` + おそらくトップレベルにおけるSTORE_NAMEに対応する 参照のない(もしくは単一)変数がこれによって格納されると思われる わざわざグローバル空間が独自の命令を持っているのは最適化のため? ## LOAD_FAST(namei) +```python stack.push(fastlocals[namei]) +``` + fastlocalsはvarnames? ## LOAD_CLOSURE(namei) diff --git a/doc/JA/python/bytecode_specification.md b/doc/JA/python/bytecode_specification.md index a67dc62c..b4048535 100644 --- a/doc/JA/python/bytecode_specification.md +++ b/doc/JA/python/bytecode_specification.md @@ -1,4 +1,4 @@ -# Python bytecode specification +# Pythonバイトコード指定 [![badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com%2Fdefault%2Fsource_up_to_date%3Fowner%3Derg-lang%26repos%3Derg%26ref%3Dmain%26path%3Ddoc/EN/python/bytecode_specification.md%26commit_hash%3D9f6a4a43fcf7e4f58cabe6e5a7546820fd9f5ff4)](https://gezf7g7pd5.execute-api.ap-northeast-1.amazonaws.com/default/source_up_to_date?owner=erg-lang&repos=erg&ref=main&path=doc/EN/python/bytecode_specification.md&commit_hash=9f6a4a43fcf7e4f58cabe6e5a7546820fd9f5ff4)