Embeeded Gambit-C with REPL
Hello good people, Could anybody show how do I can compile a C app, with embedded gsc's REPL loop? Just wondering maybe somebody already did it.... - Valeriya
Afficher les réponses par date
Hallo, On 5/13/09, Valeriya Pudova <val1969@neotech.lv> wrote:
Hello good people,
Could anybody show how do I can compile a C app, with embedded gsc's REPL loop?
You don't need the GSC library. It is very easy, BTW: ;; Start a REPL for debugging (c-define (start-repl) () void "tsk_repl" "" (##repl-debug-main)) Cheers, -- -alex http://www.ventonegro.org/
On 13-May-09, at 11:32 AM, Valeriya Pudova wrote:
Hello good people,
Could anybody show how do I can compile a C app, with embedded gsc's REPL loop?
Just wondering maybe somebody already did it....
The Gambit source code distribution comes with a couple examples that show how Gambit can be embedded in a C application. 1) In tests/ check the files client.c, server.h and server.scm . You can try it out with: cd tests make test8 2) In examples/pthread type "make examples". It is an advanced example where a multi-threaded C application calls Scheme code. Marc
participants (3)
-
Alex Queiroz -
Marc Feeley -
Valeriya Pudova