blob: aa0032ec2df6d4306675d2f414c9a00c93a48316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>BQN online REPL</title>
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="style.css" rel="stylesheet"/>
<style>
li { margin:0.7em 0; }
textarea { padding:0.2em; }
.perm, .count { font-size:0.7em; margin:-0.2em 1.6em 0 0; }
.run, .perm { float:right; }
.count { float:left; opacity:0.6; }
.rslt { border:none; background:none; min-height:8em; }
</style>
</head>
<body>
<a href="https://mlochbaum.github.io/BQN/" title='BQN homepage'>BQN</a>
<div class="cont">
<div class="kb"></div>
<textarea class="code" rows="8" autofocus></textarea>
<div class="count"></div>
<input class="run" type="submit" value="Run (or shift-enter)"/>
<a class="perm" href="#" title="Link with the code above embedded">permalink</a>
</div>
<pre class="rslt"></pre>
<p>
Notes:
<ul>
<li>You can type special characters with a back<em>slash</em> prefix, as shown by hovering over the character bar above. Documentation links for primitives are <a href="doc/primitive.html">here</a>.</li>
<li>Any modifier with enter will execute (not just shift).</li>
<li>BQN uses <code class="Ligature">‿</code> (backslash-space) for stranding, and not juxtaposition. If you don't know what went wrong, check for this first!</li>
<li>This implementation is still WIP, and in particular some syntax errors are not checked (which can cause an "Internal compiler error" later). Support for function headers and multiple bodies is missing, and Under (<code class="Modifier2">⌾</code>) only works for a small class of structural functions. Performance is bad.</li>
</ul>
</p>
<script src="bqn.js"></script>
<script src="repl.js"></script>
</body>
</html>
|