code wiki / (root) / nx_supplement.nx

nx_supplement.nx

buildroot/runtime/nx_supplement.nx

27247 B635 linesdepth 13pulls 20 transitivereach 0 importersview sourcekind tooltopic supplement
docsdependenciesstructsconstsfunctions

about

nx_supplement.nx -- C14.0: S-class unified front-door CLI. Git-style subcommand dispatcher. Single binary, discoverable commands, self-validating. Stays bits-up sovereign. USAGE: nx_supplement # show help nx_supplement help # show help nx_supplement check FILE # single-sample JSON nx_supplement batch C R FILES # multi-sample NDJSON nx_supplement csv R FILES # CSV table for Excel nx_supplement compounds # list all reference compounds nx_supplement explain ID # show details for compound ID nx_supplement selftest # verify install via bundled examples nx_supplement version # show version

dependencies 11 imports · 0 importers

nx_chem.nx nx_chem_molecule.nx nx_chem_smiles.nx nx_chem_periodic.nx nx_chem_valence.nx nx_chem_mass.nx nx_chem_isotope_pattern.nx nx_chem_adulterant_db.nx nx_chem_peak_list.nx nx_chem_report_json.nx nx_supplement.nx

diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.

imports: nx_chem.nxnx_chem_molecule.nxnx_chem_smiles.nxnx_chem_periodic.nxnx_chem_valence.nxnx_chem_mass.nxnx_chem_isotope_pattern.nxnx_chem_adulterant_db.nxnx_chem_peak_list.nxnx_chem_report_json.nxnx_chem_report_csv.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main cmd_help str_eq cmd_version nx_sup_version cmd_compounds nx_chem_adulterant_db_seed nx_chem_atomic_data_table_ nx_chem_adulterant_db_new sys_mmap sys_mmap ↻ nx_chem_adulterant_seed_sm nx_chem_adulterant_db_add nx_chem_parse_smiles nx_chem_mol_new smi_is_digit nx_chem_mol_atom nx_chem_mol_bond_add nx_chem_mol_bond smi_parse_bracket smi_is_digit ↻ smi_is_upper smi_is_lower smi_bracket_symbol_two_cha smi_bracket_symbol_single_ smi_aromatic_lower_to_z nx_chem_mol_atom_add smi_connect nx_chem_mol_atom ↻ nx_chem_mol_bond_add ↻ nx_chem_mol_bond ↻ smi_aromatic_lower_to_z ↻ smi_is_upper ↻ smi_organic_atom nx_chem_smiles_populate_st nx_chem_compute_implicit_h nx_chem_default_valence nx_chem_atom_bond_summary nx_chem_mol_monoisotopic_m nx_chem_mol_mh_plus_q4

structs

none

consts

none

functions

29func nx_sup_version() -> *u8
36func str_eq(a: *u8, b: *u8) -> nx_int
called by 1: main
52func parse_int_arg(s: *u8) -> nx_int
called by 1: cmd_explain
68func is_dash(p: *u8) -> nx_int
called by 2: cmd_batchcmd_csv
77func cmd_help() -> i64
called by 1: main
127func cmd_version() -> i64
called by 1: main calls 1: nx_sup_version
135func cmd_compounds() -> i64
179func cmd_explain(id_str: *u8) -> i64
249func cmd_check(path: *u8) -> i64
296func cmd_validate() -> i64
354func cmd_selftest() -> i64
468func process_one_sample_batch(db: *AdulterantDB, peak_path: *u8) -> nx_int
506func cmd_batch(argc: i64, argv: *i64, start_idx: i64) -> i64
537func process_one_csv_row(db: *AdulterantDB, peak_path: *u8) -> nx_int
563func cmd_csv(argc: i64, argv: *i64, start_idx: i64) -> i64
593func main(argc: i64, argv: *i64) -> i64