Skip to content

Commit

Permalink
Add lexer.mli
Browse files Browse the repository at this point in the history
  • Loading branch information
eilvelia committed Oct 15, 2023
1 parent ee550d3 commit 52a5fd8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/lexer.mli
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
val main : Sedlexing.lexbuf -> Parser.token
(** Note: Use [main_tokenizer] instead of [Sedlexing.with_tokenizer main]
to keep the string locations correct. *)

val main_tokenizer
: Sedlexing.lexbuf
-> unit -> Parser.token * Lexing.position * Lexing.position
(** The KDL lexer. *)

0 comments on commit 52a5fd8

Please sign in to comment.