code wiki / _hdl_build / nx_ad_emitter_grow.nx
nx_ad_emitter_grow.nx
buildroot/runtime/_hdl_build/nx_ad_emitter_grow.nx
about
nx_ad_emitter_grow.nx -- TEACH + GROW the builder's emitter catalog. First TEACHES every emitter we've built
(the sizes/themes/accent/animations the generator already uses), then GROWS new ones (procedural SVG accents,
CSS animations, color themes) and registers them -- so the builder keeps growing its own emitters. Idempotent
(re-run teaches/grows only what's missing). All templates are sovereign-safe (no <script/src=). Run it to
grow the catalog: every new capability we build should call er_register so the builder learns it. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_ad_emitter_registry.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 9 | func gr_p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 10 | func gr_i(v: i64) -> i64 { let t: *u8 = sys_mmap(24); var m: i64 = v; var k: i64 = 0; if m == 0 { t[0]=48 as u8; k=1 } while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } let o: *u8=sys_mmap(24); var w: i64=0; var q: i64=k-1; while q>=0 { o[w]=t[q]; w=w+1; q=q-1 } sys_write(1,o,w); return 0 } |
| 13 | func gr_reg(tag: *u8, kind: *u8, id: *u8, label: *u8, tpl: *u8) -> i64 |
| 19 | func gr_counts() -> i64 |
| 27 | func main(argc: i64, argv: *i64) -> i64 |