Module Js_lexer

type kind =
  1. | Keyword of string
  2. | Name of string
  3. | Number of float
  4. | String of string
  5. | Punct of string
  6. | Regex of string * string
  7. | Eof
type token = {
  1. kind : kind;
  2. line : int;
  3. newline_before : bool;
}
exception Error of int * string
val keywords : string list
val tokenize : string -> token list
val to_string : kind -> string