* `scm` file parsing(read/write/modify)
@ 2019-01-07 6:55 Hamzeh Nasajpour
2019-01-07 8:22 ` Ricardo Wurmus
0 siblings, 1 reply; 2+ messages in thread
From: Hamzeh Nasajpour @ 2019-01-07 6:55 UTC (permalink / raw)
To: help-guix
Hi,
I have a configuration file that written based on `scm` file like as `guixSD` config.scm file.
https://www.gnu.org/software/guix/manual/en/html_node/User-Accounts.html#User-Accounts
I want to read/write/modify this config file in python or C/C++.
Do you know any `scm` file parsing or any other solution for my needed? In fact I want to add/remove/modify parameters of this config file.
Regards,
Hamzeh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: `scm` file parsing(read/write/modify)
2019-01-07 6:55 `scm` file parsing(read/write/modify) Hamzeh Nasajpour
@ 2019-01-07 8:22 ` Ricardo Wurmus
0 siblings, 0 replies; 2+ messages in thread
From: Ricardo Wurmus @ 2019-01-07 8:22 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: help-guix
Hamzeh Nasajpour <h.nasajpour@pantherx.org> writes:
> I have a configuration file that written based on `scm` file like as
> `guixSD` config.scm file.
> https://www.gnu.org/software/guix/manual/en/html_node/User-Accounts.html#User-Accounts
>
> I want to read/write/modify this config file in python or C/C++.
> Do you know any `scm` file parsing or any other solution for my needed? In fact I want to add/remove/modify parameters of this config file.
The usual way to parse Scheme files is with a Scheme (such as Guile).
If you want to do this from C a somewhat heavy-handed approach could be
to embed Guile in C.
See the Guile manual, section “5 Programming in C”.
--
Ricardo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-01-07 8:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-07 6:55 `scm` file parsing(read/write/modify) Hamzeh Nasajpour
2019-01-07 8:22 ` Ricardo Wurmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.