|
Config::Grammar::Dynamic - A grammar-based, user-friendly config parser |
Config::Grammar::Dynamic - A grammar-based, user-friendly config parser
Config::Grammar::Dynamic is like Config::Grammar but with some additional features useful for building configuration grammars that are dynamic, i.e. where the syntax changes according to configuration entries in the same file.
The following keys can be additionally specified in the grammar when using this module:
_dyn() subroutine is then called for each of
these names and the differences of the resulting grammar and
the original one are documented. This module can currently document
differences in the _vars list, listing new variables and removed
ones, and differences in the _sections list, listing the
new and removed sections.
The same effect can be accomplished with circular references in the grammar tree or a suitable _dyn section subroutine (see below}, so this facility is included just for convenience.
Note that no _dyn() call is made for default and inherited values of
the variable.
_dyn() subroutine is then called for each of
these values and the differences of the resulting grammar and
the original one are documented. This module can currently document
differences in the _vars list, listing new variables and removed
ones, and differences in the _sections list, listing the
new and removed sections.
Copyright (c) 2000-2005 by ETH Zurich. All rights reserved. Copyright (c) 2007 by David Schweikert. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
David Schweikert, Tobias Oetiker, Niko Tyni
|
Config::Grammar::Dynamic - A grammar-based, user-friendly config parser |