From b813f80bbe1e9249f312a153f9316f3aa2894660 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Wed, 1 Jun 2022 21:38:15 -0400 Subject: Add help pages and keybar entries for quote characters --- docs/help/character.html | 13 +++++++++++++ docs/help/index.html | 8 ++++++++ docs/help/string.html | 16 ++++++++++++++++ docs/keymap.html | 4 ++-- docs/repl.js | 2 +- 5 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 docs/help/character.html create mode 100644 docs/help/string.html (limited to 'docs') diff --git a/docs/help/character.html b/docs/help/character.html new file mode 100644 index 00000000..7a29a0f5 --- /dev/null +++ b/docs/help/character.html @@ -0,0 +1,13 @@ + + + + BQN: Single Quote (') + + +

Single Quote (')

+

'c': Character

+

→full documentation

+

A character literal whose value is the character between quotes. Any character can be used, even ' and newline.

+↗️
    'a''b'
+"ab"
+
diff --git a/docs/help/index.html b/docs/help/index.html index 46b5e791..d6110440 100644 --- a/docs/help/index.html +++ b/docs/help/index.html @@ -381,5 +381,13 @@ # Comment + +' +Character + + +" +String + diff --git a/docs/help/string.html b/docs/help/string.html new file mode 100644 index 00000000..d7d1e74a --- /dev/null +++ b/docs/help/string.html @@ -0,0 +1,16 @@ + + + + BQN: Double Quote (") + + +

Double Quote (")

+

"str": String

+

→full documentation

+

Literal notation for a string, or list of characters. Double quotes must be escaped by writing them twice. Any other characters can be included directly.

+↗️
    2  "string"
+'r'
+
+    2  "ab""cd"
+'"'
+
diff --git a/docs/keymap.html b/docs/keymap.html index ad1105bf..8b190dc7 100644 --- a/docs/keymap.html +++ b/docs/keymap.html @@ -24,8 +24,8 @@ │Tab │Q ↙ │W 𝕎 │E │R 𝕣 │T │Y │U │I │O │P ⍳ │{ } | │ │ │q │w 𝕨 │e │r │t │y │u │i │o │p π │[ │] │\ │ ├───────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴──────┤ -│Caps │A ↖ │S 𝕊 │D │F 𝔽 │G 𝔾 │H « │J │K │L »: ·" ˙ │Enter │ -│lock │a │s 𝕤 │d │f 𝕗 │g 𝕘 │h │j │k │l ; ' │ │ +│Caps │A ↖ │S 𝕊 │D │F 𝔽 │G 𝔾 │H « │J │K │L »: ·" ˙ │Enter │ +│lock │a │s 𝕤 │d │f 𝕗 │g 𝕘 │h │j │k │l ; ' │ │ ├────────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──────────┤ │Shift │Z │X 𝕏 │C │V │B │N │M < > ? │Shift │ │ │z │x 𝕩 │c │v │b │n │m , . / │ │ diff --git a/docs/repl.js b/docs/repl.js index 064e6ded..daff469d 100644 --- a/docs/repl.js +++ b/docs/repl.js @@ -159,7 +159,7 @@ let typeChar = (t, c, ev) => { } let syncls={ v:"Value", f:"Function", m:"Modifier", d:"Modifier2", n:"Number", g:"Gets", p:"Paren", b:"Bracket", k:"Brace", h:"Head", l:"Ligature", n:"Nothing", s:"Separator", c:"Comment", a:"String" }; -let keydesc='f+Conjugate;Add_f-Negate;Subtract_f×Sign;Multiply_f÷Reciprocal;Divide_f⋆Exponential;Power_f√Square Root;Root_f⌊Floor;Minimum_f⌈Ceiling;Maximum_f∧Sort Up;And_f∨Sort Down;Or_f¬Not;Span_f|Absolute Value;Modulus_f≤Less Than or Equal to_fMerge;Greater Than_f≥Greater Than or Equal to_f=Rank;Equals_f≠Length;Not Equals_f≡Depth;Match_f≢Shape;Not Match_f⊣Identity;Left_f⊢Identity;Right_f⥊Deshape;Reshape_f∾Join;Join to_f≍Solo;Couple_f⋈Enlist;Pair_f↑Prefixes;Take_f↓Suffixes;Drop_f↕Range;Windows_f«Shift Before_f»Shift After_f⌽Reverse;Rotate_f⍉Transpose;Reorder axes_f/Indices;Replicate_f⍋Grade Up;Bins Up_f⍒Grade Down;Bins Down_f⊏First Cell;Select_f⊑First;Pick_f⊐Classify;Index of_f⊒Occurrence Count;Progressive Index of_f∊Mark First;Member of_f⍷Deduplicate;Find_f⊔Group Indices;Group_f!Assert;Assert with message_m˙Constant_m˜Self/Swap_d∘Atop_d○Over_d⊸Before/Bind_d⟜After/Bind_d⌾Under_d⊘Valences_d◶Choose_d⎊Catch_d⎉Rank_m˘Cells_d⚇Depth_m¨Each_m⌜Table_d⍟Repeat_m⁼Undo_m´Fold_m˝Insert_m`Scan_g←Define_g⇐Export_g↩Change_s⋄Separator_s,Separator_v.Namespace field_p(Begin expression_p)End expression_k{Begin block_k}End block_h;Next body_h:Header_h?Predicate_b⟨Begin list_b⟩End list_l‿Strand_n·Nothing_v•System_v𝕨Left argument_f𝕎Left argument (as function)_v𝕩Right argument_f𝕏Right argument (as function)_v𝕗Modifier left operand (as subject)_f𝔽Modifier left operand_v𝕘2-modifier right operand (as subject)_f𝔾2-modifier right operand_v𝕤Current function (as subject)_f𝕊Current function_m𝕣Current modifier_n¯Minus_nπPi_n∞Infinity_a@Null character_c#Comment'.split(/[\n_]/); +let keydesc='f+Conjugate;Add_f-Negate;Subtract_f×Sign;Multiply_f÷Reciprocal;Divide_f⋆Exponential;Power_f√Square Root;Root_f⌊Floor;Minimum_f⌈Ceiling;Maximum_f∧Sort Up;And_f∨Sort Down;Or_f¬Not;Span_f|Absolute Value;Modulus_f≤Less Than or Equal to_fMerge;Greater Than_f≥Greater Than or Equal to_f=Rank;Equals_f≠Length;Not Equals_f≡Depth;Match_f≢Shape;Not Match_f⊣Identity;Left_f⊢Identity;Right_f⥊Deshape;Reshape_f∾Join;Join to_f≍Solo;Couple_f⋈Enlist;Pair_f↑Prefixes;Take_f↓Suffixes;Drop_f↕Range;Windows_f«Shift Before_f»Shift After_f⌽Reverse;Rotate_f⍉Transpose;Reorder axes_f/Indices;Replicate_f⍋Grade Up;Bins Up_f⍒Grade Down;Bins Down_f⊏First Cell;Select_f⊑First;Pick_f⊐Classify;Index of_f⊒Occurrence Count;Progressive Index of_f∊Mark First;Member of_f⍷Deduplicate;Find_f⊔Group Indices;Group_f!Assert;Assert with message_m˙Constant_m˜Self/Swap_d∘Atop_d○Over_d⊸Before/Bind_d⟜After/Bind_d⌾Under_d⊘Valences_d◶Choose_d⎊Catch_d⎉Rank_m˘Cells_d⚇Depth_m¨Each_m⌜Table_d⍟Repeat_m⁼Undo_m´Fold_m˝Insert_m`Scan_g←Define_g⇐Export_g↩Change_s⋄Separator_s,Separator_v.Namespace field_p(Begin expression_p)End expression_k{Begin block_k}End block_h;Next body_h:Header_h?Predicate_b⟨Begin list_b⟩End list_l‿Strand_n·Nothing_v•System_v𝕨Left argument_f𝕎Left argument (as function)_v𝕩Right argument_f𝕏Right argument (as function)_v𝕗Modifier left operand (as subject)_f𝔽Modifier left operand_v𝕘2-modifier right operand (as subject)_f𝔾2-modifier right operand_v𝕤Current function (as subject)_f𝕊Current function_m𝕣Current modifier_n¯Minus_nπPi_n∞Infinity_a@Null character_a\'Character_a\"String_c#Comment'.split(/[\n_]/); let kk=Array.from('`123456890-=~!@#$%^&*()_+qwertuiop[]QWERTIOP{}asdfghjkl;ASFGHKL:"zxcvbm,./ZXVBM<>? \''); let kv=Array.from('˜˘¨⁼⌜´˝∞¯•÷׬⎉⚇⍟◶⊘⎊⍎⍕⟨⟩√⋆⌽𝕨∊↑∧⊔⊏⊐π←→↙𝕎⍷𝕣⍋⊑⊒⍳⊣⊢⍉𝕤↕𝕗𝕘⊸∘○⟜⋄↖𝕊𝔽𝔾«⌾»·˙⥊𝕩↓∨⌊≡∾≍≠⋈𝕏⍒⌈≢≤≥⇐‿↩'); let keys={}, revkeys={}, primhelp={}, helpurl={}; -- cgit v1.2.3