Nom, a Byte-oriented, Streaming, Zero-copy Parser Combinators Library in Rust
Geoffroy Couprie
Presented at the
2015 LangSec Workshop
at the IEEE Symposium on Security & Privacy Workshops
May 21, 2015
San Jose, CA
http://www.ieee-security.org/TC/SP2015/
http://spw15.langsec.org/
ABSTRACT
The recently created language Rust has been presented as a safer way to write low level code, even capable of replacing C. Is it able to produce safe and efficient parsers? We show that Rust’s features, like slicing, allow for powerful memory management, and that its type safety helps in writing correct parsers. We then study briefly how it can make streaming parsers, and how to provide better usability in a parsing library.