Levenson / guile-ini

GNU Guile INI library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guile-INI

https://github.com/artyom-poptsov/guile-ini/actions/workflows/guile2.2.yml/badge.svg https://github.com/artyom-poptsov/guile-ini/actions/workflows/guile3.0.yml/badge.svg

A GNU Guile library for working with INI format.

License

Guile-INI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Please see COPYING file for the terms of GNU General Public License.

Requirements

Usage

This program reads an INI data from the standard input, converts it to a scheme list and then converts it back to INI data:

#!/usr/bin/guile \
-L modules -e main -s
!#

(use-modules (ice-9 pretty-print)
             (ini))

(define (main args)
  (let ((data (ini->scm (current-input-port))))
    (pretty-print data)
    (scm->ini data (current-output-port))))

About

GNU Guile INI library.

License:GNU General Public License v3.0


Languages

Language:M4 42.7%Language:Scheme 27.4%Language:Makefile 15.0%Language:Shell 13.8%Language:Emacs Lisp 1.0%