aboutsummaryrefslogtreecommitdiff
path: root/lib/lexbuf.mli
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lexbuf.mli')
-rw-r--r--lib/lexbuf.mli8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/lexbuf.mli b/lib/lexbuf.mli
new file mode 100644
index 0000000..cf93c7e
--- /dev/null
+++ b/lib/lexbuf.mli
@@ -0,0 +1,8 @@
+type t
+
+val start : t -> unit
+val buffer : t -> Sedlexing.lexbuf
+val positions : t -> Lexing.position * Lexing.position
+val content : t -> string
+val from_lexbuf : Sedlexing.lexbuf -> t
+val tokenize : (t -> 'a) -> t -> unit -> 'a * Lexing.position * Lexing.position