CPAN to the rescue, of course! Spreadsheet::WriteExcel, Parse::RecDescent, Data::Dumper, and a myriad of other modules made this job a 12-hour job rather than a 100-hour job.
The first task was to learn the BAI format, then write a grammar for it. This is where I spent most of my time. Now that the grammar is good and only needs to be maintained when certain transaction codes change, I want to give this grammar to CPAN so that nobody else will need to go through what I went through.
The problem is that I don't think this needs to be a module, not even a script. All it needs is two text files (one for the grammar and one for the transaction codes), and some perldoc.
Do I need to go through writing a module? I don't mind doing it, it just seems unnecessary. It seems to me that it code that wraps this grammar will be the same code that wraps just about any other grammar that fits into this category (e.g. something that's been around for years, doesn't look like it will change soon, etc.).
A possible solution? How about if we were to create one module in CPAN that houses separate grammars for the various industry-standard file formats for, well, whatever industry you need?
The grammars should themselves follow some kind of standard (e.g. within one grammar, there can be any number of text files, each of which contributes to either a) rules definitions, or b) support data, thorough documentation should be supplied, etc.)
I've got plenty more ideas on this, but I wanted to throw it out there just so I can work on a Grammars::Standard module instead of a BAI::Format module.
Thoughts?
MM
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Repository of Parse::RecDescent grammars?
by TheDamian (Vicar) on Aug 07, 2002 at 22:29 UTC | |
by merlyn (Sage) on Aug 07, 2002 at 22:37 UTC | |
Re: Repository of Parse::RecDescent grammars?
by ichimunki (Priest) on Aug 07, 2002 at 15:09 UTC | |
by Hanamaki (Chaplain) on Aug 07, 2002 at 16:07 UTC | |
•Re: Repository of Parse::RecDescent grammars?
by merlyn (Sage) on Aug 07, 2002 at 21:10 UTC | |
Re: Repository of Parse::RecDescent grammars?
by Anonymous Monk on Aug 07, 2002 at 15:55 UTC | |
by Maestro_007 (Hermit) on Aug 07, 2002 at 16:40 UTC | |
by John M. Dlugosz (Monsignor) on Aug 07, 2002 at 21:11 UTC | |
Re: Repository of Parse::RecDescent grammars?
by mwest (Acolyte) on Nov 01, 2002 at 02:01 UTC |