Grammar-Based, User-Friendly Config Parser

Edit Package perl-Config-Grammar
http://search.cpan.org/dist/Config-Grammar/

Config::Grammar is a module to parse configuration files. The optional
second parameter to the parse() method can be used to specify the file
encoding to use for opening the file (see documentation for Perl's use open
pragma).

The configuration may consist of multiple-level sections with assignments
and tabular data. The parsed data will be returned as a hash containing the
whole configuration. Config::Grammar uses a grammar that is supplied upon
creation of a Config::Grammar object to parse the configuration file and
return helpful error messages in case of syntax errors. Using the *makepod*
method you can generate documentation of the configuration file format.

The *maketmpl* method can generate a template configuration file. If your
grammar contains regexp matches, the template will not be all that helpful
as Config::Grammar is not smart enough to give you sensible template data
based in regular expressions. The related function *maketmplmin* generates
a minimal configuration template without examples, regexps or comments and
thus allows an experienced user to fill in the configuration data more
efficiently.

Refresh
Refresh
Source Files (show unmerged sources)
Filename Size Changed
Config-Grammar-1.13.tar.gz 0000026281 25.7 KB
cpanspec.yml 0000000669 669 Bytes
perl-Config-Grammar.changes 0000001293 1.26 KB
perl-Config-Grammar.spec 0000002964 2.89 KB
Latest Revision
Ruediger Oertel's avatar Ruediger Oertel (oertel) committed (revision 3)
- updated to 1.12
   see /usr/share/doc/packages/perl-Config-Grammar/Changes
  UNRELEASED
      
       * Fixes 'Name "Config::Grammar::File" used only once' (patch by Salvatore Bonaccorso)
       * Fix spelling error in manpage (patch by Salvatore Bonaccorso)
       * Use Dist::Zilla to prepare the Perl distribution for CPAN

- updated to 1.11
   see /usr/share/doc/packages/perl-Config-Grammar/Changes
  2016-02-08
       
       * Released 1.11
       * Allow specification of file encoding (Fritz Zaucker)
Comments 0
openSUSE Build Service is sponsored by