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.
This commit is contained in:
Stephen Heumann 2022-08-01 19:59:49 -05:00
parent 95ad02f0b9
commit 4e76f62b0e
2 changed files with 21 additions and 19 deletions

View File

@ -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

View File

@ -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