ast: add wrapper structs (AssignStmt/ReturnStmt/IfStmt, BinaryExpr/CallExpr) with TryFrom/From for non-breaking gradual refactors

This commit is contained in:
Selfhosting Dev
2025-09-17 07:53:05 +09:00
parent e47ee65a40
commit ff3acd41ee
2 changed files with 136 additions and 0 deletions

View File

@ -11,6 +11,8 @@ use std::fmt;
mod span;
pub use span::Span;
mod utils;
mod nodes;
pub use nodes::*;
// Span は src/ast/span.rs へ分離re-export で後方互換維持)