previous contents index next
(..Constants..) Contents Index (..Constants)

2.4.3 String Constants (StringConstant)

StringConstant - Syntax:

Syntax: StringConstant

In SCARLET strings are words consisting of at most 255 characters. They are surrounded by quotation marks " " in order not to be confused with identifiers.
Strings are of data type STRING.


 

Sometimes it may have advantages to continue a string in the following line (e.g., because it does not fit the screen). In this case the first part of the string has to be finished with a backslash \ at the desired end of line; the rest of the string must follow immediately at the beginning of the next line.

Note that it is not permitted to place any character between the backslash and the line end symbol, neither blanks. Blanks at the beginning of the next line belong to the string.


Example 5:

"This string doesn't come to an end in this line, \
but it goes on in the second line."

previous contents index next
(..Constants..) Contents Index (..Constants)