Is there a Javascript Scheme interpreter that allows you to use javascript calls from within?

I am trying to create a Scheme interface for a user using Javascript. The thing is, I don’t want the interpreter to just work as a schema interpreter.

I just want to provide users with some trivial primitive functions that are implemented in Javascript.

The user mainly uses Scheme to use my primitive functions (for example, the one that writes things using the document.write() function) in any convenient way as he wants (conditionally, recursively, iteratively, etc.).

Is there any way to do this?

+4
source share
2 answers

BiwaScheme does what you want.

+3
source

Check out WhaleSong , which compiles (a subset) of Racket in JavaScript.

0
source

Source: https://habr.com/ru/post/1439572/


All Articles