package melange

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

Module Js_parser.Flow_sedlexingSource

Sourceexception InvalidCodepoint of int

This is a module provides the minimal Sedlexing suppport It is mostly a subset of Sedlexing with two functions for performance reasons:

  • Utf8.lexeme_to_buffer
  • Utf8.lexeme_to_buffer2
Sourceexception MalFormed
Sourcetype apos = int
Sourcetype lexbuf
Sourceval lexbuf_clone : lexbuf -> lexbuf
Sourceval from_int_array : int array -> lexbuf
Sourceval new_line : lexbuf -> unit
Sourceval next : lexbuf -> Uchar.t option
Sourceval mark : lexbuf -> int -> unit
Sourceval start : lexbuf -> unit
Sourceval backtrack : lexbuf -> int
Sourceval rollback : lexbuf -> unit
Sourceval lexeme_start : lexbuf -> int
Sourceval lexeme_end : lexbuf -> int
Sourceval loc : lexbuf -> int * int
Sourceval lexeme_length : lexbuf -> int
Sourceval sub_lexeme : lexbuf -> int -> int -> int array
Sourceval lexeme : lexbuf -> int array
Sourcemodule Utf8 : sig ... end
Sourceval string_of_utf8 : int array -> string
Sourceval current_code_point : lexbuf -> int

Two APIs used when we want to do customize lexing instead of using the regex based engine

Sourceval backoff : lexbuf -> int -> unit
Sourceval set_lexeme_start : lexbuf -> int -> unit
OCaml

Innovation. Community. Security.