StringConstantAST ::= StringLiteral
A string is a sequence of characters. In the constant representation it is
surrounded with double quotation marks (" ). A string literal character can be any
printable ASCII character other than a double quotation mark (" ).
Special escape sequences
are defined in Table 2.12, “Escape sequences and special characters in string constants”
Table 2.12. Escape sequences and special characters in string constants Escape sequence | Description |
---|
\" | A double quote character | \' | A single quote character | \n | A new line character | \t | A tabulator character | \b | A backspace character | \r | A carriage return character | \f | A formfeed character | \0..\7 | An ASCII character with its code | \00..\77 | An ASCII character with its code | \000..\377 | An ASCII character with its code |
|