diff options
author | cel 🌸 <cel@blos.sm> | 2024-06-12 10:15:48 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2024-06-12 10:15:48 +0100 |
commit | a92aee921d6e3cfcb8bf2e08ceefd40a66df940f (patch) | |
tree | c60ee2a490f99a7d5861c865a9788660af213074 /src/event.rs | |
parent | 844f3a5d11e4360e9d6bdb79cfed49287aa8b14d (diff) | |
download | peanuts-a92aee921d6e3cfcb8bf2e08ceefd40a66df940f.tar.gz peanuts-a92aee921d6e3cfcb8bf2e08ceefd40a66df940f.tar.bz2 peanuts-a92aee921d6e3cfcb8bf2e08ceefd40a66df940f.zip |
WIP: parsers
Diffstat (limited to 'src/event.rs')
-rw-r--r-- | src/event.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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<Event<'s>>), + EmptyTag(Vec<Event>), + Attribute(()) + CData(&'s str), + Comment(&'s str), + Declaration(Vec<Attribute<'s>>), + Attribute((&'str)) + EndTag, +} |