runner: promote @local expansion to first-class (default ON) across vm & selfhost; docs updated to reflect standard sugar

This commit is contained in:
nyash-codex
2025-09-28 02:05:41 +09:00
parent 1994990f47
commit c409aa6ad1
5 changed files with 16 additions and 2 deletions

View File

@ -116,6 +116,9 @@ impl NyashRunner {
}
} else { code };
// Pre-expand '@name[:T] = expr' sugar at line-head (same as common/llvm/pyvm paths)
let code = crate::runner::modes::common_util::resolve::preexpand_at_local(&code);
// Parse to AST
let ast = match NyashParser::parse_from_string(&code) {
Ok(ast) => ast,