Function gutenberg_post_parser::parser::phrase [−]
pub fn phrase(i: Input) -> IResult<Input, Node, u32>
Recognize a phrase.
Examples
extern crate gutenberg_post_parser; use gutenberg_post_parser::{ast::Node, parser::phrase}; let input = &b"foobar"[..]; let output = Ok( ( // The remaining data. &b""[..], // The Abstract Syntax Tree. Node::Phrase(&b"foobar"[..]) ) ); assert_eq!(phrase(input), output);