Liste des Groupes | Revenir à cl c |
On 11.12.2024 18:20, bart wrote:That doesn't look right to me; what page is that from?On 11/12/2024 16:51, Janis Papanagnou wrote:From a semantical perspective, not from a syntactical. There's rules[ dangling else ]>
So here you finally acknowledge there may be ambiguity from a human
perspective.
to disambiguate a dangling-else. And there's languages that designed
a syntax without an inherent semantical ambiguity (that would need to
be cleared by such rules).
For (yet another) example; my K&R shows a syntax for expressions like
expression := binary
binary := binary + binary
binary := binary * binary
An actual expression x = 2 + 3 * 4 would be "ambiguous" (without
precedence rules).
(What a waste of time!)Sorry for wasting your time; I didn't realise I was holding a gun to your head.
Les messages affichés proviennent d'usenet.