package melange

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

Install

Dune Dependency

Authors

Maintainers

Sources

melange-4.0.0-414.tbz
sha256=3c82c3397608c8bbdfbf5b12c0fe9649d0a25dfa5876772ded6330de31c12c93
sha512=7abf9eab5dacac169ac82698685c3f46ff6c5219cba6b6d14abf915029d89559f38ce7f74ef04055fb31805f5d5aeeb74613a65d1d892a40b585153b95725fea

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

Module Js_parser.Parser_commonSource

Sourcetype pattern_errors = {
  1. if_expr : (Loc.t * Parse_error.t) list;
  2. if_patt : (Loc.t * Parse_error.t) list;
}
Sourcetype pattern_cover =
  1. | Cover_expr of (Loc.t, Loc.t) Flow_ast.Expression.t
  2. | Cover_patt of (Loc.t, Loc.t) Flow_ast.Expression.t * pattern_errors
Sourcemodule type PARSER = sig ... end
Sourceval identifier_name_raw : Parser_env.env -> string

PrivateIdentifier - https://tc39.es/ecma262/#prod-PrivateIdentifier

N.B.: whitespace, line terminators, and comments are not allowed between the # and IdentifierName because PrivateIdentifier is a CommonToken which is considered a single token. See also https://tc39.es/ecma262/#prod-InputElementDiv

Sourceval is_simple_parameter_list : ('a * ('b, 'c) Flow_ast.Function.Params.t') -> bool

The operation IsSimpleParamterList https://tc39.es/ecma262/#sec-static-semantics-issimpleparameterlist

Sourceval is_labelled_function : ('a * ('a, 'b) Js_parser__Flow_ast.Statement.t') -> bool

* The abstract operation IsLabelledFunction * * https://tc39.github.io/ecma262/#sec-islabelledfunction

Sourceval assert_identifier_name_is_identifier : ?restricted_error:Parse_error.t -> Parser_env.env -> (Loc.t * 'a Flow_ast.Identifier.t') -> unit

https://tc39.es/ecma262/#sec-exports-static-semantics-early-errors

Sourceval with_loc : ?start_loc:Loc.t -> (Parser_env.env -> 'a) -> Parser_env.env -> Loc.t * 'a
Sourceval with_loc_opt : ?start_loc:Loc.t -> (Parser_env.env -> 'a option) -> Parser_env.env -> (Loc.t * 'a) option
Sourceval with_loc_extra : ?start_loc:Loc.t -> (Parser_env.env -> 'a * 'b) -> Parser_env.env -> (Loc.t * 'a) * 'b
Sourceval is_start_of_type_guard : Js_parser__Parser_env.env -> bool
OCaml

Innovation. Community. Security.