From 0c716e4c6b7c2c44bbfd02b6503cae66af7b7480 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 28 Jan 2022 16:34:41 -0500 Subject: Separate syntax highlighting category for header/body characters ;:? --- docs/spec/primitive.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/spec/primitive.html') diff --git a/docs/spec/primitive.html b/docs/spec/primitive.html index b1c115f2..05ed2dcc 100644 --- a/docs/spec/primitive.html +++ b/docs/spec/primitive.html @@ -87,7 +87,7 @@
  • Before/Bind (โŠธ)
  • After/Bind (โŸœ)
  • -

    The somewhat complicated definition of Valences could be replaced with {๐”ฝ๐•ฉ;๐•จ๐”พ๐•ฉ} using headers. However, reference.bqn uses a simple subset of BQN's syntax that doesn't include headers. Instead, the definition relies on the fact that ๐•จ works like ยท if no left argument is given: (1ห™๐•จ)-0 is 1-0 or 1 if ๐•จ is present and (1ห™ยท)-0 otherwise: this reduces to ยท-0 or 0.

    +

    The somewhat complicated definition of Valences could be replaced with {๐”ฝ๐•ฉ;๐•จ๐”พ๐•ฉ} using headers. However, reference.bqn uses a simple subset of BQN's syntax that doesn't include headers. Instead, the definition relies on the fact that ๐•จ works like ยท if no left argument is given: (1ห™๐•จ)-0 is 1-0 or 1 if ๐•จ is present and (1ห™ยท)-0 otherwise: this reduces to ยท-0 or 0.

    Array properties

    The reference implementations extend Shape (โ‰ข) to atoms as well as arrays, in addition to implementing other properties. In all cases, an atom behaves as if it has shape โŸจโŸฉ. The functions in this section never cause an error.