Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: