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>> {
|
|
|
|
pretty_env_logger::init();
|
|
|
|
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(())
|
|
|
|
}
|