Here's what Wiki says about G codes and their history.
http://en.wikipedia.org/wiki/G-code
There's a link from that page to a Historical Overview of Numerical Control (NC) which predated Computer Numerical Control (CNC) which is rather interesting. Here's the link...
http://en.wikipedia.org/wiki/CNC