package tiny_languages

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Js_lexerSource

Sourcetype 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
Sourcetype token = {
  1. kind : kind;
  2. line : int;
  3. newline_before : bool;
}
Sourceexception Error of int * string
Sourceval keywords : string list
Sourceval tokenize : string -> token list
Sourceval to_string : kind -> string