Re: [Rd] Recursively parsing srcrefs

2011-05-15 Thread Hadley Wickham
>> findLineNum doesn't quite do what I want - it works on the text of the >> srcref, not on the parse tree. > > It searches through the parse tree for the smallest source ref that contains > a given line.  So for example, > > if(condition) { >  blah >  blah >  blah > } > > is a single statement, an

Re: [Rd] Recursively parsing srcrefs

2011-05-15 Thread Hadley Wickham
> The bug is now fixed in R-devel and R-patched. Thanks! Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/lis

Re: [Rd] Recursively parsing srcrefs

2011-05-13 Thread Duncan Murdoch
On 11-05-12 2:37 PM, Duncan Murdoch wrote: On 12/05/2011 1:02 PM, Hadley Wickham wrote: Hi all, Is it possible to "recursively" parse srcrefs to match the recursive structure of the underlying code? I'm interested in this because it's I don't understand what you mean by that. It is certainl

Re: [Rd] Recursively parsing srcrefs

2011-05-12 Thread Romain Francois
Le 12/05/11 21:59, Hadley Wickham a écrit : Is it possible to "recursively" parse srcrefs to match the recursive structure of the underlying code? I'm interested in this because it's I don't understand what you mean by that. It is certainly possible to walk through nested srcrefs, to zoom i

Re: [Rd] Recursively parsing srcrefs

2011-05-12 Thread Duncan Murdoch
On 12/05/2011 3:59 PM, Hadley Wickham wrote: Is it possible to "recursively" parse srcrefs to match the recursive structure of the underlying code? I'm interested in this because it's I don't understand what you mean by that. It is certainly possible to walk through nested srcrefs, to zoom in

Re: [Rd] Recursively parsing srcrefs

2011-05-12 Thread Hadley Wickham
>> Is it possible to "recursively" parse srcrefs to match the recursive >> structure of the underlying code?  I'm interested in this because it's > > I don't understand what you mean by that.  It is certainly possible to walk > through nested srcrefs, to zoom in on a particular location; that's wha

Re: [Rd] Recursively parsing srcrefs

2011-05-12 Thread Duncan Murdoch
On 12/05/2011 1:02 PM, Hadley Wickham wrote: Hi all, Is it possible to "recursively" parse srcrefs to match the recursive structure of the underlying code? I'm interested in this because it's I don't understand what you mean by that. It is certainly possible to walk through nested srcrefs,