News for hackers. Stuff that matters.
Re:How to Get Started with Tree-Sitter by alwaysbeconsing on Monday May 29, 2023 @08:13PM (#36119670)
> I find that the CLI is directly useful for end users to perform queries on their code

That's interesting; what do they use the results for?

> I have found that the grammars are relatively hard to make small modifications or extensions to

Definitely true. I think this may be an inherent problem of the system and the parser generation, though. I am not sure it's solvable by the grammar authors.

Re:How to Get Started with Tree-Sitter by nerdponx on Tuesday May 30, 2023 @03:51PM (#36129721)
I use it for code search. I can search for the definition of a given function, or all places that a particular function is called by name.