diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-01 21:38:15 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2022-06-01 21:38:15 -0400 |
| commit | b813f80bbe1e9249f312a153f9316f3aa2894660 (patch) | |
| tree | 52a2c545c5e8810ae3e08c78e2b33b5b67c4d1d8 /help | |
| parent | 6725dc97c14ae87f7bfac650ad96edb759340aa2 (diff) | |
Add help pages and keybar entries for quote characters
Diffstat (limited to 'help')
| -rw-r--r-- | help/README.md | 2 | ||||
| -rw-r--r-- | help/character.md | 10 | ||||
| -rw-r--r-- | help/string.md | 12 |
3 files changed, 24 insertions, 0 deletions
diff --git a/help/README.md b/help/README.md index 604e37f7..6e074c95 100644 --- a/help/README.md +++ b/help/README.md @@ -96,3 +96,5 @@ | `∞` | [Infinity](infinity.md) | | `@` | [Null Character](nullcharacter.md) | | `#` | [Comment](comment.md) | +| `'` | [Character](character.md) | +| `"` | [String](string.md) | diff --git a/help/character.md b/help/character.md new file mode 100644 index 00000000..7f1e3487 --- /dev/null +++ b/help/character.md @@ -0,0 +1,10 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/character.html).* + +# Single Quote (`'`) + +## `'c'`: Character +[→full documentation](../doc/syntax.md#constants) + +A character literal whose value is the character between quotes. Any character can be used, even `'` and newline. + + 'a'‿'b' diff --git a/help/string.md b/help/string.md new file mode 100644 index 00000000..a8a4741f --- /dev/null +++ b/help/string.md @@ -0,0 +1,12 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/string.html).* + +# Double Quote (`"`) + +## `"str"`: String +[→full documentation](../doc/syntax.md#constants) + +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" + + 2 ⊑ "ab""cd" |
