package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-5.1.0-51.tbz
sha256=0c817cbd92c42ac15fea6e6d975fd3eb3aa31f22b10cca22b3687ffed0e1b092
sha512=a0b85e22b106df7e9448d12977b740f735445640d4a9368591bdf5e67a95b93d5aacf957086c524549e3402faf0916c3f501ba43a631c74d8af4a7c986842c09

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.