From a92aee921d6e3cfcb8bf2e08ceefd40a66df940f Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Wed, 12 Jun 2024 10:15:48 +0100 Subject: WIP: parsers --- src/event.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/event.rs') diff --git a/src/event.rs b/src/event.rs index 1eab55b..244d3aa 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1 +1,12 @@ // tags, declaration, comments, text. individual bits and what they contain, e.g. tag contains attributes and namespace declarations, lang, ONLY within the tag + +pub enum Event<'s> { + StartTag(Vec>), + EmptyTag(Vec), + Attribute(()) + CData(&'s str), + Comment(&'s str), + Declaration(Vec>), + Attribute((&'str)) + EndTag, +} -- cgit