Skip to content

Commit 9c65bd5

Browse files
authored
Merge pull request #678 from bloomberg/bump
upgrade reason, add more examples, upgrade playground and prepare new…
2 parents 1ce48f4 + 55d8b46 commit 9c65bd5

File tree

18 files changed

+75456
-73917
lines changed

18 files changed

+75456
-73917
lines changed

docs/index.html

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@
488488
<h1><a href="https://github.com/bloomberg/bucklescript">BuckleScript</a> User Manual</h1>
489489
<div class="details">
490490
<span id="author" class="author">Hongbo Zhang</span><br>
491-
<span id="email" class="email"><a href="mailto:[email protected]">[email protected]</a></span><br>
492491
</div>
493492
<div id="toc" class="toc2">
494493
<div id="toctitle">Table of Contents</div>
@@ -584,6 +583,7 @@ <h1><a href="https://github.com/bloomberg/bucklescript">BuckleScript</a> User Ma
584583
<li><a href="#__bs_package_name">-bs-package-name</a></li>
585584
<li><a href="#__bs_packge_output">-bs-packge-output</a></li>
586585
<li><a href="#__bs_gen_tds">-bs-gen-tds</a></li>
586+
<li><a href="#__bs_no_builtin_ppx_ml_bs_no_builtin_ppx_mli">-bs-no-builtin-ppx-ml, -bs-no-builtin-ppx-mli</a></li>
587587
</ul>
588588
</li>
589589
<li><a href="#_how_to_adapt_your_build_system">How to adapt your build system</a></li>
@@ -2677,6 +2677,18 @@ <h3 id="__bs_gen_tds"><a class="anchor" href="#__bs_gen_tds"></a>-bs-gen-tds</h3
26772677
<p>For more options, please see the documentation of <code>bsc -help</code>.</p>
26782678
</div>
26792679
</div>
2680+
<div class="sect2">
2681+
<h3 id="__bs_no_builtin_ppx_ml_bs_no_builtin_ppx_mli"><a class="anchor" href="#__bs_no_builtin_ppx_ml_bs_no_builtin_ppx_mli"></a>-bs-no-builtin-ppx-ml, -bs-no-builtin-ppx-mli</h3>
2682+
<div class="paragraph">
2683+
<p>If users don&#8217;t use any bs specific annotaions, user can explicitly turn it off.
2684+
Another use case is that users can use <code>-ppx</code> explicitly as below:</p>
2685+
</div>
2686+
<div class="listingblock">
2687+
<div class="content">
2688+
<pre class="pygments highlight"><code data-lang="ocaml"><span class="tok-n">bsc</span> <span class="tok-o">-</span><span class="tok-n">c</span> <span class="tok-o">-</span><span class="tok-n">ppx</span> <span class="tok-n">bsppx</span> <span class="tok-o">-</span><span class="tok-n">bs</span><span class="tok-o">-</span><span class="tok-n">no</span><span class="tok-o">-</span><span class="tok-n">builtin</span><span class="tok-o">-</span><span class="tok-n">ppx</span><span class="tok-o">-</span><span class="tok-n">ml</span> <span class="tok-n">c</span><span class="tok-o">.</span><span class="tok-n">ml</span></code></pre>
2689+
</div>
2690+
</div>
2691+
</div>
26802692
</div>
26812693
</div>
26822694
<div class="sect1">
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(* node.js readline class *)
2+
type readline
3+
4+
(* bindings to event handler for 'close' and 'line' events *)
5+
external on :
6+
([`close of unit -> unit
7+
| `line of string -> unit] [@bs.string])
8+
-> 'this = "" [@@bs.send.pipe: readline as 'this]
9+
10+
(* register event handlers *)
11+
let register rl =
12+
rl
13+
|> on (`close (fun event -> () ))
14+
|> on (`line (fun line -> print_endline line))

docs/js-demo/examples/examples.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
"Event Handler" :
77
{ "file" : "event_handler.ml",
88
"eval" : false},
9+
"Event Handler Chaining" :
10+
{
11+
"file" : "event_handler2.ml",
12+
"eval" : false
13+
},
914
"Quick Sort":
1015
{"file" : "quick_sort.ml",
1116
"eval" : true

docs/js-demo/exports.js

Lines changed: 41763 additions & 41199 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/js-demo/stdlib/bs_dict.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
define(["exports"],
3+
function(exports){
4+
'use strict';
5+
6+
7+
8+
})
9+
/* No side effect */

docs/js-demo/stdlib/bs_node_module.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
define(["exports"],
3+
function(exports){
4+
'use strict';
5+
6+
7+
8+
})
9+
/* No side effect */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
'use strict';
2+
define(["exports"],
3+
function(exports){
4+
'use strict';
5+
6+
7+
8+
})
9+
/* No side effect */

0 commit comments

Comments
 (0)