Js_parser.Flow_sedlexing
This is a module provides the minimal Sedlexing suppport It is mostly a subset of Sedlexing with two functions for performance reasons:
val from_int_array : int array -> lexbuf
val new_line : lexbuf -> unit
val mark : lexbuf -> int -> unit
val start : lexbuf -> unit
val backtrack : lexbuf -> int
val rollback : lexbuf -> unit
val lexeme_start : lexbuf -> int
val lexeme_end : lexbuf -> int
val loc : lexbuf -> int * int
val lexeme_length : lexbuf -> int
val sub_lexeme : lexbuf -> int -> int -> int array
val lexeme : lexbuf -> int array
module Utf8 : sig ... end
val current_code_point : lexbuf -> int
Two APIs used when we want to do customize lexing instead of using the regex based engine
val backoff : lexbuf -> int -> unit
val set_lexeme_start : lexbuf -> int -> unit