diff options
author | Chimrod <> | 2023-09-29 09:05:45 +0200 |
---|---|---|
committer | Chimrod <> | 2023-09-29 10:00:21 +0200 |
commit | 5e0b521a2ccce4bd19cf5d08176616f760180c11 (patch) | |
tree | 75319ef16d46f02f0e4057cf44f9d97528d1a994 /lib/lexbuf.mli | |
parent | a5ca18d209e3e85c79c38ea0256e68de19fac91f (diff) |
Made the lexer buffer abstract
Diffstat (limited to 'lib/lexbuf.mli')
-rw-r--r-- | lib/lexbuf.mli | 8 |
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 |