2f306dd6a5
feat: 大規模リファクタリング - SRP原則に基づくモジュール分割
...
## MIR builder_calls.rs リファクタリング
- 879行 → 629行 (28%削減) + 7専門モジュール
- calls/ ディレクトリに機能別分割:
- call_target.rs: CallTarget型定義
- method_resolution.rs: メソッド解決ロジック
- extern_calls.rs: 外部呼び出し処理
- special_handlers.rs: 特殊ハンドラー
- function_lowering.rs: 関数変換ユーティリティ
- call_unified.rs: 統一Call実装
- mod.rs: モジュール統合
## Parser statements.rs リファクタリング
- 723行 → 8専門モジュール
- statements/ ディレクトリに機能別分割:
- control_flow.rs: if/loop/break/continue/return
- declarations.rs: 宣言系ディスパッチャー
- exceptions.rs: try/throw/catch/cleanup
- helpers.rs: ヘルパー関数
- io_async.rs: print/nowait
- modules.rs: import/using/from
- variables.rs: local/outbox/assignments
- mod.rs: 統合モジュール
## 効果
✅ 単一責任原則(SRP)の達成
✅ 保守性・再利用性の向上
✅ ChatGPT5 Pro設計の型安全Call解決システム実装
✅ スモークテスト通過確認済み
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-25 09:01:55 +09:00
26d181cac3
cleanup(parser): mark legacy newline paths with allow(dead_code) and LEGACY notes; fix unused param warning in phi.rs; update CURRENT_TASK for Step‑3 plan
2025-09-25 06:43:15 +09:00
5eb23f9b4c
feat: 改行処理Phase 1 Smart advance完全実装 - 深度追跡でskip_newlines削減開始
...
✨ Smart advance()による自動改行処理を実装
- depth_tracking.rsで括弧深度(paren/brace/bracket)を自動管理
- 括弧内では改行を自動スキップ、演算子後の行継続も自動判定
- デフォルトで有効化(NYASH_SMART_ADVANCE=0で無効化可能)
♻️ skip_newlines()の段階的削除を開始
- primary.rsのオブジェクトリテラル内8箇所を削除(48→40箇所、17%削減)
- 深度追跡により手動skip_newlines()が不要に
🧪 テスト結果
- 文区切り、演算子行継続、括弧内改行、次行演算子すべて成功
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-23 10:59:51 +09:00
c8063c9e41
pyvm: split op handlers into ops_core/ops_box/ops_ctrl; add ops_flow + intrinsic; delegate vm.py without behavior change
...
net-plugin: modularize constants (consts.rs) and sockets (sockets.rs); remove legacy commented socket code; fix unused imports
mir: move instruction unit tests to tests/mir_instruction_unit.rs (file lean-up); no semantic changes
runner/pyvm: ensure using pre-strip; misc docs updates
Build: cargo build ok; legacy cfg warnings remain as before
2025-09-21 08:53:00 +09:00
adbb0201a9
chore(fmt): add legacy stubs and strip trailing whitespace to unblock cargo fmt
2025-09-17 07:43:07 +09:00
fa1a3ad644
feat(Phase 9.75j): Complete warning elimination - 106→0 warnings (100% improvement)
...
✨ Major code quality improvements:
• Fixed all unused variable and parameter warnings
• Added appropriate #[allow(dead_code)] annotations
• Renamed constants to follow Rust naming conventions
• Achieved completely warning-free codebase
🔧 Key changes:
• Parser expressions: Fixed arg_count and statement_count usage
• MIR modules: Added dead_code allows for future-use code
• Backend modules: Prefixed unused parameters with underscore
• Effect constants: Renamed 'read' to 'READ_ALIAS' for conventions
📊 Results:
• Before: 106 warnings (noisy build output)
• After: 0 warnings (clean build)
• Improvement: 100% warning reduction
🎯 This continues the bug fixing initiative "つづきのしゅうせいおねがいにゃ!"
from Phase 9.75i (birth() fixes, static methods, Copilot apps).
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-16 17:39:04 +09:00
4a4f1fffad
refactor(parser): Step 1 - Extract common utilities module
...
Successfully extracted utility methods from parser/mod.rs to common.rs:
- Created ParserUtils trait with token manipulation methods
- Extracted current_token, peek_token, advance, skip_newlines, etc.
- All parser modules now use trait-based utilities
- Reduced mod.rs by ~60 lines
✅ Build successful with no errors
✅ All functionality preserved - tested with using nyashstd
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-08-16 11:35:57 +09:00