aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorEdward Barnard2015-08-04 17:24:37 +0100
committerEdward Barnard2015-08-04 17:24:37 +0100
commit094994360a7eb81eb545fccfe73e80765be71fd3 (patch)
treef37e86ce5e475a87598ba65ed27af6b6e55f5f77 /src/lib.rs
parentda761e65e2f7b74afd2bdf1e07b19e038d990df6 (diff)
downloadrust-plist-094994360a7eb81eb545fccfe73e80765be71fd3.tar.bz2
More parsing
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 87aca11..9641d6b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,21 @@
extern crate rustc_serialize;
extern crate xml;
-pub mod reader; \ No newline at end of file
+mod reader;
+
+pub use reader::{Parser, StreamingParser, PlistEvent};
+
+use std::collections::HashMap;
+
+#[derive(Clone, Debug, PartialEq)]
+pub enum Plist {
+ Array(Vec<Plist>),
+ Dictionary(HashMap<String, Plist>),
+ Boolean(bool),
+ Data(Vec<u8>),
+ Date(String),
+ Real(f64),
+ Integer(i64),
+ String(String)
+}
+