[gambit-list] C Embedding question
Alex Ryu
ryu.alex at gmail.com
Thu Jan 29 01:44:52 EST 2009
Hello
I would like to do something similar to the following within my C program:
*****************
char* condition = "(2 < 4) & (3 > 7");
int boole;
...
boole = evaluate(condition);
*****************
where evaluate is a scheme function already written and compiled by
gsc. Most of the documentation I have seen relates more to the
reversed situation - calling C functions from scheme. I have taken a
look at the client example program in the tests directory, but it is
not clear to me exactly how the string is treated by scheme - ie, in
what form it is going to be, if that makes any sense. Obviously I
would prefer it as a list of some sort, but I don't know if that's
possible. I am using Linux and gcc 4, if that makes a difference.
Thanks for your time
Alex
More information about the Gambit-list
mailing list