diff --git a/src/main.rs b/src/main.rs index 65d41e3..0916f22 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,15 +2,13 @@ use crate::init_tracing::init_telemetry; use crate::init_tracing::shutdown_telemetry; use ::organic::parser::document; -use organic::parser::sexp::sexp; mod init_tracing; const TEST_DOC: &'static str = include_str!("../toy_language.txt"); fn main() -> Result<(), Box> { init_telemetry()?; - // let parsed = document(TEST_DOC); - let parsed = sexp(TEST_DOC); + let parsed = document(TEST_DOC); println!("{}\n\n\n", TEST_DOC); println!("{:#?}", parsed); shutdown_telemetry()?; diff --git a/toy_language.txt b/toy_language.txt index cdc3bc8..7de30a5 100644 --- a/toy_language.txt +++ b/toy_language.txt @@ -1,5 +1 @@ -(org-data nil - (section - (:begin 1 :end 9 :contents-begin 1 :contents-end 9 :post-blank 0 :post-affiliated 1 :parent #0) - (diary-sexp - (:value "%%(foo)" :begin 1 :end 9 :post-blank 0 :post-affiliated 1 :parent #1)))) +%%(foo)