package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-2.2.0.tbz
sha256=23859d4598ca9e5faac09abd09892d0e6d6afcd727e146ec48978a997a191584
sha512=1ada6f9e81f3fbb388a09752725e0c8b61d2d9b0d1f5c147186870a271766e8353db4115b7b5d3eb2f916ae9a165e2f4480e44b69883c57a3e2420f47e002a19

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

Module Js_parser.Lex_envSource

Sourcemodule Sedlexing = Flow_sedlexing
Sourcetype bol = {
  1. line : int;
  2. offset : int;
}
Sourcetype lex_state = {
  1. lex_errors_acc : (Loc.t * Parse_error.t) list;
}
Sourcetype t = {
  1. lex_source : File_key.t option;
  2. lex_lb : Sedlexing.lexbuf;
  3. lex_bol : bol;
  4. lex_in_comment_syntax : bool;
  5. lex_enable_comment_syntax : bool;
  6. lex_state : lex_state;
  7. lex_last_loc : Loc.t;
}
Sourceval empty_lex_state : lex_state
Sourceval initial_last_loc : Loc.t
Sourceval new_lex_env : File_key.t option -> Sedlexing.lexbuf -> enable_types_in_comments:bool -> t
Sourceval clone : t -> t
Sourceval lexbuf : t -> Sedlexing.lexbuf
Sourceval source : t -> File_key.t option
Sourceval state : t -> lex_state
Sourceval line : t -> int
Sourceval bol_offset : t -> int
Sourceval is_in_comment_syntax : t -> bool
Sourceval is_comment_syntax_enabled : t -> bool
Sourceval in_comment_syntax : bool -> t -> t
Sourceval debug_string_of_lexbuf : 'a -> string
Sourceval debug_string_of_lex_env : t -> string
OCaml

Innovation. Community. Security.