Re: using guile like a awk filter in a C program.

Simon Tournier <[email protected]>
Newsgroups gmane.lisp.guile.user
Message-ID <[email protected]>
Hi Pierre,

> I want to call scheme from C.

Well, I would start with:

https://www.gnu.org/software/guile/manual/html_node/A-Sample-Guile-Main-Program.html

Then maybe:

https://www.gnu.org/software/guile/manual/html_node/General-Libguile-Concepts.html


Personally, I have never done that.  The memory management can be
painful.  And instead of directly using libguile, my first attempt would
be a very simplistic approach: call system() or popen(), i.e., start
Guile this way and process some script.  If that is not doable because
the objects to process are alive inside only the C program, that’s an
indication it will not be straightforward. ;-)

Somehow, I do not know about your question. :-)

Cheers,
simon
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.