RE: evaluating parsed expressions

[email protected] ("Orton, Yves")
Newsgroups perl.recdescent
Message-ID <71B318898201D311845C0008C75DAD1C06F1E4AF@defra1ex2>
> Yves wrote:
> > First :Try using here docs instead of q{}.  They make your grammar
> > much cleaner. (and avoid potential issues with \ which I suspect you
> > may be suffering).  

Wow. I wrote that ages ago... Clearing out your inbox maybe?
 
> I will try this if necessary, but it seems unnecessary
> right now (things are working fine).

Yah it only enables cleaner code.

> 
> > Second:I wonder if using reserved words as rule names
> > is part of the weirdness you describe.  
> 
> I replaced reserved words with nonreserved, and things
> seem to be settled down.

Aha!

> I tried the parser you wrote, with symbol storage, but it
> was significantly (30% or so) slower to invoke P::RD
> repeatedly on strings than it was to build a
> function-based parse tree and reevaluate the tree when
> necessary. 

Heh... I never said it would be _fast_ :-)

Cheers, Yves
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.