P is for Practical | |
PerlMonks |
Re: Parse::RecDescent eats large part of grammar, thinking it to be implicit subruleby graff (Chancellor) |
on Jan 22, 2003 at 08:01 UTC ( [id://228964]=note: print w/replies, xml ) | Need Help?? |
Perhaps it would help if you tried to give a brief description
of what your grammar is supposed to handle. Apart from
that, it looks like the initial part of your grammar goes
wrong in the trace, and there are some likely suspects in
the first rule:
I'm already way over my head here -- to date, I've only looked at the PRD man page (I've never written code to use it), and have used lex/yacc only rarely, in a previous life, so one or more of the above items may be a false lead. Have you arrived at this grammar via a series of preliminary and intermediate steps, building it up from pieces that you have tried successfully? Or have you just created the whole thing from scratch, without testing any single component by itself, and you're now trying to debug the whole thing at once? Naturally, I'd recommend the former approach if you haven't tried it. Start with something small and constrained (but relevant) -- feed it with equally constrained input if that helps -- then build up incrementally; when you hit a snag, show us what you have, indicating which parts are known to be working, and what incremental piece introduced the snag.
In Section
Seekers of Perl Wisdom
|
|