example code for using nom parsers with the new Rust generator feature generators are now available in Rust nightly. They provide a good way to wrap a nom parser and its backing file or socket, to produce parsed data.