19.11.2014 Views

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

The Fortress Language Specification - CiteSeerX

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• If a portion is sub and another portion follows, then that other portion is rendered as a subscript in roman type,<br />

and enclosed in parentheses if it is all digits, and preceded by a subscript-separating comma if this portion was<br />

immediately preceded by another portion that was rendered as a subscript.<br />

• If a portion consists entirely of capital letters and would, if considered by itself as an identifier, be the name<br />

of a non-letter Unicode character that would be subject to replacement by preprocessing, then that Unicode<br />

character is rendered as a subscript. For example, id_OPLUS is rendered as id ⊕ , ZZ_GT is rendered as Z > ,<br />

and QQ_star_LE is rendered as Q ∗ ≤ .<br />

• If the portion is the last portion, and the principal portion was a single letter (or two letters indicating a doublestruck<br />

letter), and none of the preceding rules in this list applies, it is rendered as a subscript in roman type. For<br />

example, T_min is rendered as T min . Note that T_MAX is rendered simply as T MAX —because all its letters<br />

are capital letters, it is considered to be an operator—but T_sub_MAX is rendered as T MAX .<br />

• Otherwise, this portion and all succeeding portions are rendered in italics, along with any underscores that<br />

appear adjacent to any of them.<br />

Examples:<br />

M is rendered as M M is rendered as M<br />

v vec is rendered as ⃗v v vec is rendered as ⃗v<br />

v1 is rendered as v 1 v x is rendered as v x<br />

v1 is rendered as v 1 v x is rendered as v x<br />

a dot is rendered as ȧ a dot dot is rendered as ä<br />

...<br />

....<br />

a dot dot dot is rendered as a a dot dot dot dot is rendered as a<br />

....<br />

a dot dot dot dot dot is rendered as a˙<br />

p13’ is rendered as p ′ 13<br />

p’ is rendered as p ′ p prime is rendered as p ′<br />

T min is rendered as T min T max is rendered as T max<br />

foo bar is rendered as foo foo baz is rendered as foo baz<br />

In this way, through the use of underscore characters and annotation portions delimited by underscores, the programmer<br />

can exercise considerable typographical control over the rendering of variable names; but if no underscores are<br />

used, the rendering rules are quite simple.<br />

345

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

Saved successfully!

Ooh no, something went wrong!