Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/compufox/cl-ini
lisp ini parser
https://github.com/compufox/cl-ini
Last synced: about 2 months ago
JSON representation
lisp ini parser
- Host: GitHub
- URL: https://github.com/compufox/cl-ini
- Owner: compufox
- License: other
- Created: 2020-11-17T15:39:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T18:26:18.000Z (10 months ago)
- Last Synced: 2024-10-12T22:12:35.045Z (3 months ago)
- Language: Common Lisp
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cl-ini
### _ava fox_parse an INI file into an alist
## Installing
```shell
$ mkdir ~/common-lisp
$ git clone https://github.com/compufox/cl-ini ~/common-lisp/cl-ini
```then
```lisp
* (ql:quickload :cl-ini)
```## API
`(parse-ini file)` => `nested alist`
reads FILE in and parses it
if no section is defined then all key-pairs are put into a :GLOBAL section
returns an alist with the same structure of the ini file
---
`(ini-value ini key &key (section :global))` => `value OR nil`
returns the value of KEY for SECTION in INI
returns NIL if key does not exist
## License
MIT