Implement a very basic first stab at lisp parser.

This commit is contained in:
Tom Alexander
2023-04-11 14:50:37 -04:00
parent 96d2cc7c6a
commit 751a3beffd
4 changed files with 105 additions and 0 deletions

View File

@@ -1,7 +1,20 @@
use std::path::Path;
use std::process::Command;
use crate::compare::sexp::sexp;
pub fn emacs_parse_org_document<'a, C>(file_path: C) -> Result<String, Box<dyn std::error::Error>>
where
C: AsRef<Path>,
{
let org_sexp = emacs_parse_org_document_to_sexp(file_path)?;
let parsed_sexp = sexp(org_sexp.as_str()).expect("Parse failure");
todo!()
}
fn emacs_parse_org_document_to_sexp<'a, C>(
file_path: C,
) -> Result<String, Box<dyn std::error::Error>>
where
C: AsRef<Path>,
{