From: "Frank J. Lhota" <NOSPAM.FrankLho@rcn.com>
Subject: Re: lexical ambiguity
Date: Sun, 4 Jun 2006 13:33:41 -0400
Date: 2006-06-04T13:33:41-04:00 [thread overview]
Message-ID: <z6ydnZgK5-jrhB7ZnZ2dneKdnZydnZ2d@rcn.net> (raw)
In-Reply-To: w_8gg.760526$084.110855@attbi_s22
"Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org> wrote in message
news:w_8gg.760526$084.110855@attbi_s22...
> Frank J. Lhota wrote:
>>
>> - are used in aggregates, such as Rational'(Num =>1, Demom => 2).
>
> This is a qualified expression, as is Integer'(I). It just happens that
> the expression is an aggregate. Aggregates themselves don't use the
> apostrophe:
>
> R : Rational := (Num => 1, Denom => 2);
Yes, of course you're right. The main point is that the multiple uses of
single quote is the one thing that the Ada lexer needs to be especially
careful about. Make sure that your lexer can handle the following exression
properly:
Foo'(',',',',',' ... )
next prev parent reply other threads:[~2006-06-04 17:33 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-02 22:13 lexical ambiguity bla_bla1357
2006-06-02 22:35 ` Frank J. Lhota
2006-06-03 5:20 ` Jeffrey R. Carter
2006-06-04 17:33 ` Frank J. Lhota [this message]
2006-06-05 1:36 ` Jeffrey R. Carter
2006-06-05 18:30 ` Frank J. Lhota
2006-06-05 20:27 ` Keith Thompson
2006-06-05 22:11 ` Jeffrey R. Carter
2006-06-06 10:39 ` Georg Bauhaus
2006-06-06 11:38 ` M E Leypold
2006-06-07 9:02 ` Dmitry A. Kazakov
2006-06-07 13:15 ` Georg Bauhaus
2006-06-07 14:49 ` Robert A Duff
2006-06-07 17:18 ` M E Leypold
2006-06-08 21:30 ` Robert A Duff
2006-06-09 4:41 ` Jeffrey R. Carter
2006-06-09 8:23 ` Georg Bauhaus
2006-06-06 13:50 ` Simon Clubley
2006-06-06 18:56 ` Peter C. Chapin
2006-06-06 19:41 ` Georg Bauhaus
2006-06-05 22:16 ` Jeffrey R. Carter
2006-06-06 13:20 ` Frank J. Lhota
2006-06-02 23:27 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox