aboutsummaryrefslogtreecommitdiff
path: root/lib/lexer.mli
blob: 41c7c11d0ecb158dbd59f82058764a01cbb63f61 (plain)
1
2
3
4
5
6
7
8
9
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 *)