Can you implement an interpreter for a scripting language like Lua or Python?

I am trying to implement the ability for a player to design their own AI to play against. I would like to use a scripting language like python or lua for this so that there is no need to compile their bot. Is there anyway to implement an interpreter that could be used in this kind of fashion?

I would like to use it similar to this:

in .cpp

-call function from script that writes data to a file

-parse the data from the file

-execute based on the data

Hi, we have just released a plugin for integrating Python3 in Unreal Engine 4: