[][src]Crate nom_derive

This crate provides Nom's derive macros.

#[derive(Nom)]

For more documentation and examples, see the Nom derive documentation.

Derive Macros

Nom

The Nom derive automatically generates a parse function for the structure using nom parsers. It will try to infer parsers for primitive of known types, but also allows you to specify parsers using custom attributes.

NomDeriveDebug

This derive macro behaves exactly like Nom derive, except it prints the generated parser on stderr. This is helpful for debugging generated parsers.