package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-5.0.0-52.tbz
sha256=0f28c188cbe7087b9f15ea64f311cc326554fa3ff2102bd5ecccb859e016e164
sha512=9a1f163a31c5715f213240b21f904c7fcee521e8739a612645389a6aefc872f527c2498fc90a4b234dee38cc0cf09fc723a340690b0ae44de8a22d9bc51fee42

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.