Strings

Strings are sequences of characters. There is no limit to the length of a string apart from the resources available on the target. Only 8 bit character values are guaranteed to be supported.

Lexical Structure

String literals are specified between double quotes "". Between these quotes the following characters have meaning:

  • Any character with an ASCII code between 32 and 126 inclusive, except a backslash or double quote, represents that character in the string.
  • \" - a double quote.
  • \' - a single quote. It is not necessary to escape the single quote character, but it is allowed.
  • \n - newline. This will be translated into the appropriate line ending for the target platform (either line feed, carriage return line feed, or carriage return).
  • \t - hard tab.
  • \x## where ## are hexadecimal digits case insensitive - the character represented by the ASCII code given by 0x##.
  • \\ - A backslash.