A simple, dependency-free gcode parser for use in reprap-style 3d printers