Skip to content

Commit dfad980

Browse files
committed
continue tweak wording
1 parent 46f0954 commit dfad980

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+156
-149
lines changed

jscomp/bsb/bsb_templates.ml

+11-11
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ let root = ([
7171
\ \"watch\": \"bsb -make-world -w\"\n\
7272
\ },\n\
7373
\ \"keywords\": [\n\
74-
\ \"BuckleScript\"\n\
74+
\ \"ReScript\"\n\
7575
\ ],\n\
7676
\ \"author\": \"\",\n\
7777
\ \"license\": \"MIT\",\n\
@@ -158,7 +158,7 @@ let root = ([
158158
\ \"clean\": \"bsb -clean-world\"\n\
159159
\ },\n\
160160
\ \"keywords\": [\n\
161-
\ \"BuckleScript\"\n\
161+
\ \"ReScript\"\n\
162162
\ ],\n\
163163
\ \"author\": \"\",\n\
164164
\ \"license\": \"MIT\",\n\
@@ -254,7 +254,7 @@ let root = ([
254254
\ \"watch\": \"bsb -make-world -w\"\n\
255255
\ },\n\
256256
\ \"keywords\": [\n\
257-
\ \"BuckleScript\"\n\
257+
\ \"ReScript\"\n\
258258
\ ],\n\
259259
\ \"author\": \"\",\n\
260260
\ \"license\": \"MIT\",\n\
@@ -267,7 +267,7 @@ let root = ([
267267
File("demo.ml",
268268
"\n\
269269
\n\
270-
let () = Js.log \"Hello, BuckleScript\""
270+
let () = Js.log \"Hello, ReScript\""
271271
);
272272
File("test.cpp.ml",
273273
"\n\
@@ -315,7 +315,7 @@ let root = ([
315315
\ \"start\": \"bsb -make-world -w\"\n\
316316
\ },\n\
317317
\ \"keywords\": [\n\
318-
\ \"BuckleScript\"\n\
318+
\ \"ReScript\"\n\
319319
\ ],\n\
320320
\ \"author\": \"\",\n\
321321
\ \"license\": \"MIT\",\n\
@@ -407,7 +407,7 @@ let root = ([
407407
\ \"watch\": \"bsb -make-world -w\"\n\
408408
\ },\n\
409409
\ \"keywords\": [\n\
410-
\ \"BuckleScript\"\n\
410+
\ \"ReScript\"\n\
411411
\ ],\n\
412412
\ \"author\": \"\",\n\
413413
\ \"license\": \"MIT\",\n\
@@ -420,7 +420,7 @@ let root = ([
420420
File("demo.ml",
421421
"\n\
422422
\n\
423-
let () = Js.log \"Hello, BuckleScript\""
423+
let () = Js.log \"Hello, ReScript\""
424424
)
425425
])
426426
]);
@@ -588,7 +588,7 @@ let root = ([
588588
\ \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n\
589589
\ },\n\
590590
\ \"keywords\": [\n\
591-
\ \"BuckleScript\",\n\
591+
\ \"ReScript\",\n\
592592
\ \"ReasonReact\",\n\
593593
\ \"reason-react\"\n\
594594
\ ],\n\
@@ -926,7 +926,7 @@ let root = ([
926926
])
927927
]);
928928
File("watcher.js",
929-
"// This is our simple, robust watcher. It hooks into the BuckleScript build\n\
929+
"// This is our simple, robust watcher. It hooks into the ReScript build\n\
930930
// system to listen for build events.\n\
931931
// See package.json's `start` script and `./node_modules/.bin/bsb --help`\n\
932932
\n\
@@ -1046,7 +1046,7 @@ let root = ([
10461046
\ \"test\": \"echo \\\"Error: no test specified\\\" && exit 1\"\n\
10471047
\ },\n\
10481048
\ \"keywords\": [\n\
1049-
\ \"BuckleScript\",\n\
1049+
\ \"ReScript\",\n\
10501050
\ \"ReasonReact\",\n\
10511051
\ \"reason-react\"\n\
10521052
\ ],\n\
@@ -1761,7 +1761,7 @@ let root = ([
17611761
\ \"watch\": \"bsb -make-world -w -ws _\"\n\
17621762
\ },\n\
17631763
\ \"keywords\": [\n\
1764-
\ \"BuckleScript\"\n\
1764+
\ \"ReScript\"\n\
17651765
\ ],\n\
17661766
\ \"author\": \"\",\n\
17671767
\ \"license\": \"MIT\",\n\

jscomp/bsb/templates/basic-reason/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"clean": "bsb -clean-world"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",

jscomp/bsb/templates/basic/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"watch": "bsb -make-world -w"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",

jscomp/bsb/templates/generator/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"watch": "bsb -make-world -w"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
let () = Js.log "Hello, BuckleScript"
3+
let () = Js.log "Hello, ReScript"

jscomp/bsb/templates/minimal/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "bsb -make-world -w"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",

jscomp/bsb/templates/node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"watch": "bsb -make-world -w"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",

jscomp/bsb/templates/node/src/demo.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22

3-
let () = Js.log "Hello, BuckleScript"
3+
let () = Js.log "Hello, ReScript"

jscomp/bsb/templates/react-hooks/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},
1111
"keywords": [
12-
"BuckleScript",
12+
"ReScript",
1313
"ReasonReact",
1414
"reason-react"
1515
],
+15-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
// This is our simple, robust watcher. It hooks into the BuckleScript build
1+
// This is our simple, robust watcher. It hooks into the ReScript build
22
// system to listen for build events.
33
// See package.json's `start` script and `./node_modules/.bin/bsb --help`
44

