freeze: macro platform complete; default ON with profiles; env consolidation; docs + smokes\n\n- Profiles: --profile {lite|dev|ci|strict} (dev-like default for macros)\n- Macro paths: prefer NYASH_MACRO_PATHS (legacy envs deprecated with warnings)\n- Selfhost pre-expand: auto mode, PyVM-only, add smokes (array/map)\n- Docs: user-macros updated; new macro-profiles guide; AGENTS freeze note; CURRENT_TASK freeze\n- Compat: non-breaking; legacy envs print deprecation notices\n
This commit is contained in:
15
apps/macros/expand_runner.nyash
Normal file
15
apps/macros/expand_runner.nyash
Normal file
@ -0,0 +1,15 @@
|
||||
// Macro Expand Runner (PyVM)
|
||||
// PoC: reads AST JSON v0 from args[0] and echoes it unchanged.
|
||||
// Later: call MacroBoxSpec.expand(ast_json) and print result.
|
||||
|
||||
function main(args) {
|
||||
if args.length() == 0 {
|
||||
print("{}")
|
||||
return 0
|
||||
}
|
||||
local j
|
||||
j = args.get(0)
|
||||
print(j)
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user