• v0.29.0
    release / build-and-publish (push) Failing after 15m23s
    Stable

    lucio released this 2026-09-02 07:35:24 -07:00 | 224 commits to master since this release

    Fragment mode, and `define continuation.

    The gap analysis had this one wrong in an interesting way: class-body
    and module-item `include fragments already parsed, because the
    file-scope item loop is the class-item loop. What did not parse were
    three narrower shapes — a bare statement list, an enum-member list
    (riscv-dv's CUSTOM_1, file, included between enum members), a
    covergroup-item list — and all three failed at one call site. They are
    now SourceFile::fragment, detected by a whole-file rule that cannot
    misfire on a valid file: the first structural item failed (directives,
    macros and stray ; do not count, and a tolerant parse that quietly
    recorded a diagnostic counts as failed — an existing parity test
    caught if … else reading as a generate-if to one parser and a
    statement to the other), the file does not open with a design-unit
    keyword, and a shape consumes the file to its end, tried
    narrowest-first because the wider grammars mis-read the narrower. A
    fragment formats at indent zero through the existing printers, its
    declarations bind, and its enum variants are deliberately not
    exported (a package that includes the fragment is the real home of
    CUSTOM_1; resolving it elsewhere would name something that does not
    exist).

    The other opentitan .svh that would not parse was never a fragment
    problem: a `define whose formal-argument list spans two lines with
    no backslash, which every tool accepts. The lexer now continues such a
    directive until the list closes.

    Opentitan: 12 → 10 failing files, exactly the two predicted, nothing
    else moved. Corpus baseline 813 → 814 of 820. Comment-gap fuzzer:
    every remaining failing slot proven to fail identically outside a
    fragment (§2.9-22). Formatter output unchanged for every file that
    parsed before.

    Downloads