nodeagg/lib.rs
1#![doc = include_str!("../README.md")]
2
3#[macro_use]
4extern crate combine;
5pub mod core;
6pub mod expr;
7pub mod iter;
8pub mod parser;
9
10/// main object it can be convert from &str.
11///
12/// node expression must be comman or newline separated.
13/// Currently it does not support any operations like (or, and, xor, substract)
14/// Type of Error and Iterator could be change in the future.
15///
16/// # Examples
17///
18/// ```
19/// use nodeagg::Nodeagg;
20///
21/// let hostnames : Vec<String> =
22/// Nodeagg::try_from("node[01-02],node03").unwrap().iter().collect();
23/// assert_eq!(hostnames, vec!["node01", "node02", "node03"]);
24/// ```
25///
26/// Comemnt line must start with `#`.
27///
28/// ```
29/// # use nodeagg::Nodeagg;
30/// let hostnames : Vec<String> =
31/// Nodeagg::try_from("node[01-02]
32/// #node03
33/// node04").unwrap().iter().collect();
34/// assert_eq!(hostnames, vec!["node01", "node02", "node04"]);
35/// ```
36///
37pub type Nodeagg = core::Nodeagg;