#![allow(dead_code)]
#![allow(unused_comparisons)]
#![allow(unused_doc_comment)]
#![allow(unused_variables)]
#[macro_use]
extern crate nom;
use std::str;
use nom::{is_digit, alpha};
named!(multi<&[u8], () >, fold_many0!( take_while1!( is_digit ), (), |_, _| {}));
named!(value<Vec<Vec<&str>>>,
do_parse!(
first_line: map_res!(is_not_s!("\n"), std::str::from_utf8) >>
rest: many_m_n!(0, 1, separated_list!(tag!("\n\t"), map_res!(take_while!(call!(|c| c != b'\n')), std::str::from_utf8))) >>
(
rest
)
)
);
fn wrap_suffix(input: &Option<Vec<&[u8]>>) -> Option<String> {
if input.is_some() {
Some("hello".to_string())
} else {
None
}
}
named!(parse_suffix<&[u8],Option<String>>,do_parse!(
u: opt!(many1!(alt_complete!(
tag!("%") | tag!("#") | tag!("@") | alpha
))) >>
(wrap_suffix(&u))
));