builder/vm: stabilize json_lint_vm under unified calls
- Fix condition_fn resolution: Value call path + dev safety + stub injection - VM bridge: handle Method::birth via BoxCall; ArrayBox push/get/length/set direct bridge - Receiver safety: pin receiver in method_call_handlers to avoid undefined use across blocks - Local vars: materialize on declaration (use init ValueId; void for uninit) - Prefer legacy BoxCall for Array/Map/String/user boxes in emit_box_or_plugin_call (stability-first) - Test runner: update LLVM hint to llvmlite harness (remove LLVM_SYS_180_PREFIX guidance) - Docs/roadmap: update CURRENT_TASK with unified default-ON + guards Note: NYASH_DEV_BIRTH_INJECT_BUILTINS=1 can re-enable builtin birth() injection during migration.
This commit is contained in:
@ -1,6 +1,9 @@
|
||||
use super::super::NyashRunner;
|
||||
use crate::runner::json_v0_bridge;
|
||||
#[cfg(feature = "interpreter-legacy")]
|
||||
use nyash_rust::{interpreter::NyashInterpreter, parser::NyashParser};
|
||||
#[cfg(not(feature = "interpreter-legacy"))]
|
||||
use nyash_rust::parser::NyashParser;
|
||||
// Use the library crate's plugin init module rather than the bin crate root
|
||||
use crate::cli_v;
|
||||
use crate::runner::pipeline::{resolve_using_target, suggest_in_base};
|
||||
@ -13,6 +16,7 @@ use std::{fs, process};
|
||||
|
||||
// (moved) suggest_in_base is now in runner/pipeline.rs
|
||||
|
||||
#[cfg(feature = "interpreter-legacy")]
|
||||
impl NyashRunner {
|
||||
// legacy run_file_legacy removed (was commented out)
|
||||
|
||||
@ -289,3 +293,12 @@ impl NyashRunner {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "interpreter-legacy"))]
|
||||
impl NyashRunner {
|
||||
/// Interpreter backend is disabled in default builds. Use `--backend vm` or `--backend llvm`.
|
||||
pub(crate) fn execute_nyash_file(&self, _filename: &str) {
|
||||
eprintln!("❌ Interpreter backend (AST) is disabled. Build with --features interpreter-legacy to enable, or use --backend vm/llvm.");
|
||||
std::process::exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user