سؤال

For example, I have a js code, and I while like to write a simple console program that read this code, execute it, and print back the result. Is this possible to do so? If yes, how can I start doing this? Thank you.

هل كانت مفيدة؟

المحلول

You'd need a JS engine for C such as SpiderMonkey (which is the one FireFox uses). I'm not sure how easy that is to use though, there may be others that are better.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top