in reply to Parse::RecDescent: access "skipped" text?

No, nor does it make any sense. Where would you store the extracted info? Storing it in a global won't work because it will survive backtracking. Maybe if we knew more about what you are trying to do, we could help you better.
  • Comment on Re: Parse::RecDescent: access "skipped" text?

Replies are listed 'Best First'.
Re^2: Parse::RecDescent: access "skipped" text?
by braden (Novice) on Apr 11, 2006 at 20:17 UTC
    As I mentioned, I'm trying to parse code (like C or C++ or Java) with doc-comments (like javadoc or doxygen). I'm interested in the doc-comments, so I don't want to just throw them away.

    Without some way to parse text that is notionally “skipped” (that is, as far as the “real” grammar—that of the programming language—is concerned), I realize I'm looking at injecting comments into the programming language grammar as additional productions. But since comments can occur anywhere that whitespace can, this is going to get verbose. So I was looking for a Better Way.