summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-13 20:01:36 +0600
committerDaniil Baturin <daniil@baturin.org>2015-04-13 20:01:36 +0600
commit7fd7552fd0d912d3b2e5685a42c19cd7557a3ac9 (patch)
treed04970bc724adf79cd45d22b5dc1edfdcc548395
parent5c6023a917e4bf1fdfb738d779687393b222468b (diff)
downloadvyconf-7fd7552fd0d912d3b2e5685a42c19cd7557a3ac9.tar.gz
vyconf-7fd7552fd0d912d3b2e5685a42c19cd7557a3ac9.zip
Expose node_type and position types.
-rw-r--r--src/vytree.ml2
-rw-r--r--src/vytree.mli4
2 files changed, 6 insertions, 0 deletions
diff --git a/src/vytree.ml b/src/vytree.ml
index a439ec1..6eccc55 100644
--- a/src/vytree.ml
+++ b/src/vytree.ml
@@ -6,6 +6,8 @@ type 'a t = {
type position = Before of string | After of string | Default
+type node_type = Leaf | Tag | Other
+
exception Empty_path
exception Duplicate_child
exception Nonexistent_path
diff --git a/src/vytree.mli b/src/vytree.mli
index e990d1d..d268db4 100644
--- a/src/vytree.mli
+++ b/src/vytree.mli
@@ -4,6 +4,10 @@ exception Empty_path
exception Duplicate_child
exception Nonexistent_path
+type position = Before of string | After of string | Default
+
+type node_type = Leaf | Tag | Other
+
val make : 'a -> string -> 'a t
val make_full : 'a -> string -> ('a t) list -> 'a t