http://qs1969.pair.com?node_id=235766

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

hi there,
Anyone knows about Parsers and there is many modules for that ... what I think.. are there a GENERATORS. What I mean is some technology like grammars that can easify text generation...
And better a combination of both parser-generator.. Yes I know I can use Perl for this.. but I think of some more declarative i.e. bison like syntax...
I need it for configuration files generation..

it should be possible to generate the text files in mixed fashon ..i.e. not from the begining to the end, but
conditionaly insert text depending on the current state in diferent part of the resulting file...
It should be possible also to generate a good indentation so that the resulting file is human readable..

etc..etc... :"))
any ideas

and if there is technologies for this is there a modules.. their names..

Title edit by tye

Replies are listed 'Best First'.
•Re: Generators
by merlyn (Sage) on Feb 16, 2003 at 20:50 UTC
Re: Generators
by dws (Chancellor) on Feb 16, 2003 at 19:56 UTC
    What I mean is some technology like grammars that can easify text generation...

    Bone::Easy is kind of a joke, but it embeds a mechanism that may be what you're looking for.