feat: 改行処理Phase 1 TokenCursor基本実装完了
- src/parser/cursor.rs: TokenCursor本体実装(230行) - NewlineMode(Stmt/Expr)による文脈認識改行処理 - ブレース/パーレン/ブラケット深度の自動追跡 - 行継続判定(演算子・カンマ等) - with_expr_mode/with_stmt_mode によるモード切替 - src/parser/expr_cursor.rs: TokenCursor版式パーサー(250行) - 実験的実装として式パーサーを TokenCursor対応 - 二項演算子・比較・プライマリ式・オブジェクトリテラル対応 - ビルド成功(warning のみ、エラーなし) - CLAUDE.md更新: Phase 1実装内容を記載 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -18,9 +18,11 @@
|
||||
|
||||
// サブモジュール宣言
|
||||
mod common;
|
||||
mod cursor; // TokenCursor: 改行処理を一元管理
|
||||
mod declarations;
|
||||
pub mod entry_sugar; // helper to parse with sugar level
|
||||
mod expr;
|
||||
mod expr_cursor; // TokenCursorを使用した式パーサー(実験的)
|
||||
mod expressions;
|
||||
mod items;
|
||||
mod statements;
|
||||
|
||||
Reference in New Issue
Block a user