Move the sexp parser into the parser crate.

We need to parse sexp for diary sexp.
This commit is contained in:
Tom Alexander
2023-04-21 20:32:51 -04:00
parent 9d5b078c64
commit 7de72cab23
7 changed files with 4 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
use crate::parser::sexp::Token;
use crate::parser::Source;
use super::sexp::Token;
/// Check if the child string slice is a slice of the parent string slice.
fn is_slice_of(parent: &str, child: &str) -> bool {
let parent_start = parent.as_ptr() as usize;