From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1f96acbbf1e7e66a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rcn.net!news.rcn.net.POSTED!not-for-mail NNTP-Posting-Date: Sun, 04 Jun 2006 12:33:42 -0500 Reply-To: "Frank J. Lhota" From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <1nozvv83n7lhc.1b3qf0olmyllp$.dlg@40tude.net> Subject: Re: lexical ambiguity Date: Sun, 4 Jun 2006 13:33:41 -0400 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Response Message-ID: NNTP-Posting-Host: 209.6.185.133 X-Trace: sv3-DeQHctsvrMgk/E/W2R4gh5QbFUMo8UONjMQGjzM4lRLI2S4CHuvkz2FqnumfRRpBgOX7lRqjnaSvtqN!+b14JpUtozdSWrI+9SzzC39KlmgLTXp4zTxr44eRlts7eHwjkjwBYNhbNtUeXPlbvkX0HIaTO5j9!zA== X-Complaints-To: abuse@rcn.net X-DMCA-Complaints-To: abuse@rcn.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:4675 Date: 2006-06-04T13:33:41-04:00 List-Id: "Jeffrey R. Carter" 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'(',',',',',' ... )