in reply to Re: Backus Naur Form
in thread Backus Naur Form

Well, in that case, perhaps it's worth writing one. Er, maybe... I wonder if anyone other than the two of us would use it. :-)

Replies are listed 'Best First'.
Re^3: Backus Naur Form
by polypompholyx (Chaplain) on Apr 28, 2005 at 08:56 UTC
    I would! I thought of writing a (E)BNF to P::RD parser in P::RD, but never quite got round to it. It would certainly be useful, as you can dig out BNFs for lots of languages that don't necessarily have P::RD-based parsers on CPAN. It would also make P::RD parsers hand-converted from changeable BNFs much easier to maintain. I would think it'd be quite simple to do this if you can write a meta-grammar for BNF in P::RD. Maybe it's so simple that it's been done several times already, but never made its way onto CPAN...