mdz_stream_parser_table.ts

Table handlers for the streaming mdz parser.

A table is recognized at a column-0 pipe row whose next line is a valid delimiter row with a matching column count — a bounded one-line lookahead: the header row holds (need_more) until its delimiter line arrives, then the whole header emits at once. Body rows then stream one per line. Because a row is always fully buffered before it emits (no within-row streaming), each cell's inline content is parsed with the sync reference (MdzTableCellParser, one MdzLexer/MdzTokenParser shared across the whole table's cells, rebound per row) and replayed as opcodes — guaranteeing sync↔stream parity by construction.

view source

Declarations
#

TableInItemHead
#

mdz_stream_parser_table.ts view source

TableInItemHead import type {TableInItemHead} from '@fuzdev/mdz/mdz_stream_parser_table.js';

A recognized in-item table head: the header row's cells + the delimiter alignment.

header_cells

type Array<{start: number; end: number}>

header_end

type number

align

type Array<MdzTableAlign>

delim_end

type number

Depends on
#

Imported by
#