code wiki / (root) / nx_import_scan.nx

nx_import_scan.nx

buildroot/runtime/nx_import_scan.nx

3884 B78 linesdepth 2pulls 2 transitivereach 13 importersview sourcekind librarytopic import
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_import_scan.nx nx_codewiki.nx nx_codewiki_ask.nx nx_codewiki_lib.nx nx_eco_graph_build.nx nx_gatelib.nx nx_gatelib_walkparity_gate.nx nx_gatescan.nx nx_import_scan_gate.nx

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

9func nis_is_ws(c: i64) -> i64 { if c == 32 { return 1 } if c == 9 { return 1 } return 0 }
called by 1: nis_scan
13func nis_scan(buf: *u8, n: i64, out_off: *i64, out_len: *i64, cap: i64) -> i64
called by 3: egb_walkgl_walkwd_walk calls 1: nis_is_ws
53func nis_scan_naive(buf: *u8, n: i64, out_off: *i64, out_len: *i64, cap: i64) -> i64