nx_import_scan.nx
buildroot/runtime/nx_import_scan.nx
about
nx_import_scan.nx -- R0-brick-1 of the LIVING ECOSYSTEM GRAPH ([[project-nishi-living-ecosystem-graph-2026-07-15]]):
the CANONICAL accurate import-edge scanner. A real NishiLang import is a line whose FIRST non-whitespace token
is `import` + whitespace + a quoted path. This REJECTS the naive-scanner false positives (an `import "..."`
appearing inside a // comment or a string literal) that make nx_build_imports_gate read false-RED and would
corrupt any dependency graph built on it. One canonical scanner (orthogonality), composed by the graph engine.
license_tier: ORIGINAL
dependencies 1 imports · 8 importers
imports: nx_syscalls.nx
imported by: nx_codewiki.nxnx_codewiki_ask.nxnx_codewiki_lib.nxnx_eco_graph_build.nxnx_gatelib.nxnx_gatelib_walkparity_gate.nxnx_gatescan.nxnx_import_scan_gate.nx
structs
| none |
consts
| none |
functions
| 9 | func nis_is_ws(c: i64) -> i64 { if c == 32 { return 1 } if c == 9 { return 1 } return 0 } called by 1: nis_scan |
| 13 | func nis_scan(buf: *u8, n: i64, out_off: *i64, out_len: *i64, cap: i64) -> i64 |
| 53 | func nis_scan_naive(buf: *u8, n: i64, out_off: *i64, out_len: *i64, cap: i64) -> i64 |