in reply to Re: Parse::RecDescent without parentheses
in thread Parse::RecDescent without parentheses

That's a "left recursive" grammar, which gives Recursive Descent compilers (of which P::RD is one) a hissy fit.

I believe that the P::RD examples include a simple parser that actually works. {grin}

-- Randal L. Schwartz, Perl hacker

  • Comment on Re: Re: Parse::RecDescent without parentheses

Replies are listed 'Best First'.
Re: Re: Re: Parse::RecDescent without parentheses
by maverick (Curate) on Feb 04, 2002 at 07:57 UTC
    DOH! I was in such a rush that I didn't check that the grammer wasn't left recursive. Hmm... wouldn't swapping the order of the nonterminals in expression and term make it 'right recursive' and solve the problem?

    /\/\averick
    perl -l -e "eval pack('h*','072796e6470272f2c5f2c5166756279636b672');"