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 Newsgroups: comp.lang.ada Subject: Re: lexical ambiguity References: <1nozvv83n7lhc.1b3qf0olmyllp$.dlg@40tude.net> <9M_gg.1598$O5.554@llslave.llan.ll.mit.edu> <1149590366.8521.5.camel@localhost> From: M E Leypold Date: 06 Jun 2006 13:38:06 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Some cool user agent (SCUG) NNTP-Posting-Host: 88.72.240.42 X-Trace: news.arcor-ip.de 1149593567 88.72.240.42 (6 Jun 2006 13:32:47 +0200) X-Complaints-To: abuse@arcor-ip.de Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor-ip.de!news.arcor-ip.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:4702 Date: 2006-06-06T13:38:06+02:00 List-Id: Georg Bauhaus writes: > On Mon, 2006-06-05 at 22:11 +0000, Jeffrey R. Carter wrote: > > Keith Thompson wrote: > > > > > > If I recall correctly, it's sufficient to remember what the previous > > > token was. A character literal cannot follow an identifier. > > > > Right, so it must be either an attribute, a qualified expression, or an > > error. > > Though the previous token shouldn't be a reserved word, as in > > if'('="-"("="('='=',',','=',')) Or return'a'; 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). Regards -- Markus