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:
9
apps/macros/examples/echo_macro.nyash
Normal file
9
apps/macros/examples/echo_macro.nyash
Normal file
@ -0,0 +1,9 @@
|
||||
// Example user macro: echo (identity)
|
||||
// Contract: expand(json: string) -> string (AST JSON v0)
|
||||
|
||||
static box MacroBoxSpec {
|
||||
expand(json) {
|
||||
// In real macros, parse and transform AST JSON here.
|
||||
return json
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user