package ocp-build

  1. Overview
  2. Docs
type token =
  1. | Kwd of string
  2. | Ident of string
  3. | Int of int
  4. | Float of float
  5. | String of string
  6. | Char of char
type error =
  1. | Illegal_character of char
  2. | Unterminated_comment
  3. | Unterminated_string
  4. | Unterminated_string_in_comment
exception Error of error * int * int
val make_lexer : string list -> Lexing.lexbuf -> token option
val report_error : Format.formatter -> error -> unit