The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
The RenderMan Interface - Paul Bourke
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Comments<br />
Any occurrence of the ’#’ character, except when in a string, indicates a comment. <strong>The</strong> comment<br />
consists of all characters between the ’#’ and the next newline character. Comments<br />
are treated as white space when they are encountered by the input scanner.<br />
Numbers<br />
Numbers include signed integers and reals. An integer consists of an optional sign (‘+’, ‘-’)<br />
followed by one or more decimal digits. <strong>The</strong> number is interpreted as a signed decimal<br />
integer.<br />
A real consists of an optional sign and one or more decimal digits, with an embedded<br />
period (decimal point), a trailing exponent, or both. <strong>The</strong> exponent, if present, consists of<br />
‘E’ or ‘e’ followed by an optional sign and one or more decimal digits. <strong>The</strong> number is<br />
interpreted as a real number and converted to an internal floating point value.<br />
Strings<br />
A string is an arbitrary sequence of characters delimited by double quote marks (‘ ” ’).<br />
Within a string the only special characters are ‘”’ and the ‘\’ (back-slash) character. <strong>The</strong><br />
‘\’ character is used as an ‘escape’ to include the ‘ ” ’ character, non-printing characters, and<br />
the ‘\’ character itself. <strong>The</strong> character immediately following the ‘\’ determines the precise<br />
interpretation, as follows:<br />
\n linefeed (newline)<br />
\r carriage return<br />
\t horizontal tab<br />
\b backspace<br />
\f form feed<br />
\\ backslash<br />
\” double quote<br />
\ddd<br />
character code ddd (octal)<br />
\newline no character – both are ignored<br />
If the character following the ‘\’ is not one of the above, the ‘\’ is ignored.<br />
<strong>The</strong> \ddd form may be used to include any 8-bit character constant in a string. One, two, or<br />
three octal digits may be specified (with high-order overflow ignored).<br />
<strong>The</strong> \newline form is used to break a string into a number of lines but not have the newlines<br />
be part of the string.<br />
Names<br />
Any token that consists entirely of regular characters and that cannot be interpreted as a<br />
number is treated as a name. All characters except specials and white space can appear in<br />
names.<br />
176