Literal strings may take the following forms:
A string of characters enclosed by open parenthesis and close parenthesis.
(this is a string)
(this is ok (balanced parenthesis) too)
The open parenthesis, unbalanced parenthesis, and backslash are not permitted in the string. The backslash is an escape character.
The following escape sequences are recognized. If the character following the backslash is not one listed below, the backslash
is to be ignored.
\n | line feed | 0x0A | LF |
\r | carriage return | (0x0D) | CR |
\t | horizontal tab | 0x09 | HT |
\b | backspace | 0x08 | BS |
\f | formfeed, | FF | |
\( | left parenthesis | 0x28 | ( |
\) | right parethesis | 0x29 | ) |
\\ | backslash | 0x5C | \ |
\ddd | Character code ddd in octal |
If the backslash is the last character of the line, it indicates the string continues on the next line.
(this is a line \
that has been continued)
An end of line marker in the string is to be treated as if it was a line feed alone (0x0A).
The octal number
ddd may be one, two, or three characters in length. If the character following the octal number is a digit, the octal number
must be three characters in length.
A string may be represented as a string of hexadecimal characters:
<0E455623180F>
If the string is an odd number of characters in length, the last character is assumed to be zero.