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:
15
src/lib.rs
15
src/lib.rs
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user