aboutsummaryrefslogtreecommitdiff
path: root/tutorial
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-01 09:26:43 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-11-01 09:27:21 -0500
commit418f03d389ecc80008c87ef14e9fa153f3e225ef (patch)
tree2afe2ca2ee317c187dc5d98bc55cf046e1950145 /tutorial
parenta3cbe4c5721b6f53bac1a7edbc9137120c6c43e9 (diff)
Commit missing SVG script tutorial/prim.bqn (for primitive infoboxes)
Diffstat (limited to 'tutorial')
-rw-r--r--tutorial/prim.bqn11
1 files changed, 11 insertions, 0 deletions
diff --git a/tutorial/prim.bqn b/tutorial/prim.bqn
new file mode 100644
index 00000000..0b2269e9
--- /dev/null
+++ b/tutorial/prim.bqn
@@ -0,0 +1,11 @@
+# Show keys and names for primitives
+# Input is a list of "glyph%keys%Monad%Dyad" strings
+
+Primitives ← {
+ Row ← {
+ s ← ¯1⊸↓⌾(¯1⊸⊑) ((+`׬)⊸-'%'⊸=)⊸⊔ 𝕩∾" "
+ t ← ⟨0⊸Highlight, ("kbd"Enc"\"⊸∾)⍟≠⟩⊸({𝕎𝕩}¨)⌾(2⊸↑) s
+ "tr" Enc ((3<≠s)◶⟨2⊸/∾∾⟜" colspan='2'"¨,4⊸/⟩ ⟨"td"⟩) Enc¨ t
+ }
+ "table class='primitives'" Enc Row¨ 𝕩
+}