55
// Btw, if you change this file and reload the page, your browser cache
66
// _might_ not pick up the new version. If you're in Chrome, do Force Reload.
77

88
var websocketReloader;
9-
var LAST_SUCCESS_BUILD_STAMP = localStorage.getItem('LAST_SUCCESS_BUILD_STAMP') || 0;
9+
var LAST_SUCCESS_BUILD_STAMP =
10+
localStorage.getItem("LAST_SUCCESS_BUILD_STAMP") || 0;
1011
// package.json's `start` script's `bsb -ws _` means it'll pipe build events
1112
// through a websocket connection to a default port of 9999. This is
1213
// configurable, e.g. `-ws 5000`
@@ -15,25 +16,31 @@ var webSocketPort = 9999;
1516
function setUpWebSocket() {
1617
if (websocketReloader == null || websocketReloader.readyState !== 1) {
1718
try {
18-
websocketReloader = new WebSocket(`ws://${window.location.hostname}:${webSocketPort}`);
19+
websocketReloader = new WebSocket(
20+
`ws://${window.location.hostname}:${webSocketPort}`
21+
);
1922
websocketReloader.onmessage = (message) => {
2023
var newData = JSON.parse(message.data).LAST_SUCCESS_BUILD_STAMP;
2124
if (newData > LAST_SUCCESS_BUILD_STAMP) {
2225
LAST_SUCCESS_BUILD_STAMP = newData;
23-
localStorage.setItem('LAST_SUCCESS_BUILD_STAMP', LAST_SUCCESS_BUILD_STAMP);
26+
localStorage.setItem(
27+
"LAST_SUCCESS_BUILD_STAMP",
28+
LAST_SUCCESS_BUILD_STAMP
29+
);
2430
// Refresh the page! This will naturally re-run everything,
2531
// including our moduleserve which will re-resolve all the modules.
2632
// No stable build!
2733
location.reload(true);
2834
}
29-
30-
}
35+
};
3136
} catch (exn) {
32-
console.error("The watcher tried to connect to web socket, but failed. Here's the message:");
37+
console.error(
38+
"The watcher tried to connect to web socket, but failed. Here's the message:"
39+
);
3340
console.error(exn);
3441
}
3542
}
36-
};
43+
}
3744

3845
setUpWebSocket();
3946
setInterval(setUpWebSocket, 2000);

jscomp/bsb/templates/react-starter/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test": "echo \"Error: no test specified\" && exit 1"
1212
},
1313
"keywords": [
14-
"BuckleScript",
14+
"ReScript",
1515
"ReasonReact",
1616
"reason-react"
1717
],

jscomp/bsb/templates/tea/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"watch": "bsb -make-world -w -ws _"
88
},
99
"keywords": [
10-
"BuckleScript"
10+
"ReScript"
1111
],
1212
"author": "",
1313
"license": "MIT",

