OK, so...
I know that a Nim program can be compiled to JavaScript using the corresponding backend.
The question is: inside a compiled (C/C++) Nim program, can I convert Nim code to JavaScript using the very same backend? Is that accessible the way I think it could be?
Yep, that's pretty much what I was thinking of. I just want to ... test the waters first and not start experimenting with something that could possibly not work at all after all...
Thanks for the input!
https://github.com/arturo-lang/arturo
I'm experimenting with the idea of producing javascript code too, as a 2nd backend (pretty much like Nim).
Chances are it will be implemented in the language itself. But I am just experimenting.
I don't want the whole code in JS. I just want the option to convert any Nim to JS, on-demand.