diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-08-02 12:05:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-08-02 15:11:52 -0700 |
commit | 0452b05f5a78b33d94352c676e021b4a1abfb5f2 (patch) | |
tree | 53ec02b7898b125b88e27121ee74f22456c524b4 /apps/mu.subx | |
parent | 1b79f705b9975a3293fd111c5dc129e887dc01c0 (diff) | |
download | mu-0452b05f5a78b33d94352c676e021b4a1abfb5f2.tar.gz |
6703 - new types: code-point and grapheme
Both have the same size: 4 bytes. So far I've just renamed print-byte to print-grapheme, but it still behaves the same. I'm going to support printing code-points next, but grapheme 'clusters' spanning multiple code-points won't be supported for some time.
Diffstat (limited to 'apps/mu.subx')
-rw-r--r-- | apps/mu.subx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/mu.subx b/apps/mu.subx index cb2d6d71..20f59336 100644 --- a/apps/mu.subx +++ b/apps/mu.subx @@ -412,8 +412,10 @@ Type-id: # (stream (addr array byte)) # some SubX types deliberately left undefined in Mu; they can only be operated on using SubX primitives "stream"/imm32 # 11 "slice"/imm32 # 12 + "code-point"/imm32 # 13; smallest scannable unit from a text stream + "grapheme"/imm32 # 14; smallest printable unit; will eventually be composed of multiple code-points, but currently corresponds 1:1 # Keep Primitive-type-ids in sync if you add types here. - 0/imm32 0/imm32 0/imm32 + 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 0/imm32 |