[plt-scheme] MzTake - relative line numbers
On Fri, 2004-08-13 at 08:24, Noel Welsh wrote:
> Maybe something like SXPath for Scheme code could be used. For those
> not familiar SXPath is a query language for XML. Given that program
> code (the AST) is essentially a tree structure like XML similar
> ideas could be used. You could say, for example, "debug at the
> first expression in thebody of function foo". Of course edits could
> disrupt this, but it is at least more invariant to change than line
> and column numbers.
That sounds like it could be made to work. If people use this
approach for Java code, surely it can work for Scheme:
http://pmd.sourceforge.net/howtowritearule.html