From b2862f980f3d78012066ef1cc09d4ad58f886c0f Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Wed, 7 Oct 2026 09:53:15 -0700 Subject: Pick up japanese transaltion A bunch of minor README fixes, missing TOC, grammer cleanup --- chapter04/appendix/dce.ja.md | 4 +--- chapter04/appendix/dce.md | 2 +- chapter04/docs/04-grammar.ja.md | 2 -- chapter04/docs/04-grammar.md | 2 +- 4 files changed, 3 insertions(+), 7 deletions(-) (limited to 'chapter04') diff --git a/chapter04/appendix/dce.ja.md b/chapter04/appendix/dce.ja.md index 4c461277..10a7ef57 100644 --- a/chapter04/appendix/dce.ja.md +++ b/chapter04/appendix/dce.ja.md @@ -152,7 +152,7 @@ return (2+1)+3; public final Node peephole( ) { ... if (!(this instanceof ConstantNode) && type.isConstant()) - return new deadCodeElim(ConstantNode(type).peephole()); + return deadCodeElim(new ConstantNode(type).peephole()); ... @@ -165,8 +165,6 @@ public final Node peephole( ) { } ``` -> 訳注: 上の原文コードの `return new deadCodeElim(ConstantNode(type).peephole());` は、そのままでは Java の構文として正しくありません。コードは原文どおり保持しています。章本文の対応するコードでは `return deadCodeElim(new ConstantNode(type).peephole());` となっています。 - ```java // m is the new Node, self is the old. // Return 'm', which may have zero uses but is alive nonetheless. diff --git a/chapter04/appendix/dce.md b/chapter04/appendix/dce.md index 10ff6bf1..d8fb9adc 100644 --- a/chapter04/appendix/dce.md +++ b/chapter04/appendix/dce.md @@ -135,7 +135,7 @@ To fix this, we introduce an extra `deadCodeElim` call that is responsible for d public final Node peephole( ) { ... if (!(this instanceof ConstantNode) && type.isConstant()) - return new deadCodeElim(ConstantNode(type).peephole()); + return deadCodeElim(new ConstantNode(type).peephole()); ... diff --git a/chapter04/docs/04-grammar.ja.md b/chapter04/docs/04-grammar.ja.md index b8b6bff5..a17ec8cd 100644 --- a/chapter04/docs/04-grammar.ja.md +++ b/chapter04/docs/04-grammar.ja.md @@ -4,8 +4,6 @@ この文書は [原文](04-grammar.md) の日本語訳です。 -> 訳注: 原文の見出しは「Grammar for Chapter 1」ですが、このファイルは第4章に属するため、訳の見出しは第4章としています。文法は原文のまま保持しています。 - [第4章に戻る](../README.ja.md) diff --git a/chapter04/docs/04-grammar.md b/chapter04/docs/04-grammar.md index 3ea27850..bd01c305 100644 --- a/chapter04/docs/04-grammar.md +++ b/chapter04/docs/04-grammar.md @@ -1,4 +1,4 @@ -# Grammar for Chapter 1 +# Grammar for Chapter 4 English | [日本語](04-grammar.ja.md) -- cgit v1.2.3