jscomp/core/js_dump.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* BuckleScript compiler
1+
(* ReScript compiler
22
* Copyright (C) 2015-2016 Bloomberg Finance L.P.
33
* http://www.ocsigen.org/js_of_ocaml/
44
* Copyright (C) 2010 Jérôme Vouillon

jscomp/core/js_dump.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(* BuckleScript compiler
1+
(* ReScript compiler
22
* Copyright (C) 2015-2016 Bloomberg Finance L.P.
33
* http://www.ocsigen.org/js_of_ocaml/
44
* Copyright (C) 2010 Jérôme Vouillon

jscomp/core/js_op.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type binop =
6565
| Mod
6666

6767
(**
68-
note that we don't need raise [Div_by_zero] in BuckleScript
68+
note that we don't need raise [Div_by_zero] in ReScript
6969
7070
{[
7171
let add x y = x + y (* | 0 *)

jscomp/core/lam_compile_main.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131

32-
(** BuckleScript entry point in the OCaml compiler *)
32+
(** ReScript entry point in the OCaml compiler *)
3333

3434
(** Compile and register the hook of function to compile a lambda to JS IR
3535
*)

jscomp/ext/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
This folder hosts some of the utils we use in BuckleScript, internally.
1+
This folder hosts some of the utils we use in ReScript, internally.

jscomp/ext/ext_buffer.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
concatenated pairwise).
2020
*)
2121

22-
(* BuckleScript customization: customized for efficient digest *)
22+
(* ReScript customization: customized for efficient digest *)
2323

2424
type t
2525
(** The abstract type of buffers. *)

jscomp/main/builtin_cmj_datasets.ml

+4-4
Large diffs are not rendered by default.

jscomp/main/js_main.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ let print_standard_library () =
207207
exit 0
208208

209209
let bs_version_string =
210-
"BuckleScript " ^ Bs_version.version ^
210+
"ReScript " ^ Bs_version.version ^
211211
" ( Using OCaml:" ^ Config.version ^ " )"
212212

213213
let print_version_string () =

jscomp/others/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Belt is a data structures and utilities library that ships with BuckleScript and bsb-native, optimized for the web.
1+
Belt is a data structures and utilities library that ships with ReScript and bsb-native, optimized for the web.
22

33
```ocaml
44
let a = Belt.Array.make 10 0

jscomp/others/belt_Map.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
(* under the terms of the GNU Library General Public License, with *)
1010
(* the special exception on linking described in file ../LICENSE. *)
1111
(* *)
12-
(* Adapted by authors of BuckleScript without using functors *)
12+
(* Adapted by authors of ReScript without using functors *)
1313
(***********************************************************************)
1414

1515
(** specalized when key type is [int], more efficient

jscomp/others/belt_Map.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
(* under the terms of the GNU Library General Public License, with *)
1010
(* the special exception on linking described in file ../LICENSE. *)
1111
(* *)
12-
(* Adapted by authors of BuckleScript without using functors *)
12+
(* Adapted by authors of ReScript without using functors *)
1313
(***********************************************************************)
1414

1515
(** A {i immutable} sorted map module which allows customize {i compare} behavior.

jscomp/others/belt_MutableQueue.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
(* special exception on linking described in the file LICENSE. *)
1414
(* *)
1515
(**************************************************************************)
16-
(* Adapted significantly by BuckleScript Authors *)
16+
(* Adapted significantly by ReScript Authors *)
1717
module A = Belt_Array
1818

1919
type 'a node = {

jscomp/others/belt_MutableQueue.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
(* special exception on linking described in the file LICENSE. *)
1313
(* *)
1414
(**************************************************************************)
15-
(* Adapted significantly by BuckleScript Authors *)
15+
(* Adapted significantly by ReScript Authors *)
1616
(** First-in first-out queues.
1717
1818
This module implements queues (FIFOs), with in-place modification.

jscomp/others/belt_internalAVLtree.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
(* the special exception on linking described in file ../LICENSE. *)
1111
(* *)
1212
(***********************************************************************)
13-
(** Almost rewritten by authors of BuckleScript *)
13+
(** Almost rewritten by authors of ReScript *)
1414

1515
[@@@bs.config {flags = [|"-bs-noassertfalse" |] }]
1616
type ('k, 'v) node = {

jscomp/others/intro.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{!indexlist}
22

3-
{1 Libraries shipped with BuckleScript}
3+
{1 Libraries shipped with ReScript}
44

5-
BuckleScript is mostly a compiler, but it does ship some libraries for users' convenience
5+
ReScript is mostly a compiler, but it does ship some libraries for users' convenience
66

77
{2 4 libraries}
88

@@ -19,9 +19,9 @@ For example
1919

2020
{!Belt}
2121

22-
The BuckleScript standard library ({b beta}).
22+
The ReScript standard library ({b beta}).
2323

24-
BuckleScript also ships the vanilla OCaml standard library.
24+
ReScript also ships the vanilla OCaml standard library.
2525
@see <https://caml.inria.fr/pub/docs/manual-ocaml-4.02/stdlib.html> OCaml standard library
2626

2727
{!Node}

jscomp/others/js_cast.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
2929
Different OCaml types might share the same represention in the
30-
BuckleScript runtime; while this is a compiler internal knowledge,
30+
ReScript runtime; while this is a compiler internal knowledge,
3131
applications might benefit from having a safe and zero cost
3232
conversion between those types.
3333

jscomp/others/js_json.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ external array : t array -> t = "%identity"
109109
(** [array_ a] makes a JSON array of the [Js.Json.t array] [a] *)
110110

111111
(** The functions below are specialized for specific array type which
112-
happened to be already JSON object in the BuckleScript runtime. Therefore
112+
happened to be already JSON object in the ReScript runtime. Therefore
113113
they are more efficient (constant time rather than linear conversion). *)
114114

115115
external stringArray : string array -> t = "%identity"

jscomp/others/js_re.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
(** Provides bindings for JavaScript Regular Expressions
2626
2727
{4 Syntax sugar}
28-
BuckleScript provides a bit of syntax sugar for regex literals: [\[%re "/foo/g"\]]
28+
ReScript provides a bit of syntax sugar for regex literals: [\[%re "/foo/g"\]]
2929
will evaluate to a {! t} that can be passed around and used like usual.
3030
3131
{b Note:} This is not an immutable API. A RegExp object with the [global] ("g")

jscomp/outcome_printer/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Hello! This is the subdirectory for making BuckleScript's compiler errors output in Reason syntax. For more information on how it's implemented, please see the header comment in the file itself.
1+
Hello! This is the subdirectory for making ReScript's compiler errors output in Reason syntax. For more information on how it's implemented, please see the header comment in the file itself.

0 commit comments

Comments
 (0)