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
This commit is contained in:
Selfhosting Dev
2025-09-21 08:53:00 +09:00
parent ee17cfd979
commit c8063c9e41
247 changed files with 10187 additions and 23124 deletions

View File

@ -3,12 +3,14 @@
Provides parser, MIR, backends, runner, and supporting runtime.
*/
// Allow referring to this crate as `nyash_rust` from within the crate, matching external paths.
extern crate self as nyash_rust;
// WebAssembly support
#[cfg(target_arch = "wasm32")]
use wasm_bindgen::prelude::*;
// Provide stubs when legacy interpreter is disabled
#[cfg(not(feature = "interpreter-legacy"))]
// Legacy interpreter removed
mod interpreter_stub;
pub mod ast; // using historical ast.rs
@ -23,9 +25,6 @@ pub mod environment;
pub mod exception_box;
pub mod finalization;
pub mod instance_v2; // simplified InstanceBox implementation
#[cfg(feature = "interpreter-legacy")]
pub mod interpreter;
#[cfg(not(feature = "interpreter-legacy"))]
pub mod interpreter { pub use crate::interpreter_stub::*; }
pub mod method_box;
pub mod operator_traits; // trait-based operator overloading
@ -70,6 +69,12 @@ pub mod runtime;
// Unified Grammar scaffolding
pub mod grammar;
pub mod syntax; // syntax sugar config and helpers
// Execution runner (CLI coordinator)
pub mod runner;
// Expose the macro engine module under a raw identifier; the source lives under `src/macro/`.
#[path = "macro/mod.rs"]
pub mod r#macro;
#[cfg(target_arch = "wasm32")]
pub mod wasm_test;