diff options
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" |
