I've been using lemon as the parser generator for ETL
(http://etl.i-want-a-pony.com/) an open source C based template
language, and we've been running into some problems with recent
versions.  The first problem is in revision 1.17 of lempar.c.  You
removed an if( yymajor==0 ) return; from Parse, which appears to be
necessary for the final Parse(pParser, 0, sToken) line in the lemon
examples (from http://www.hwaci.com/sw/lemon/lemon.html), which we've
been following in ETL.  Putting that line back keeps things from
segfaulting.  If it's more correct to not have that final Parse call I
can simply remove it, but for now I've been sticking with the
documentation.

There are a few other problems we've been hitting (specifically,
something in 1.34 and 1.35 of lemon.c appears to make our parser
totally not work), but since I haven't had time to figure out if
that's something we've done wrong I figured I'd hold off on worrying
about that and just let you know about the lempar.c problem.

Sorry if there is a more appropriate forum for this kind of question,
lemon itself doesn't seem to have a dedicated mailing list, so this
seemed like the next best thing.

Thanks,

-garrett

Reply via email to