From 4e76f62b0e2058c836ce589086766cc7c7f369ff Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 1 Aug 2022 19:59:49 -0500 Subject: [PATCH] Allow additional letters in identifiers. The added characters are accented roman letters that were added to the Mac OS Roman character set at some time after it was first defined. Some IIGS fonts include them, although others do not. --- Table.asm | 34 +++++++++++++++++----------------- cc.notes | 6 ++++-- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/Table.asm b/Table.asm index d99a951..a3cd7d3 100644 --- a/Table.asm +++ b/Table.asm @@ -240,7 +240,7 @@ charKinds start character set dc i'ch_special' V dc i'illegal' W dc i'letter' X - dc i'illegal' Y + dc i'letter' Y dc i'illegal' Z dc i'illegal' [ dc i'illegal' \ @@ -252,23 +252,23 @@ charKinds start character set dc i'illegal' b dc i'illegal' c dc i'illegal' d - dc i'illegal' e - dc i'illegal' f - dc i'illegal' g - dc i'illegal' h - dc i'illegal' i - dc i'illegal' j - dc i'illegal' k - dc i'illegal' l - dc i'illegal' m - dc i'illegal' n - dc i'illegal' o + dc i'letter' e + dc i'letter' f + dc i'letter' g + dc i'letter' h + dc i'letter' i + dc i'letter' j + dc i'letter' k + dc i'letter' l + dc i'letter' m + dc i'letter' n + dc i'letter' o dc i'illegal' p - dc i'illegal' q - dc i'illegal' r - dc i'illegal' s - dc i'illegal' t - dc i'illegal' u + dc i'letter' q + dc i'letter' r + dc i'letter' s + dc i'letter' t + dc i'letter' u dc i'illegal' v dc i'illegal' w dc i'illegal' x diff --git a/cc.notes b/cc.notes index ef4a7b2..6426ba5 100644 --- a/cc.notes +++ b/cc.notes @@ -1,10 +1,10 @@ -ORCA/C 2.2.0 B6 +ORCA/C 2.2.0 B7 Copyright 1997, Byte Works Inc. Updated by Stephen Heumann and Kelvin Sherlock, 2017-2022 -- Change List -------------------------------------------------------------- -2.2.0 B6 1. Bugs squashed. See bug notes, below. +2.2.0 B7 1. Bugs squashed. See bug notes, below. 2. New language features added (mainly features from C99 and C11). See "New Language Features," below. @@ -1312,6 +1312,8 @@ The simple way is to remember that all characters that look like a graphically m The more exact, and naturally more complicated way to think about which characters are allowed in an identifier is to list all of them. Since this is an ASCII file, I'll list the ordinal values--you can cross reference the values in FontTest. The ordinal values of the extended characters that are allowed in identifiers are [$80..$9F, $A7, $AE, $AF, $B4..$B9, $BB..$BF, $C4, $C6, $CB..$CF, $D8, $DE, $DF]. +As of ORCA/C 2.2.0 B7, the characters with the following ordinal values are also allowed in identifiers: [$D9, $E5..$EF, $F1..$F5]. (These characters are additional letters that are present in some IIGS fonts.) + In addition, ORCA/C supports several extended characters as shortcuts for multi-character mathematical operations. These are: ordinal value description substitutes for