Parse a line of gcode into a map of codes, and a comment field. @param string line: line of gcode to parse @return tuple containing a dict of codes, a list of flags, and a comment string
(line)
| 69 | |
| 70 | |
| 71 | def parse_line(line): |
| 72 | """ |
| 73 | Parse a line of gcode into a map of codes, and a comment field. |
| 74 | @param string line: line of gcode to parse |
| 75 | @return tuple containing a dict of codes, a list of flags, and a comment string |
| 76 | """ |
| 77 | |
| 78 | command, comment = extract_comments(line) |
| 79 | codes, flags = parse_command(command) |
| 80 | |
| 81 | return codes, flags, comment |
| 82 | |
| 83 | |
| 84 | def check_for_extraneous_codes(codes, allowed_codes): |
nothing calls this directly
no test coverage detected