I have a working G code reader written in C# for Microsoft Visual Studio if that would help?

It's only really interested on G0-3 and tool changes but could be expanded.