Skip to content

using super to find a syntax problem in a large .sup file #79

@chrismo

Description

@chrismo
super -i line -j -c '
    values {raw: this, parsed: parse_sup(this)}
    | where is_error(parsed)
    | cut raw
  ' broken-file.sup
  • Reads each line as a raw string (-i line), bypassing the SUP parser entirely
  • parse_sup() tests each line individually, returning error values instead of crashing
  • First error in the output is the real problem; subsequent errors may be parser state bleed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions