code wiki / (root) / nx_html_to_text_real_test.nx

nx_html_to_text_real_test.nx

buildroot/runtime/nx_html_to_text_real_test.nx

1163 B34 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic html
docsdependenciesstructsconstsfunctions

about

nx_html_to_text_real_test.nx -- bits-up render stage. Reads /tmp/example_com.html (dropped by nx_https_get_live_real_ca) and pipes it through nx_html_to_text, printing the rendered plain text on stdout. Split off from the live test to keep that test under the bootstrap parser's 2048 module-const cap. The HTML itself was fetched bits-up through DNS+TCP+TLS+cert chain+HTTP already; this stage just does the document-side render. expect_exit: 0. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_html_to_text.nx nx_html_to_text_real_test.nx

imports: nx_syscalls.nxnx_html_to_text.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close nx_html_to_text nx_html_to_text_x h2t_state_new sys_mmap ↻ sys_mmap ↻ h2t_scan_tag h2t_skip_to_gt h2t_scan_name h2t_is_name h2t_is_block_tag h2t_name_eq_lit h2t_lc h2t_lc ↻ h2t_is_suppress_tag h2t_name_eq_lit ↻ h2t_emit_newline h2t_name_eq_lit ↻ h2t_emit_raw h2t_find_href h2t_lc ↻ h2t_is_name ↻ h2t_decode_entity h2t_decode_numeric h2t_is_name ↻ nx_html_entity_lookup h2t_emit_codepoint h2t_emit_text_byte h2t_is_ws h2t_emit_text_byte ↻ sys_munmap sys_write

structs

none

consts

none

functions

16func main() -> i64