diff --git a/src/ir/mod.rs b/src/ir/mod.rs index 66d55f3..8e2657c 100644 --- a/src/ir/mod.rs +++ b/src/ir/mod.rs @@ -23,7 +23,7 @@ use crate::grammar::Range; */ /// Tag to uniquely represent a particular field -type FieldTag = &'static str; +pub type FieldTag = &'static str; /// Primitive value types #[derive(PartialEq, Debug)] diff --git a/src/parser/mod.rs b/src/parser/mod.rs new file mode 100644 index 0000000..b93c927 --- /dev/null +++ b/src/parser/mod.rs @@ -0,0 +1,10 @@ +use crate::{ + grammar::Range, + ir::{Atom, FieldTag}, +}; + +struct ParsedField<'a> { + range: Range, + name: FieldTag, + value: Atom<'a>, +}