Invoke the document parser.
This commit is contained in:
parent
3c26933e7f
commit
2ab407bb83
@ -1,5 +1,5 @@
|
|||||||
#![feature(round_char_boundary)]
|
#![feature(round_char_boundary)]
|
||||||
// use crate::parser::document;
|
use crate::parser::document;
|
||||||
use tracing::Level;
|
use tracing::Level;
|
||||||
use tracing_subscriber::fmt::format::FmtSpan;
|
use tracing_subscriber::fmt::format::FmtSpan;
|
||||||
|
|
||||||
@ -19,8 +19,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
.with_span_events(FmtSpan::ENTER | FmtSpan::EXIT)
|
.with_span_events(FmtSpan::ENTER | FmtSpan::EXIT)
|
||||||
.finish();
|
.finish();
|
||||||
tracing::subscriber::set_global_default(subscriber)?;
|
tracing::subscriber::set_global_default(subscriber)?;
|
||||||
// let parsed = document(TEST_DOC);
|
let parsed = document(TEST_DOC);
|
||||||
// println!("{}\n\n\n", TEST_DOC);
|
println!("{}\n\n\n", TEST_DOC);
|
||||||
// println!("{:#?}", parsed);
|
println!("{:#?}", parsed);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
@ -16,4 +16,5 @@ mod source;
|
|||||||
// mod text;
|
// mod text;
|
||||||
// mod token;
|
// mod token;
|
||||||
mod util;
|
mod util;
|
||||||
|
pub use document::document;
|
||||||
type Context<'r, 's> = &'r parser_context::ContextTree<'r, 's>;
|
type Context<'r, 's> = &'r parser_context::ContextTree<'r, 's>;
|
||||||
|
Loading…
Reference in New Issue
Block a user