To make it more clear, I will put what I want to do in code.
var functionsafe = "function plus(a,b){c=a+b; return c}";
and we can directly call function add ()= functionsafe;
I wonder if there is a possible language which is capable of doing this. This is inspired by SQL injection attack method, which means inject some code into SQL to mess up database, which makes me thinking if it's possible to do this to general code, which is modify the code while executing. It probably sounds crazy, since codes need to pass the compiler to be recognized by computer, but imagine if it's possible to use similar technique for machine learning. Please tell me if and why it would be impossible to do such thing.