Expand description
The parse tree: Node and its supporting vocabulary.
Every node carries its byte span into the source string — span
provenance is structural (the G0-3 ratification’s §11.3 requirement), not
an afterthought: the span map that downstream consumers (isolate,
tex_to_color_map, TransformMatchingTex) use is derived from these
spans, so no node may ever be constructed without one.
Structs§
- Delim
- A delimiter as named after
\left,\right, or a\big-class command. - Frac
Spec - The generalized-fraction flavors (rule 15’s inputs).
- Node
- One parse-tree node: a kind plus the byte span it came from.
- Span
- A half-open byte range
[start, end)into the source string.
Enums§
- Accent
Kind - The accent commands (both true accents and the wide over/under class).
- Delim
Size - The four fixed delimiter sizes of the
\bigfamily. - Fragment
Kind - The structural fragments the top level tolerates (per-argument
SingleStringTexsemantics). - Limits
- How a big operator places its scripts.
- Line
Align - How the lines of a multi-line block are aligned horizontally within the block’s width (the widest line’s width).
- Math
Font - The argument-taking math alphabet commands.
- Node
Kind - What a node is. See the module docs; every variant is produced by
crate::parse/crate::parse_textwith full span provenance. - Phantom
Kind - The phantom flavors.
- Space
Kind - The explicit spacing commands.
- Stack
Kind - The
\stackrel/\overset/\undersetfamily. - Text
Style - The text-mode styling islands of the TexText contract.