Scott Hasse wrote: > All- > > I'm thinking about writing some gcode filters for EMC2 in python, and want > to make these as robust and flexible as possible. To that end, I'm > wondering if there is a typical approach to parsing and validating > arbitrary-format gcode into some sort of canonical form so that a > text-based approach to transformation could be more generically written. G-code is extremely easy to parse. Every numeric value is preceded by a letter telling what it is. In EMC, there are some special cases like comments and variables, introduced by ( and #.
Jon ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users