From 7fc4021d888b4f16f8fa87c0ea1df68d3806df64 Mon Sep 17 00:00:00 2001 From: Chimrod <> Date: Thu, 28 Sep 2023 09:16:56 +0200 Subject: Renamed the lexer --- lib/lexer.mli | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/lexer.mli (limited to 'lib/lexer.mli') diff --git a/lib/lexer.mli b/lib/lexer.mli new file mode 100644 index 0000000..41c7c11 --- /dev/null +++ b/lib/lexer.mli @@ -0,0 +1,10 @@ +module type Encoding = sig + val lexeme : Sedlexing.lexbuf -> string +end + +val lexer : + (module Encoding) -> + Sedlexing.lexbuf -> + unit -> + Tokens.token * Lexing.position * Lexing.position +(** Apply the lexer to the source *) -- cgit v1.2.3