[plt-scheme] MzTake - relative line numbers

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Fri Aug 13 08:24:13 EDT 2004

--- david.laffin at lineone.net wrote:

> I found the fact that the
> absolute line and column locations of trace points have
> to be changed after even minor edits to the target text
> to be somewhat irritating.
> There must be a better way?

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 the
body of function foo".  Of course edits could disrupt this,
but it is at least more invariant to change than line and
column numbers.


Email: noelwelsh <at> yahoo <dot> com
AIM: noelhwelsh

Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Posted on the users mailing list.