Tree-sitter Explained - Vimjoyer

https://youtube.com/watch?v=onaRTl-fWyI

18 points · 3 comments · view on lemmy.world

3 Comments

soc@programming.dev · 1 pts · 110d (2 replies)

The whole TreeSitter architecture is such a trash fire, the faster people stop building things with it, the better.

NostraDavid@programming.dev · 1 pts · 109d (1 reply)

What is actually wrong with it?

soc@programming.dev · 0 pts · 109d

It's layers and layers of indirections with no clear need and technical decisions that make things unnecessarily complex.

So your basically writing Regexes in a custom DSL in JavaScript, combined with custom hooks written in C, from which a megabytes-large native-code parser is generated.

The complexity of the solution does not fit the niche between dead-easy TextMate grammars and plugging into an LSP.

Don't misunderstand me, I wish there was something filling that niche, but TreeSitter 100% certainly isn't it.