So i was sitting in calculus today absent-mindedly not studying for the final when i thought of something. Is it possible to write and compile a program, that writes and compiles a program? (oooOOo inception)
something like:
[code]
open file;
file.write(insert program to be written here-ish);
save file "something.c";
compile "something.c";
//and maybe (this might be pushing it)
run "something";
[\code]
If this has already been done then i would love to see it.
Thanks