Anonymous user
Compiler/lexical analyzer: Difference between revisions
some more rewording in the task description
(Re-order and rename columns of the token tables, and add more details. (This doesn't affect the task content.)) |
(some more rewording in the task description) |
||
Line 84:
;Other entities
These differ from the
{| class="wikitable"
Line 119:
|}
* For char and string literals, the <code>\n</code> escape sequence is supported
* For char literals, to represent a backslash, use <code>\\</code>.
* For char literals, an embedded single quote character is not supported.
Line 128:
* Zero or more whitespace characters or comments are allowed between any two tokens, with the exceptions noted below.
* "
* Whitespace is
** This means: keywords, identifiers, and integer literals.
* Whitespace is ''not allowed'' inside of tokens (except for chars and strings where they are part of the value).
▲*** 42fred - is an invalid number or invalid identifier.
** e.g. <code>& &</code> is invalid, and not interpreted as the <tt>&&</tt> operator.
The following programs are equivalent:
|