From 77f2d2303645146764cd9ab6fce46e8475b103e9 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 21 Apr 2023 21:18:30 -0400 Subject: [PATCH] Switch back to org-mode for the parsing binary. --- src/main.rs | 4 +--- toy_language.txt | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) 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)