From: Mendal@SIERRA.STANFORD.EDU (Geoff Mendal)
Subject: re: Emery's Lexical Q
Date: Tue, 22-Sep-87 14:29:08 EDT [thread overview]
Date: Tue Sep 22 14:29:08 1987
Message-ID: <12336698551.30.MENDAL@Sierra.Stanford.EDU> (raw)
We batted Dave Emery's lexical question (... + 1:= ...) around
Stanford and came up with two interpretations:
(1) The declaration is syntactically illegal because it requires a
separator to distinguish between the three lexical tokens.
(2) The declaration is syntactically legal because even though
the colon is the replacement character for the pound sign,
"1:=" is not itself a legal token and therefore requires
different interpretation.
The relevant section in the LRM appears to be 2.2(2). The question
that Emery's example poses is:
Must a compiler try all possible reinterpretations if it finds
a syntax error? Or is there something inherent in the syntax
of Ada which requires a separator in this case?
The Stanford boys are deadlocked, and different compilers give different
answers (Verdix rejects, DEC-Ada accepts), so we'd appreciate hearing
from anyone who knows the "correct" answer.
gom
-------
next reply other threads:[~1987-09-22 18:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1987-09-22 18:29 Geoff Mendal [this message]
1987-09-24 17:11 ` Emery's Lexical Q John Stafford x75743
-- strict thread matches above, loose matches on Subject: below --
1987-09-23 12:05 "GBURG::CWILLIAMS"
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox