Move the parsing of the elisp to the util module.

This commit is contained in:
Tom Alexander
2023-12-27 08:46:18 -05:00
parent c2e921c2dc
commit c717541099
5 changed files with 148 additions and 149 deletions

View File

@@ -1,5 +1,6 @@
use crate::context::GlobalSettings;
use crate::parser::parse_with_settings;
use crate::util::emacs_parse_anonymous_org_document;
use crate::util::print_versions;
pub async fn wasm_run_anonymous_compare<P: AsRef<str>>(
@@ -20,7 +21,7 @@ pub async fn wasm_run_anonymous_compare_with_settings<'g, 's, P: AsRef<str>>(
print_versions().await?;
}
let rust_parsed = parse_with_settings(org_contents, global_settings)?;
// let org_sexp = emacs_parse_anonymous_org_document(org_contents, global_settings).await?;
let org_sexp = emacs_parse_anonymous_org_document(org_contents, global_settings).await?;
// let (_remaining, parsed_sexp) = sexp(org_sexp.as_str()).map_err(|e| e.to_string())?;
if !silent {