Hi, I'm wondering if anyone knows if it's possible to execute live lines of code from a text file (or user input) during program execution without an interpreter. In other words, say I had the following class:
I want the user to be able to enter something like:
But I don't want to use an interpreter. The reason is I want the user to be able to execute any API, in realtime. If this cannot be accomplished in C++ I am willing to do it in assembly. Does anyone know of a function that will take some string as a parameter and convert it to live code? Or know how to write one? Thanks.