in reply to Perl6 Grammars

I think this fills my wish for Parse::RecDescent to handle binary data grammars. I did some work parsing Xerox Metacode files (an undocumented binary format for use with volumn printing systems - think printers hooked up to mainframes) and while it was a pain - I would really have preferred to write the description down as a proper grammar and then let the regex engine handle the dirty work.

I ended up solving the problem without a grammar but as with anything - I could have done it better than the straight procedural code I ended up with.

Replies are listed 'Best First'.
Re: Re: Perl6 Grammars
by Anonymous Monk on Sep 24, 2002 at 06:53 UTC
    I did some work parsing Xerox Metacode files

    Have you considered packaging and publishing your code on CPAN? There seems to be a shortage of modules in that area.

      Yes of course. Sadly I can only write down a smidgen of what I picked up. You can get the public bit from http://www.greentechnologist.org/wiki/wiki?XeroxMetacode though I think that version might be buggy (it at least expresses the essense of getting through a metcode file). With only that little bit I just never thought that it was CPAN-worthy.