Beatnik has asked for the wisdom of the Perl Monks concerning the following question:
Now assume there are a certain number of sections (all named, some optional), each section has specific subsections (some optional, some arent, all named), each subsection has different settings (depending on the subsection and above section). When Sections (and subsections) are used, they must appear in a certain order. Now I tried writing basic grammar for the settings, but is Parse::RecDescent oki for the job for the entire structure (I guess it is)? I've been thinking about some kind of separate grammar for each section and each subsection but I'm not sure this is the way to go. Another way I thought of was to use basic grammar for the Sections and use RE for the extended bits like subsections and settings.Drive Section Directory SubSection Setting Setting Hardware Section Video SubSection Setting Setting
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: is Parse::RecDescent good for this job?
by Abigail-II (Bishop) on May 28, 2002 at 13:24 UTC | |
by Beatnik (Parson) on May 28, 2002 at 14:24 UTC | |
Re: is Parse::RecDescent good for this job?
by joealba (Hermit) on May 28, 2002 at 15:35 UTC | |
by Beatnik (Parson) on May 28, 2002 at 16:12 UTC | |
Re: is Parse::RecDescent good for this job?
by Anonymous Monk on May 29, 2002 at 03:45 UTC | |
Re: is Parse::RecDescent good for this job?
by meonkeys (Chaplain) on May 29, 2002 at 09:04 UTC | |
by Abigail-II (Bishop) on May 29, 2002 at 09:25 UTC | |
by Anonymous Monk on Sep 11, 2003 at 05:32 UTC | |
by meonkeys (Chaplain) on Sep 15, 2003 at 05:42 UTC |