[CM] regds : s7 scheme -> embedding scheme
Kjetil Matheussen
k.s.matheussen at gmail.com
Sat Nov 22 12:08:29 PST 2014
I don't know if this is what you're asking about. but this is the
script used to convert scheme code into "#include"-able
c-code for the k_guile pd external:
https://github.com/kmatheussen/k_guile/blob/master/gen_c_scheme.py
The output is used like this:
char *scheme_code = #include "scheme_code_scm.txt"
On Sat, Nov 22, 2014 at 8:40 PM, JV <billbose at gmail.com> wrote:
>
> How do you embed a 'large' scheme program with s7 .
> Do you run any macros before you compile the c code to do the escapes for
> the scheme text? (see below)
> I will appreciate if i can get access to those macros.
>
>
> int main(int argc, char **argv)
> {
> char *scheme_program = "(define (hello src)"
> "(display src))"
> "(hello \"joe\n\")";
> s7_scheme *s7;
> s7 = s7_init();
> s7_eval_c_string(s7, scheme_program);
> }
> --
> Joe
>
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/mailman/private/cmdist/attachments/20141122/8efae7da/attachment.html
More information about the Cmdist
mailing list