in reply to Re^2: Parse RecDescent Nesting (Followup)
in thread Parse RecDescent Nesting (Followup)

Circular references are what permits nested open-close pairs. I wrote it the way I did so that the grammar was never ambiguous, and yet permits empty open-close pairs, or empty adjacent opens or closes. Allowing "empty" can get you into trouble in a grammar. And that fixes the problem from before.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re^3: Parse RecDescent Nesting (Followup)