https://github.com/tailhook/quire
A YAMLy configuration parser-generator for C
https://github.com/tailhook/quire
Last synced: 10 months ago
JSON representation
A YAMLy configuration parser-generator for C
- Host: GitHub
- URL: https://github.com/tailhook/quire
- Owner: tailhook
- License: mit
- Created: 2013-10-22T18:52:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-05T19:16:42.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T16:45:44.081Z (11 months ago)
- Language: C
- Homepage: http://quire.readthedocs.org
- Size: 869 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
quire
-----
quire is a parser generator for configuration files.
:State: Alpha (it's ok to use in production as long as your config doesn't come from untrusted party)
:Documentation: http://quire.readthedocs.org/
Parsing configuration files is uneasy work. There are a lot of configuration
file parsers, but syntax of most of them is ugly. Also all parsers I have seen
before, require you fetch every option from configuration library and copy it to
your own structure. Also it's not easy to make reusable parts for configuration
file (they have only scalar variables usually). So...
* We use YAML_ for configuration files
* We generate C structure, already typed appropriately, for your config
* Command-line parser is generated automatically (command-line overrides
configuration file options)
* We use YAML config, to configure parser itself. So you decide the
types of options, constraints, and command-line argument names
* Code, to print runtime configuration (including command-line overrides)
is also made
* YAML has rich set of data types (arrays, mappings) which we use to make
config useful (compare it with old ``.ini`` files)
* We use YAML-builtin anchors to make reusable parts
* We have extended YAML with runtime variables, substring substitution
(and we some simple mathematical expressions too)
All this to meet the following goals:
* Embed configuration in your own application with ease
* Add each option only in one place
* Document it just as easy as adding
The quire library is successor to old coyaml_ library of the same author
.. _YAML: http://yaml.org
.. _coyaml: http://github.com/tailhook/coyaml
Build Instructions
------------------
Build process is done with cmake::
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
make install