Skip to content

Byte-accurate parser

Status: open/active

A parser whose reported spans are exactly right: every node knows precisely which bytes it owns, every byte belongs to some token, and nothing is normalized away during lexing. Most parsers report approximate or post-normalization positions — fine for rendering, fatal for editing. Exact spans are what make TM-0020-splice-write safe, make validation findings land on the right line and column, and let the corpus gate prove nothing was dropped (spans that tile the file reproduce it). markdown-rs’s “every byte accounted for” design is the reference.


← Back to the Glossary