From 5fa1ed471fd5d384463e35abdfc52e212c4887a6 Mon Sep 17 00:00:00 2001 From: Raphael Jacobs Date: Tue, 1 Jul 2025 00:34:34 +0200 Subject: [PATCH] test commit --- src/ir/mod.rs | 2 +- src/parser/mod.rs | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 src/parser/mod.rs 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>, +}