Skip to content

ADR 035 — SWC parser vs alternatives (evaluation only)

ADR 035 — SWC parser vs alternatives (evaluation only)

Section titled “ADR 035 — SWC parser vs alternatives (evaluation only)”
  • vox-cli / vox-drift-check use swc_ecma_parser / swc_ecma_ast / swc_common for JS/TS structural validation.
  • Alternative parsers (oxc, biome_js_parser, future tsgo) may offer speed or simpler deps but imply different AST shapes, error semantics, and MSRV/feature tradeoffs.
  • Status quo: SWC remains the supported JS parse surface until this ADR is moved to Accepted with:
    • Benchmarks on representative corpora (cold cache, incremental).
    • Parity matrix for diagnostics consumers rely on today.
    • MSRV and workspace-hack impact notes.
  • Drive-by parser swaps in dependency-cleanup PRs.

Proposed — evaluation-only; link future spike PRs here.