summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5e912cf..25d9be1 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -40,10 +40,10 @@ enum FragmentSource {
40struct Fragment { 40struct Fragment {
41 name: String, 41 name: String,
42 source: usize, 42 source: usize,
43 sections: HashMap<String, Section>, 43 sections: HashMap<String, Output>,
44} 44}
45 45
46struct Section { 46struct Output {
47 name: String, 47 name: String,
48 ast_root: Token, 48 ast_root: Token,
49} 49}
@@ -53,7 +53,8 @@ type Properties = HashMap<String, String>;
53enum Token { 53enum Token {
54 Root(Vec<Token>), 54 Root(Vec<Token>),
55 Fragment(String,Properties,Vec<Token>), 55 Fragment(String,Properties,Vec<Token>),
56 Section(String,Properties,Vec<Token>), 56 Output(String,Properties,Vec<Token>),
57 Show(String,Properties),
57 Text(String), 58 Text(String),
58 Literal(String), 59 Literal(String),
59 /* 60 /*