2022-07-16 22:26:53 +00:00
|
|
|
use crate::parser::document;
|
2022-07-16 03:26:49 +00:00
|
|
|
|
|
|
|
mod parser;
|
|
|
|
|
|
|
|
const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
|
|
|
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
2022-11-25 22:27:29 +00:00
|
|
|
let subscriber = tracing_subscriber::FmtSubscriber::new();
|
|
|
|
tracing::subscriber::set_global_default(subscriber)?;
|
2022-07-16 03:26:49 +00:00
|
|
|
println!("{}\n\n\n", TEST_DOC);
|
2022-07-16 22:26:53 +00:00
|
|
|
println!("{:#?}", document(TEST_DOC));
|
2022-07-16 03:26:49 +00:00
|
|
|
Ok(())
|
|
|
|
}
|