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.

5.16 Special Tokens<br />

Every special character (operator or non-operator) that is not part of a token (or within a comment) as described above<br />

is a special token by itself. <strong>The</strong> special operator characters may be operators in the appropriate context.<br />

5.17 Rendering of <strong>Fortress</strong> Programs<br />

In order to more closely approximate mathematical notation, <strong>Fortress</strong> mandates standard rendering for various input<br />

elements, particularly for numerals and identifiers, as specified in this section. In the remainder of this specification,<br />

programs are presented formatted unless stated otherwise.<br />

5.17.1 Fonts<br />

Throughout this section, we refer to different fonts or styles in which certain characters are rendered, with names<br />

suggestive of their appearance.<br />

• roman<br />

• italic<br />

• math (often identical to italic)<br />

• script<br />

• fraktur<br />

• sans-serif<br />

• italic sans-serif<br />

• monospace<br />

• double-struck<br />

Additionally, the following fonts may be specified to be bold: roman, italic, script, fraktur, sans-serif, italic sans-serif.<br />

However, a particular environment may substitute different fonts either because of local practice or because the desired<br />

fonts are not available.<br />

5.17.2 Numerals<br />

A numeral is rendered in roman type, with the radix, if present, as a subscript.<br />

27 is rendered as 27<br />

7FFF 16 is rendered as 7FFF 16<br />

10101101 TWO is rendered as 10101101 TWO<br />

37X8E2 12 is rendered as 37X8E2 12<br />

deadbeef SIXTEEN is rendered as deadbeef SIXTEEN<br />

dead.beef 16 is rendered as dead.beef 16<br />

3.143159265 is rendered as 3.143159265<br />

3.11037552 8 is rendered as 3.1137552 8<br />

3.243f6b 16 is rendered as 3.243f6b 16<br />

11.001001000011111101101010 2 is rendered as 11.001001000011111101101010 2<br />

52

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

Saved successfully!

Ooh no, something went wrong!