Skip to content

Consider alternatives to tree-sitter #41

@eyelidlessness

Description

@eyelidlessness

I’m filing quickly on mobile ahead of our check in, but briefly:

  • tree-sitter adds a fair bit of tooling complexity
  • And page weight
  • It’s unclear that we benefit from its most compelling distinct features like incremental parsing
  • While the grammar is stable, it’s a constant build time drag in CI
  • Other tools might be better suited for eg TypeScript integration (as in type gen for aspects of the syntax we’re concerned with)

I briefly explored Ohm over the weekend and it’s a pretty compelling alternative option (albeit with some reservations around maturity). Beyond its TS support, I was encouraged by how easy it was to build a cromulent XPath grammar, and how much more closely it matches the grammar from the spec.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions