builtwithbend
← Back to the collection

Tree-sitter Bend (Fabian Vega)

Developer tools · ☆ 0 GitHub stars

Built by Fabian Vega (u/FabianVeAl)

Preview of Tree-sitter Bend (Fabian Vega)

A reusable Tree-sitter grammar for Bend 2 syntax, maintained separately from the Zed extension that consumes it. It parses imports, data types, functions, laws, pattern matching, do-notation, parallel bindings, rewrites, dependent types, and GPU calls.

The grammar is defined in JavaScript, with an external C scanner handling significant indentation. The repository includes a parser test corpus and build instructions. Fabian Vega shared it alongside the Zed extension on r/bendlang; it is parsing infrastructure for Bend, not a Bend runtime application.

The sources

Explore the original posts and links behind this build.

Reddithttps://www.reddit.com/r/bendlang/comments/1wkb2s9/bend_extention_for_zed/ ↗
Curated by LVTDBuilt for the people building.