[gambit-list] Target language REPL

Marc Feeley feeley at iro.umontreal.ca
Tue Nov 3 23:05:57 EST 2015


Eval is implemented, but I/O is currently very limited (only println is usable).  So the REPL does not currently work.

For your second question, you can use

(##inline-host-declaration "print('hello');”)

or

(##inline-host-statement "print(@1@);" "hello")

Marc

> On Nov 2, 2015, at 4:34 AM, Sanel Zukan <sanelz at gmail.com> wrote:
> 
> Hi,
> 
> I'm playing with php and js as target languages and I must say it looks
> awesome. However, I'm wondering, is it possible to have REPL on target
> language: e.g. invoke gsi with '-target php', where Gambit will in
> runtime compile scheme code to php and run it in php interactive shell?
> Something like ClojureScript is doing with javascript.
> 
> Also, is there an way to write multiple lines of target language
> specific code, like is done with c-declare? I'm not able to find any
> target language primitives in manual...
> 
> Thanks,
> Sanel
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list




More information about the Gambit-list mailing list