Switch back to org-mode for the parsing binary.

This commit is contained in:
Tom Alexander 2023-04-21 21:18:30 -04:00
parent cf25a849c0
commit 77f2d23036
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
2 changed files with 2 additions and 8 deletions

View File

@ -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<dyn std::error::Error>> {
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()?;

View File

@ -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)