LWN.net Logo

Smarter Diff

Smarter Diff

Posted May 29, 2008 19:41 UTC (Thu) by tjc (subscriber, #137)
In reply to: Smarter Diff by nix
Parent article: Getting the right kind of contributions

Yeah, a line-based patch system wouldn't work in that case.  But I think lexically scanning
the input would be sufficient -- you wouldn't have to parse it.  If two files generate the
same sequence of tokens, then I think they could be considered equivalent in a "free form"
language.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds