From 6e1eaaf13a13584294c6a090ef40500cd786f56f Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 23 Mar 2025 11:26:53 +0100 Subject: Initial commit --- src/parse.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/parse.h (limited to 'src/parse.h') diff --git a/src/parse.h b/src/parse.h new file mode 100644 index 0000000..516b171 --- /dev/null +++ b/src/parse.h @@ -0,0 +1,7 @@ +#include "leven.h" + +// Chunk offsets for each node in the tree +// chunks[nodeId] = start position of the tag in the original string +// The end position is implicitly the start of the next tag or the end of the string + +int parse_string(char *str, struct Tree *tree, size_t **chunks); -- cgit v1.2.3