News for hackers. Stuff that matters.
Re:Difftastic, a structural diff tool that understands syntax by MathMonkeyMan on Friday March 22, 2024 @01:14PM (#39792797)
In a sense, plain old diff is a structural diff. The grammar is a sequence of lines of characters.

All tree-sitter gives you is a _different_ grammar, so that a structural diff can operate on different trees given the same text as diff.

A parse tree still doesn't know anything about the meaning of a program, which is what you need to know in order to determine that those assignments to x and y are unordered.

There are no comments on this comment yet.