From 517e826f4ea6b6a56567614778d77320f353c49c Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 21 Apr 2023 21:01:26 -0400 Subject: [PATCH] Demonstrating the problem. --- src/main.rs | 4 +++- toy_language.txt | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0916f22f..65d41e3a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,13 +2,15 @@ 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 = document(TEST_DOC); + let parsed = sexp(TEST_DOC); println!("{}\n\n\n", TEST_DOC); println!("{:#?}", parsed); shutdown_telemetry()?; diff --git a/toy_language.txt b/toy_language.txt index 8f7fcaf6..cdc3bc8e 100644 --- a/toy_language.txt +++ b/toy_language.txt @@ -1,3 +1,5 @@ -| foo | bar | -|-----+-------| -| baz | lorem | +(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))))