-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (47 loc) · 1.52 KB
/
index.html
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Uiua playground</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
</head>
<body>
<pre style="white-space: pre-wrap">
<code class="language-uiua">
# Numbers
5 6e3 0 3.2 3/4 ¯2/¯4 ¯1.1 η π τ ∞
# Characters
@a @Z @ @\n @\s @\xae @\x1F @\u2665 @\u{1f600}
# Arrays
[] [1 2 3] 1_2_3 [1_2 3_4]
{} {1 {2 3}}
# Strings
"Hello, world!"
"Hello,\sworld!"
"Hello, \"world\"!"
$"Hello _ !" "World"
$ Hello _ !
$$ Hello _ !
# Identifiers
Name Age__1 X y
# Functions
Cube ← ××..
Cube = (××..)
TimesThree ← |1.1 ×3
TimesThree ← |1 ×3
# Glyphs
◠ ⌵ + ⌝ ’ ⍤ ∠ ˜ ◡ ⋯ ∩ □ ⊓ ⊸ ⍩ ⌈ ⑄ ⊛ ℂ ◇ ⊟ ◴ ∂ ♭ ⊙ ÷ ⍢ ↘ . ∵ = ⍖ ⬚ ⌕ ⊢ ¤ : ⌊ ∧ ⊃ ⋅ ≥ > ⊕ ∘ ⊗ ∫ ⍚ ⊂ ▽ ⊣ ⧻ ≤ < ₙ ⦷ ≍ ↥ ∊ ∈ ↧ ◿ × ¯ ¬ ≠ ⌅ ⤚ ⟜ ⤸ ⋕ ⊜ ⊡ ◌ ⁿ ⚂ ⇡ / ⍥ ☇ ↯ ⇌ ⍏ ↻ ⁅ ≡ \\ ⊏ △ ± ∿ ⍆ √ ? - ⨬ ⊞ ↙ ⸮ ⍉ ◹ ⍣ ⧅ ° ⍜ ◰ ⊚ ◫ ⤙
</code>
</pre>
<script type="module">
import hljsDefineUiua from "./src/uiua.ts";
hljs.registerLanguage("uiua", hljsDefineUiua);
hljs.highlightAll();
</script>
</body>
</html>