First of all, thanks for implementing the Espruino engine and the possibilities it may provide for the community.
I'm considering using the Espruino engine to be embedded into a Ansi-C console application (Open Source project), running on generic Linux.
I haven't really found any documentation about how this can be done, just trying to get my head around it all by looking sporadically into the sources. So my questions are:
Is it possible to execute JavaScript from within the C-program, and when completed, returning to the C-program?
In the C-program, I'd like to expose variables that the running Javascript can read/update. Is this available?
How to implement new binding functions (calling a C-function from JavaScript).
With possible answers to these questions, Espruino would ultimately become a low-ressource embeddable JavaScript interpreter as an alternative to the big V8 and Spidermonkey engines.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi Gordon,
First of all, thanks for implementing the Espruino engine and the possibilities it may provide for the community.
I'm considering using the Espruino engine to be embedded into a Ansi-C console application (Open Source project), running on generic Linux.
I haven't really found any documentation about how this can be done, just trying to get my head around it all by looking sporadically into the sources. So my questions are:
With possible answers to these questions, Espruino would ultimately become a low-ressource embeddable JavaScript interpreter as an alternative to the big V8 and Spidermonkey engines.
Kindest regards
Gunther