diff options
Diffstat (limited to 'lib/lexer.mli')
-rw-r--r-- | lib/lexer.mli | 10 |
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 *) |