Create an intermediate ast node type.

This commit is contained in:
Tom Alexander
2023-10-29 13:51:32 -04:00
parent cd27869122
commit 6109902945
6 changed files with 389 additions and 18 deletions

View File

@@ -3,15 +3,14 @@ use std::collections::HashMap;
use organic::types::Element;
use organic::types::Object;
use super::ast_node::IAstNode;
type IdCounter = u16;
pub(crate) struct Registry<'intermediate, 'parse> {
id_counter: IdCounter,
targets: HashMap<&'parse str, String>,
footnote_ids: Vec<(
Option<&'parse str>,
FootnoteDefinitionContents<'intermediate, 'parse>,
)>,
footnote_ids: Vec<(Option<&'parse str>, Vec<IAstNode>)>,
}
impl<'intermediate, 'parse> Registry<'intermediate, 'parse> {