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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: lexical ambiguity Date: 07 Jun 2006 10:49:31 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1nozvv83n7lhc.1b3qf0olmyllp$.dlg@40tude.net> <9M_gg.1598$O5.554@llslave.llan.ll.mit.edu> <1149590366.8521.5.camel@localhost> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1149691771 15399 192.74.137.71 (7 Jun 2006 14:49:31 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 7 Jun 2006 14:49:31 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news2.google.com comp.lang.ada:4705 Date: 2006-06-07T10:49:31-04:00 List-Id: M E Leypold writes: > So now (question to all): Is the following rule enough? > > - "'" is the beginning of a character literal if the token before > "'" has not been an identifier (reserved words not counted as > identifier in this case). Not quite: function F(X: Integer) return String; Length: constant Natural := F(123)'Length; Y: access T'Class := ...; Z: access T2'Class := Y.all'Access; For reserved words, I think you have to study the grammar, and determine which ones can precede a tick mark. - Bob