diff --git a/src/main.rs b/src/main.rs index 8e4901c..6906a5b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ #![feature(round_char_boundary)] -// use crate::parser::document; +use crate::parser::document; use tracing::Level; use tracing_subscriber::fmt::format::FmtSpan; @@ -19,8 +19,8 @@ fn main() -> Result<(), Box> { .with_span_events(FmtSpan::ENTER | FmtSpan::EXIT) .finish(); tracing::subscriber::set_global_default(subscriber)?; - // let parsed = document(TEST_DOC); - // println!("{}\n\n\n", TEST_DOC); - // println!("{:#?}", parsed); + let parsed = document(TEST_DOC); + println!("{}\n\n\n", TEST_DOC); + println!("{:#?}", parsed); Ok(()) } diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 5d189e2..18cb314 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -16,4 +16,5 @@ mod source; // mod text; // mod token; mod util; +pub use document::document; type Context<'r, 's> = &'r parser_context::ContextTree<'r, 's>;