organic/src/main.rs

14 lines
379 B
Rust
Raw Normal View History

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>> {
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);
println!("{:#?}", document(TEST_DOC));
2022-07-16 03:26:49 +00:00
Ok(())
}