feat: Unified registry and major code cleanup by ChatGPT5
- Unified Box Registry: Replaced 600+ line match statement with clean factory pattern - Code cleanup: Removed unused imports, variables, and dead code - Import fixes: Fixed RangeBox, NullBox, MapBox imports - Transport Debug: Added Debug trait implementation for Transport interface - WASM build: Successfully tested with wasm_playground preset ready for integration - Performance: Build time stable, WASM package generated successfully (1.89MB) This commit represents a major architectural improvement with the unified registry system now fully operational, reducing code duplication and improving maintainability. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@ -5,8 +5,8 @@ use crate::ast::ASTNode;
|
||||
use crate::box_trait::*;
|
||||
use crate::interpreter::core::{NyashInterpreter as Interpreter, RuntimeError};
|
||||
use crate::boxes::FloatBox;
|
||||
use crate::NullBox;
|
||||
use crate::MapBox;
|
||||
use crate::boxes::null_box::NullBox;
|
||||
use crate::boxes::map_box::MapBox;
|
||||
|
||||
impl Interpreter {
|
||||
/// Create basic type boxes (StringBox, IntegerBox, BoolBox, etc.)
|
||||
@ -154,4 +154,4 @@ impl Interpreter {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user