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)”Context
Section titled “Context”vox-cli/vox-drift-checkuseswc_ecma_parser/swc_ecma_ast/swc_commonfor 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.
Decision
Section titled “Decision”- 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-hackimpact notes.
Non-goals
Section titled “Non-goals”- Drive-by parser swaps in dependency-cleanup PRs.
Status
Section titled “Status”Proposed — evaluation-only; link future spike PRs here.