aboutsummaryrefslogtreecommitdiff
path: root/docs/try.html
blob: a0bcd4bf931812aabb1df17ef6f975dc03790b69 (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
<!DOCTYPE html>
<html>
<head>
  <meta charset=utf-8>
  <title>BQN online REPL</title>
  <link href="style.css" rel="stylesheet"/>
  <style>
    li { margin:0.7em 0; }
    textarea { padding:0.2em; }
    .perm { font-size:0.7em; margin:-0.2em 1.6em 0 0; }
    .run, .perm { float:right; }
    .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>
    <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 found <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 I am improving error checking and messages now. 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>