Compiler/lexical analyzer: Difference between revisions

more wording tweaks
(some more rewording in the task description)
(more wording tweaks)
Line 110:
| exactly one character (anything except newline or single quote) or one of the allowed escape sequences, enclosed by single quotes
| <code><nowiki>'([^'\n]|\\n|\\\\)'</nowiki></code>
| the ASCII code point number of the character, e.g. 65 for <code>'A'</code> and 10 for <code>'\n'</code>
|-
| <tt>STRING</tt>
Line 121:
* For char and string literals, the <code>\n</code> escape sequence is supported to represent a new-line character.
* For char literals, to represent a backslash, use <code>\\</code>.
* No other special sequences are supported. This means that:
* For char literals, an embedded single quote character is not supported.
** For stringChar literals, embeddedcannot doublerepresent quotea characterssingle quote arecharacter not(value supported39).
** String literals cannot represent strings containing double quote characters.
* No other special sequences are supported.
 
;White space
Anonymous user