nom 3.0.0

A byte-oriented, zero-copy, parser combinators library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(dead_code)]
#![allow(unused_variables)]


#[macro_use]
extern crate nom;

use std::str;


named_args!(atom<'a>(tomb: &'a mut ())<String>,
            map!(map_res!(is_not_s!(" \t\r\n()"), str::from_utf8), ToString::to_string));


named_args!(list<'a>(tomb: &'a mut ())<String>,
            delimited!(char!('('), fold_many0!(call!(atom, tomb), "".to_string(), |acc: String, next: String| acc + next.as_str()), char!(')')));