character ::=
"based on the unicode character set"
This rule is called by-> literal_expression -> string
ExplicationsLa table ci-dessous décrit les caractères spéciaux principaux, ainsi que la façon de les déclarer.
| Représentation | Signification |
| \n | nouvelle ligne (NL) |
| \t | tabulation (TAB) |
| \b | backspace (BS) |
| \r | retour de chariot (CR) |
| \f | fin de page (FF) |
| \\ | backslash \ |
| \' | apostrophe ' |
| \" | guillemet " |
| \0ddd | caractère ASCII ddd (octal) |
| \xdd | caractère ASCII dd (hexadécimal) |
| \udddd | caractère Unicode dddd (hexadécimal) |
Exemples
'a'
'\n'
'\''
'\n'
'\u1234'