package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-4.0.1-52.tbz
sha256=91494286a42d2d7ef387dd062b6de26ccab223f308a74b0c60b8e43d7f6f7537
sha512=7517c7c651f118f7e2418f58fa97296890ed4623d6fdc801ff7b7abc3ae799142829c537c4dcbb1fec7c15d017cd3f85b527cad1af8b230b3da32474fdfc88df

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.