gcode::core

Function parse

Source
pub fn parse(src: &str, visitor: &mut impl ProgramVisitor)
Expand description

Parses src from start to finish, driving visitor for each block.

For incremental or resumable parsing, use ParserState::empty and resume instead; return ControlFlow::Break from your visitor when you need to pause, then call resume with the returned state.