Commit 0aca9dd7

0aca9dd7e8abMerged

Yukihiro "Matz" Matsumoto <[email protected]> · 8 months ago · 2 files · ~2 modified

Description

Update README.md and PLAN.md with new features

  • 35+ string methods, Array#count/sort_by/min_by/max_by
  • Struct keyword_init, File.open block, safe navigation &.
  • Module constants with type inference
  • 53/53 tests, ~12200 lines of C

Co-Authored-By: Claude Opus 4.6 (1M context) [email protected]

Details

Commit
0aca9dd7e8ab
Parent
2fe45584777e

PLAN.mdmodifiedView file

@@ -10,7 +10,7 @@
1010
1111 ## 現状 (Status)
1212
13-### コンパイラアーキテクチャ (~10500行のC)
13+### コンパイラアーキテクチャ (~12200行のC)
1414
1515 - Prism (libprism) によるRubyパース
1616 - 多パスコード生成:
@@ -94,7 +94,7 @@
9494 | | シャドウスタックルート管理, ファイナライザ |
9595 | | GC不要なプログラムではGCコード省略 |
9696
97-### テストプログラム (47例)
97+### テストプログラム (54例)
9898
9999 | プログラム | テスト対象 |
100100 |-----------|-----------|
@@ -163,8 +163,8 @@
163163 | 2 | **require / load / gem** | 未着手 | ファイル解決 + AST統合 |
164164 | 3 | **Block/Proc完全性** | **完了** ✅ | yield, &block, Proc.new, proc {}, method(:name) |
165165 | 4 | **組込クラス** | **ほぼ完了** ✅ | File, Time, Range, Enumerable 対応済み |
166-| 5 | **完全なString** | 未着手 | sp_String構造体 (ミュータブル + encoding) |
167-| 6 | **オブジェクトシステム完全性** | 一部完了 | Comparable完了。method_missing等はフォールバック |
166+| 5 | **完全なString** | **大幅拡充** ✅ | 35+メソッド、sp_String 25+メソッド委譲 |
167+| 6 | **オブジェクトシステム完全性** | 一部完了 | Comparable完了。module constants完了。method_missing等はフォールバック |
168168 | 7 | **制御フロー完全性** | **完了** ✅ | catch/throw含む全制御フロー |
169169 | 8 | **パターンマッチ** | **完了** ✅ | case/in (型/値/nil/alternation) |
170170 | 9 | **例外階層** | **完了** ✅ | raise ClassName, rescue ClassName, 継承チェック |
@@ -183,6 +183,13 @@
183183 - ✅ `ARGV`, `$stderr.puts`, `exit`, `srand`/`rand`, `String#[]`
184184 - ✅ `File.read/write/exist?/delete`
185185 - ✅ `Array#sort/sort!/min/max/sum/reduce/inject/join/uniq`
186+- ✅ `Array#count(block)/sort_by/min_by/max_by`, `StrArray#count(block)`
187+- ✅ `String#ljust/rjust/center/lstrip/rstrip/tr/delete/squeeze/chars/bytes/to_f/slice/hex/oct/dup/[range]`
188+- ✅ `sp_String` 25+メソッド委譲: downcase, strip, chomp, start_with?, etc.
189+- ✅ `Struct.new(keyword_init: true)` — キーワード引数コンストラクタ
190+- ✅ `File.open` with block
191+- ✅ `&.` (safe navigation operator) — 単相コードでは透過的に動作
192+- ✅ Module constants (`Module::CONST`) — 型推論付き (STRING/BOOLEAN/HASH対応)
186193
187194 ---
188195