https://github.com/compufox/cl-ini
lisp ini parser
https://github.com/compufox/cl-ini
Last synced: 5 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T18:26:18.000Z (over 2 years ago)
- Last Synced: 2026-02-24T00:39:29.203Z (5 months ago)
- Language: Common Lisp
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
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