* scm file parsing
@ 2019-01-04 20:53 Hamzeh Nasajpour
2019-01-04 20:59 ` John Cowan
2019-01-04 21:06 ` Roel Janssen
0 siblings, 2 replies; 3+ messages in thread
From: Hamzeh Nasajpour @ 2019-01-04 20:53 UTC (permalink / raw)
To: guile-user
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] 3+ messages in thread
* Re: scm file parsing
2019-01-04 20:53 scm file parsing Hamzeh Nasajpour
@ 2019-01-04 20:59 ` John Cowan
2019-01-04 21:06 ` Roel Janssen
1 sibling, 0 replies; 3+ messages in thread
From: John Cowan @ 2019-01-04 20:59 UTC (permalink / raw)
To: Hamzeh Nasajpour; +Cc: guile-user
I don't know how well it works, but https://github.com/mjsottile/sfsexp
seems to be exactly what you want. Googling [s-expressions parser python]
will point you to a lot of Python ones.
On Fri, Jan 4, 2019 at 3:53 PM Hamzeh Nasajpour <h.nasajpour@pantherx.org>
wrote:
> 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] 3+ messages in thread
* Re: scm file parsing
2019-01-04 20:53 scm file parsing Hamzeh Nasajpour
2019-01-04 20:59 ` John Cowan
@ 2019-01-04 21:06 ` Roel Janssen
1 sibling, 0 replies; 3+ messages in thread
From: Roel Janssen @ 2019-01-04 21:06 UTC (permalink / raw)
To: guile-user
On 04-01-19 21:53, Hamzeh Nasajpour wrote:
> 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
>
>
You could use Guile's C API. It's in Guile's reference manual.
Kind regards,
Roel Janssen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-04 21:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-04 20:53 scm file parsing Hamzeh Nasajpour
2019-01-04 20:59 ` John Cowan
2019-01-04 21:06 ` Roel Janssen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).