package melange

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-7.0.0-414.tbz
sha256=2d35ea2a1fc8aae9a76b81154626e91dd8c93773b1829cbce7081911cd47f43f
sha512=09e1c3f6ef9572e94882abbce5df7e348c99f0452d23ea3fe75ad3d7df0201adfcb22139a5876e495121eb08c97340a5935633cb1a4b8f019ddf46c5a5258f9a

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