aboutsummaryrefslogtreecommitdiff
path: root/lib/lexbuf.mli
diff options
context:
space:
mode:
authorChimrod <>2023-09-29 09:05:45 +0200
committerChimrod <>2023-09-29 10:00:21 +0200
commit5e0b521a2ccce4bd19cf5d08176616f760180c11 (patch)
tree75319ef16d46f02f0e4057cf44f9d97528d1a994 /lib/lexbuf.mli
parenta5ca18d209e3e85c79c38ea0256e68de19fac91f (diff)
Made the lexer buffer abstract
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