nx_css_tokenize.nx
buildroot/runtime/nx_css_tokenize.nx
about
dependencies 1 imports · 39 importers
diagram shows first 10 each side; +0 more imports, +29 more importers in the complete lists below.
imports: nx_syscalls.nx
imported by: nx_align_gate.nxnx_browser_demo_html.nxnx_browser_demo_html_nishi.nxnx_browser_demo_styled.nxnx_css_apply.nxnx_css_apply_test.nxnx_css_boxmap_test.nxnx_css_cascade_test.nxnx_css_parse.nxnx_css_parse_test.nxnx_css_selector_match.nxnx_css_selector_match_test.nxnx_css_tokenize_test.nxnx_flexgrow_gate.nxnx_flexgrow_probe.nxnx_float_gate.nxnx_float_test.nxnx_grid_gate.nxnx_grid_test.nxnx_grid_track_gate.nxnx_justify_gate.nxnx_layout_block.nxnx_layout_block_horizontal_test.nxnx_layout_block_test.nxnx_layout_debug.nxnx_negmargin_gate.nxnx_paint_box_borders.nxnx_paint_box_borders_test.nxnx_paint_walk_layout.nxnx_paint_walk_layout_test.nxnx_paint_walk_layout_text_test.nxnx_real_page_gate.nxnx_render_ascii.nxnx_render_html.nxnx_render_wiki_bmp.nxnx_render_wiki_styled_window.nxnx_render_wiki_window.nxnx_table_cell_gate.nxnx_wiki_boxdump.nx
structs
| 71 | struct CssToken |
| 82 | struct CssCursor |
consts
| 52 | const NX_CSS_TOK_UNKNOWN: i64 = 0 |
| 53 | const NX_CSS_TOK_IDENT: i64 = 1 // body / div / color / margin |
| 54 | const NX_CSS_TOK_DOT: i64 = 2 // . |
| 55 | const NX_CSS_TOK_HASH: i64 = 3 // # (class or color prefix) |
| 56 | const NX_CSS_TOK_COLON: i64 = 4 // : |
| 57 | const NX_CSS_TOK_SEMI: i64 = 5 // ; |
| 58 | const NX_CSS_TOK_LBRACE: i64 = 6 // |
| 59 | const NX_CSS_TOK_RBRACE: i64 = 7 // } |
| 60 | const NX_CSS_TOK_COMMA: i64 = 8 // , |
| 61 | const NX_CSS_TOK_WHITESPACE: i64 = 9 // descendant combinator |
| 62 | const NX_CSS_TOK_STRING: i64 = 10 // "Arial" / 'sans-serif' |
| 63 | const NX_CSS_TOK_NUMBER: i64 = 11 // 16 / 1.5 |
| 64 | const NX_CSS_TOK_UNIT: i64 = 12 // px / em / rem / % (follows NUMBER) |
| 65 | const NX_CSS_TOK_HEXCOLOR: i64 = 13 // #ff0000 / #fff (recognized as a unit) |
| 66 | const NX_CSS_TOK_EOF: i64 = 14 |
| 67 | const NX_CSS_TOK_N: i64 = 15 |
| 79 | const NX_CSS_TOKEN_BYTES: i64 = 40 |
| 88 | const NX_CSS_CURSOR_BYTES: i64 = 24 |
functions
| 92 | func _css_is_space(c: i64) -> i64 called by 1: nx_css_next_token |
| 101 | func _css_is_alpha(c: i64) -> i64 |
| 111 | func _css_is_digit(c: i64) -> i64 |
| 118 | func _css_is_hex(c: i64) -> i64 |
| 130 | func _css_is_ident_start(c: i64) -> i64 |
| 138 | func _css_is_ident_continue(c: i64) -> i64 |
| 148 | func _css_peek(cur: *CssCursor, offset: i64) -> i64 |
| 157 | func _css_consume_ident(cur: *CssCursor) -> i64 |
| 178 | func _css_consume_hex_run(cur: *CssCursor) -> i64 |
| 198 | func _css_consume_number(cur: *CssCursor) -> i64 |
| 236 | func _css_consume_string(cur: *CssCursor, quote: i64) -> i64 |
| 262 | func nx_css_cursor_init(cur: *CssCursor, src: *u8, src_len: i64) -> i64 |
| 271 | func nx_css_next_token(cur: *CssCursor, tok: *CssToken) -> i64 |