aboutsummaryrefslogtreecommitdiff
path: root/lib/lexer.mli
diff options
context:
space:
mode:
authorChimrod <>2023-09-28 09:16:56 +0200
committerChimrod <>2023-09-29 10:00:21 +0200
commit7fc4021d888b4f16f8fa87c0ea1df68d3806df64 (patch)
treeec06b304b6e32a086aaeb4a1e866a255a199bc1a /lib/lexer.mli
parent5dc0c5defdd7ebb152a00e8b2895787b54931779 (diff)
Renamed the lexer
Diffstat (limited to 'lib/lexer.mli')
-rw-r--r--lib/lexer.mli10
1 files changed, 10 insertions, 0 deletions
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 *)