I am very interested in machine learning. I have an idea to develop a program that can generate a source code according to a given standard. for example, if I have trained the system to how to write something to console and the standard way of using variables then it should be able to generate source code for anything which I ask to print something to the console, likewise. Are there any resources source codes or existing open-source projects?