2. Architecture
L4YAML implements a two-pass pipeline that mirrors the layered structure of the YAML 1.2.2 specification itself. Input bytes flow through a character-level scanner, producing a typed token stream, which a recursive-descent parser converts into a structured AST.