Re: [Pyparsing] full location, not only start
Brought to you by:
ptmcg
From: Diez B. R. <de...@we...> - 2009-08-26 23:01:31
|
Alexey Borzenkov schrieb: > On Wed, Aug 26, 2009 at 8:28 PM, Diez B. Roggisch<de...@we...> wrote: >> I need to have the *full* location of a mathed rule - not only the start. >> >> Because I skip whitespace, summing the length of tokens + the start to >> determine the end doesn't work. >> >> Any suggestions on how to do that? > > Look at how originalTextFor is implemented. Thank you very much, it works using originalTextFor - I just wonder why this behavior isn't default. The passed loc is otherwise rather useless. Diez |