omc-configparser.lsp¶
Functions to parse and manipulate configuration files. A
configuration file consists of sections, lead by a [section]
header, and followed by name = value entries, with continuations
and such in the style of RFC 822.
It works by passing around a structure of nested association lists in the config parameter. This is still a crude and incomplete implementation that has no support for variable interpolation, default sections and custom option/value delimiters and has no error handling.
Functions¶
(omc-configparser-has-section config sectname)
(omc-configparser-has-option config sectname optname)
(omc-configparser-sections config)
(omc-configparser-options config sectname)
(omc-configparser-items config sectname)
(omc-configparser-add-section config sectname)
(omc-configparser-set config sectname optname optval)
(omc-configparser-remove-section config sectname)
(omc-configparser-remove-option config sectname optname)
(omc-configparser-update config other)
Update association list of a configuration with other configuration.
(omc-configparser-read-files paths)
Read and parse configurations from files, updating the configuration with each file.
(omc-configparser-read-file path)
Read and parse configuration from a file.
(omc-configparser-read-string string)
Read and parse configuration from a file.
(omc-configparser-read-alist alist)
Read configuration from an association list.
(omc-configparser-error)
(omc-configparser-read-lines lines)
Read and parse configuration from a list of line strings.
(omc-configparser-write config path)
Global variables¶
*omc-configparser-comment_prefixes* assigned in
- Top level
*omc-configparser-defaults* assigned in
- Top level
*omc-configparser-delimiters* assigned in
- Top level
*omc-configparser-inline_comment_prefixes* assigned in
- Top level
next assigned in
- omc-configparser-read-files
test1 assigned in
- Top level
test2 assigned in
- Top level
Functions called on load¶
- princ