package melange

  1. Overview
  2. Docs
Toolchain to produce JS from Reason/OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

melange-1.0.0.tbz
sha256=01ff3a2711b3812889313288f9e0c8bfe2e17464b6b85282c5113cfc3b740968
sha512=db9ac4554d0c9a8deabbdcd2ae05653964184916982c746ca794df6e2061444adaa6a0367bc1840825a007be3941643abd824aaff737a431b0e5347f7c558378

doc/melange.js_parser/Js_parser/Flow_sedlexing/index.html

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.