19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

≠<br />

LE becomes ≤ GE becomes ≥ NE becomes<br />

BY becomes × TIMES becomes ×<br />

∏<br />

CROSS becomes ×<br />

∑<br />

DOT becomes · PRODUCT becomes<br />

SUM becomes<br />

CUP becomes ∪ CAP becomes ∩ SUBSET becomes ⊂<br />

EMPTYSET becomes ∅ AND becomes ∧ OR becomes ∨<br />

Note that some characters have more than one short name. Also, some non-operator characters also have short names,<br />

particularly, the Greek letters and the special letters:<br />

ALPHA becomes A alpha becomes α<br />

BETA becomes B beta becomes β<br />

GAMMA becomes Γ gamma becomes γ<br />

DELTA becomes ∆ delta becomes δ<br />

EPSILON becomes E epsilon becomes ǫ<br />

ZETA becomes Z zeta becomes ζ<br />

ETA becomes H eta becomes η<br />

THETA becomes Θ theta becomes θ<br />

IOTA becomes I iota becomes ι<br />

KAPPA becomes K kappa becomes κ<br />

LAMBDA becomes Λ lambda becomes λ<br />

MU becomes M mu becomes µ<br />

NU becomes N nu becomes ν<br />

XI becomes Ξ xi becomes ξ<br />

OMICRON becomes O omicron becomes o<br />

PI becomes Π pi becomes π<br />

RHO becomes P rho becomes ρ<br />

SIGMA becomes Σ sigma becomes σ<br />

TAU becomes T tau becomes τ<br />

UPSILON becomes Υ upsilon becomes υ<br />

PHI becomes Φ phi becomes φ<br />

CHI becomes X chi becomes χ<br />

PSI becomes Ψ psi becomes ψ<br />

OMEGA becomes Ω omega becomes ω<br />

BOTTOM becomes ⊥ TOP becomes ⊤<br />

INF becomes ∞<br />

A careful reader will note that Appendix F also gives the following short names for printable ASCII characters:<br />

LT becomes < GT becomes > EQ becomes =<br />

<strong>The</strong>se names provide a certain level of compatibility with Fortran. However, they are only replaced by the corresponding<br />

character only when they are delimited by whitespace characters (note, not ampersands) or the beginning or end<br />

of the program. Thus, they cannot participate in further conversion.<br />

<strong>The</strong> second source is the official Unicode 5.0 names, as specified by the Unicode Standard. However, recall that<br />

restricted words consist of letters, digits and underscores only, while Unicode names may include hyphens and spaces.<br />

Thus, we replace a restricted word if it is the Unicode 5.0 name of a character with hyphens and spaces replaced<br />

by underscores. For any Unicode character other than the control characters, there is a unique official Unicode 5.0<br />

name not shared by any other Unicode character. Since control characters are protected characters, they do not present<br />

a problem in this regard. <strong>The</strong> third source is alternative names for characters specified by the Unicode Standard,<br />

again we use the names with underscores in place of hyphens and spaces. With this source, however, some names<br />

designate more than one character. In this case, we replace the restricted word with the character with a smallest code<br />

point, unless that character is a protected character (in which case we replace the restricted word with the appropriate<br />

unprotected character with the smallest code point, if any). Fourth, we consider the official Unicode 5.0 names and<br />

348

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!