On Monday, 4 November 2013 at 22:22:32 UTC, Max Klyga wrote:
On 2013-11-04 21:20:46 +0000, Adam D. Ruppe said:
On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen
wrote:
Is there a way I can embed javascript into my D application?
You could use any C javascript lib too, but for ones already
wrapped or something, I know there's a few D implementations
of javascript: dmdscript
<http://www.digitalmars.com/dscript/index.html> (written in D1
but there's two or three ports out there to D2)
D1 version is now on github:
https://github.com/DigitalMars/DMDScript
D2 version:
http://dsource.org/projects/dmdscript-2/
pretty sure it will need tweaks to compile with current DMD
version
You could rather easyly embed Mozilla Spidermonkey engine, as
it provides a C api and D work great with C
I'm probably going with spidermonkey then. Didn't really know it
had a C API... Thanks. :P