code wiki / (root) / nx_css_parse_test.nx

nx_css_parse_test.nx

buildroot/runtime/nx_css_parse_test.nx

5544 B131 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic css
docsdependenciesstructsconstsfunctions

about

nx_css_parse_test.nx -- smoke for the CSS parser Phase-2 second primitive. Reuses the same fixture shape as nx_css_tokenize_test. Asserts: - 1 rule parsed - selector kind = TAG, name = "body" - 2 declarations: ("color", HEXCOLOR "ff0000") and ("font-size", DIMENSION 16 + UNIT "px")

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_css_tokenize.nx nx_css_parse.nx nx_css_parse_test.nx

imports: nx_syscalls.nxnx_css_tokenize.nxnx_css_parse.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ _build_fixture sys_mmap ↻ _put_byte nx_css_cursor_init nx_css_parse_state_init nx_css_parse _css_advance_skip_ws nx_css_next_token _css_peek _css_is_space _css_is_hex _css_is_digit _css_consume_hex_run _css_peek ↻ _css_is_hex ↻ _css_is_ident_start _css_is_alpha _css_consume_string _css_peek ↻ _css_is_digit ↻ _css_consume_number _css_peek ↻ _css_is_digit ↻ _css_consume_ident

structs

none

consts

none

functions

14func _put_byte(buf: *u8, i: i64, v: i64) -> i64
called by 1: _build_fixture
20func _build_fixture(out_len: *i64) -> *u8
called by 1: main calls 2: sys_mmap_put_byte
68func main() -> i64