summaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h7
1 files changed, 7 insertions, 0 deletions
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);