package melange

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

melange-7.0.1-414.tbz
sha256=4cbd885db9801068fb59d13b6e08e13fe3fe091dc14716382a90764ee874a8a7
sha512=155d448a0e84e81541fd0989d3a7f4b96c625ff288aeeccfadf7e36751f1188bc295c999cc725fda5ad157150eed33ebc5735d81820b9fc45772bdbf0f6d9b29

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