G-Code is a motor control language used for almost every CNC machine in production, including all 3D printers that I've ever heard of. The few printers that don't directly use G-Code to control motors have ways to interpret the G-Code in order to generate x/y/z coordinates and tool action.