2023-03-23 23:35:32 +00:00
|
|
|
#![feature(round_char_boundary)]
|
2023-04-11 19:08:46 +00:00
|
|
|
use crate::init_tracing::init_telemetry;
|
|
|
|
use crate::init_tracing::shutdown_telemetry;
|
2023-04-21 22:57:38 +00:00
|
|
|
use ::organic::parser::document;
|
2023-04-22 01:01:26 +00:00
|
|
|
use organic::parser::sexp::sexp;
|
2023-04-11 19:08:46 +00:00
|
|
|
mod init_tracing;
|
2022-07-16 03:26:49 +00:00
|
|
|
|
|
|
|
const TEST_DOC: &'static str = include_str!("../toy_language.txt");
|
|
|
|
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
2023-03-27 19:08:29 +00:00
|
|
|
init_telemetry()?;
|
2023-04-22 01:01:26 +00:00
|
|
|
// let parsed = document(TEST_DOC);
|
|
|
|
let parsed = sexp(TEST_DOC);
|
2023-03-27 19:08:29 +00:00
|
|
|
println!("{}\n\n\n", TEST_DOC);
|
|
|
|
println!("{:#?}", parsed);
|
2023-04-11 19:08:46 +00:00
|
|
|
shutdown_telemetry()?;
|
2022-07-16 03:26:49 +00:00
|
|
|
Ok(())
|
|
|
|
}
|