Starting code for iterating over the parsed ast.

This commit is contained in:
Tom Alexander
2023-04-24 22:10:24 -04:00
parent 3fc3ba58aa
commit c44e7d642f
3 changed files with 42 additions and 0 deletions

12
src/parser/token.rs Normal file
View File

@@ -0,0 +1,12 @@
use super::Document;
use super::Element;
use super::Heading;
use super::Object;
use super::Section;
pub enum Token<'r, 's> {
Heading(&'r Heading<'s>),
Section(&'r Section<'s>),
Object(&'r Object<'s>),
Element(&'r Element<'s>),
}