1 #![allow(dead_code)] 2 #![allow(unused_variables)] 3 4 #[macro_use] 5 extern crate nom; 6 7 use std::str; 8 9 named_args!(atom<'a>(tomb: &'a mut ())<String>, 10 map!(map_res!(is_not_s!(" \t\r\n()"), str::from_utf8), ToString::to_string)); 11 12 named_args!(list<'a>(tomb: &'a mut ())<String>, 13 delimited!( 14 char!('('), 15 fold_many0!(call!(atom, tomb), "".to_string(), |acc: String, next: String| acc + next.as_str()), 16 char!(')'))); 17