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 <[email protected]>
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
>
>

Reply via email to