From ae513293cca5fb30dd59874e4e00c0eecab596f6 Mon Sep 17 00:00:00 2001 From: razetime Date: Thu, 20 Jan 2022 08:31:40 +0530 Subject: fix more h2 errors, generate index for repl help --- help/genhelp.bqn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 help/genhelp.bqn (limited to 'help/genhelp.bqn') diff --git a/help/genhelp.bqn b/help/genhelp.bqn new file mode 100755 index 00000000..cf50c939 --- /dev/null +++ b/help/genhelp.bqn @@ -0,0 +1,19 @@ +#!/usr/bin/env cbqn + +thing ← { + data ← •FLines 𝕩 + names ← (⊣∾", "∾⊢)´{(¬·∧`' '⊸=)⊸/⌾⌽(2+⊑/':'=𝕩)↓𝕩}¨("## "≡3⊸↑)¨⊸/data + t‿d ← ∾/¨(⊏data)=¨"()" + sym ← "`"∾˜"`"∾{'`':"` ` `"; '|':"\"∾𝕩 ; 𝕩}¯3⊑2⊑data + •Show "| " ∾ sym ∾ " | [" ∾ names ∾ "]("∾((t+1)↓d↑⊑data)∾ ") |" +}¨•args + +head ← ⟨ +"*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/index.html).*" +⟨⟩ +"# REPL Help" +⟨⟩ +"| Symbol | Link |" +"|--------|------|" +⟩ +"index.md.tmp" •FLines head ∾ thing #rename once you have a proper file. \ No newline at end of file -- cgit v1.2.3