refactor: レガシーコード大掃除完了!ChatGPT効率化のため
✅ 削除完了(約700行のレガシー削除) - src/jit_stub.rs 完全削除(134行の何もしないスタブ) - src/backend/llvm_legacy/ アーカイブ化(壊れたLLVMバックエンド) - vm-legacy feature全削除(5ファイルの混乱する二重パス) - コメントアウトされたインタープリター削除 - JIT関連の巨大コメントブロック削除(350行以上) ✅ ChatGPTへの効果 - 完璧主義による掃除タイム削減 - 本質的な実装に集中可能 - 混乱する二重パスの排除 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
src/lib.rs
11
src/lib.rs
@ -10,8 +10,6 @@ extern crate self as nyash_rust;
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
use wasm_bindgen::prelude::*;
|
||||
|
||||
// Legacy interpreter removed
|
||||
|
||||
pub mod ast; // using historical ast.rs
|
||||
pub mod box_arithmetic;
|
||||
pub mod box_factory; // unified Box Factory
|
||||
@ -24,7 +22,6 @@ pub mod environment;
|
||||
pub mod exception_box;
|
||||
pub mod finalization;
|
||||
pub mod instance_v2; // simplified InstanceBox implementation
|
||||
// pub mod interpreter removed - legacy interpreter deleted
|
||||
pub mod method_box;
|
||||
pub mod operator_traits; // trait-based operator overloading
|
||||
pub mod parser; // using historical parser.rs
|
||||
@ -47,9 +44,7 @@ pub mod mir_aot_plan_import {
|
||||
|
||||
// Backends
|
||||
pub mod backend;
|
||||
// pub mod jit; // ARCHIVED: Cranelift JIT subsystem moved to archive/jit-cranelift/
|
||||
pub mod jit_stub; // Temporary JIT stub for Phase 15 compilation compatibility
|
||||
pub use jit_stub as jit; // Alias for compatibility
|
||||
// JIT functionality archived to archive/jit-cranelift/
|
||||
pub mod semantics; // Unified semantics trait for MIR evaluation/lowering
|
||||
|
||||
pub mod benchmarks;
|
||||
@ -93,7 +88,6 @@ pub use box_factory::RuntimeError;
|
||||
pub use parser::{NyashParser, ParseError};
|
||||
pub use tokenizer::{NyashTokenizer, Token, TokenType};
|
||||
pub use type_box::{MethodSignature, TypeBox, TypeRegistry}; // 🌟 TypeBox exports
|
||||
// pub use instance::InstanceBox; // 旧実装
|
||||
pub use boxes::console_box::ConsoleBox;
|
||||
pub use boxes::debug_box::DebugBox;
|
||||
pub use boxes::map_box::MapBox;
|
||||
@ -108,5 +102,4 @@ pub use method_box::{BoxType, EphemeralInstance, FunctionDefinition, MethodBox};
|
||||
|
||||
pub use value::NyashValue;
|
||||
|
||||
// WASM support temporarily disabled - legacy interpreter removed
|
||||
// TODO: Implement WASM support using VM or LLVM backends
|
||||
// WASM support to be reimplemented with VM/LLVM backends
|
||||
|
||||
Reference in New Issue
Block a user