I am looking into the logic behind applications like Unity3d, that allow you to write code with JS, C# or Boo, and then compile in a common language (I believe it is plain C++), making the editor independent from a specific language. Allowing users to write code in either language (or all of them at once, in different scripts, inside the same project).
Is there something already "packaged" and ready to use, or something where I can actually learn how to accomplish something similar to what Unity does? The idea is to use only few languages; JS and Python seems to be the ones that pop most often among search for conversion, so probably I would start with these.
I was told that this can be accomplished mainly with parsing of the source code, using regular expressions. Didn't find much beside this approach.
I am aware of the problems related to the different syntax and API, among different languages; which is why instead of re-inventing the wheel, I did decide to search for existing methodologies and try to apply them. Any pointer would be really appreciated.