package melange

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-6.0.1-54.tbz
sha256=6d5e530fcaa52edef041d9bd5b44f28430c1145a3f3dd2571a08ac727b011667
sha512=d18244080d0af70eca885bbc11357add73f5a3071c7dac241b7c78f7e451e0eea435aaa61aa87931a0f488c67e4c8d7b6945d0d41b50e506c1b6ab6fc6c4d1d4

doc/src/melange.js_parser/parse_error_utils.ml.html

Source file parse_error_utils.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
(*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *)

let camelize str =
  match String.split_on_char '-' str with
  | [] -> str
  | [str] -> str
  | hd :: rest ->
    let parts = hd :: List.map String.capitalize_ascii rest in
    String.concat "" parts