Style tweaks

This commit is contained in:
Tony Garnock-Jones 2022-06-11 10:14:14 +02:00
parent 832fec6c43
commit 9668bcbb03
1 changed files with 6 additions and 6 deletions

View File

@ -14,12 +14,12 @@ For a value `v`, we write `«v»` for the binary encoding of `v`.
«#f» = [0xA0]
«#t» = [0xA1]
«F» when F ∈ Float = [0xA2] ++ binary32(F)
«D» when D ∈ Double = [0xA2] ++ binary64(D)
«x» when x ∈ SignedInteger = [0xA3] ++ intbytes(x)
«S» = [0xA4] ++ utf8(S) if S ∈ String
[0xA5] ++ S if S ∈ ByteString
[0xA6] ++ utf8(S) if S ∈ Symbol
«F» = [0xA2] ++ binary32(F) if F ∈ Float
«D» = [0xA2] ++ binary64(D) if D ∈ Double
«x» = [0xA3] ++ intbytes(x) if x ∈ SignedInteger
«S» = [0xA4] ++ utf8(S) if S ∈ String
[0xA5] ++ S if S ∈ ByteString
[0xA6] ++ utf8(S) if S ∈ Symbol
The functions `binary32(F)` and `binary64(D)` yield big-endian 4- and
8-byte IEEE 754 binary representations of `F` and `D`, respectively.