logoalt Hacker News

gritzkotoday at 1:41 AM1 replyview on HN

I cannot remember a case, in the last 10 years at least, when I committed code that does not compile. Why should I share that? Also, tree-sitter sort of handles that.


Replies

omoikanetoday at 3:06 AM

> code that does not compile. Why should I share that?

If you collect test cases for compilers, for example.

> tree-sitter sort of handles that

My worry is that stability of committed ASTs would depend on tree-sitter being stable, and it might be difficult to guarantee that for languages are still in flux. Even most well established languages gain new grammar once every few years, sometimes in backward incompatible ways.

Maybe you meant tree-sitter itself will also be versioned inside this repository?

show 1 reply