I'm currently playing with
Parse::RecDescent and it makes some sense but not yet entirely. My current goal to parse something like :
Drive Section
Directory SubSection
Setting
Setting
Hardware Section
Video SubSection
Setting
Setting
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.
Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.