Next: , Up: Strings String Read Syntax

The read syntax for strings is an arbitrarily long sequence of characters enclosed in double quotes (").

Backslash is an escape character and can be used to insert the following special characters. \" and \\ are R5RS standard, the rest are Guile extensions, notice they follow C string syntax.

Backslash character.
Double quote character (an unescaped " is otherwise the end of the string).
NUL character (ASCII 0).
Bell character (ASCII 7).
Formfeed character (ASCII 12).
Newline character (ASCII 10).
Carriage return character (ASCII 13).
Tab character (ASCII 9).
Vertical tab character (ASCII 11).
Character code given by two hexadecimal digits. For example \x7f for an ASCII DEL (127).

The following are examples of string literals:

     "bar plonk"
     "Hello World"
     "\"Hi\", he said."