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!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bloom-beacon.mit.edu!llslave.llan.ll.mit.edu!53ab2750!not-for-mail From: "Frank J. Lhota" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: lexical ambiguity References: <1nozvv83n7lhc.1b3qf0olmyllp$.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <9M_gg.1598$O5.554@llslave.llan.ll.mit.edu> Date: Mon, 05 Jun 2006 14:30:39 -0400 NNTP-Posting-Host: 155.34.132.115 X-Complaints-To: news@ll.mit.edu X-Trace: llslave.llan.ll.mit.edu 1149532293 155.34.132.115 (Mon, 05 Jun 2006 14:31:33 EDT) NNTP-Posting-Date: Mon, 05 Jun 2006 14:31:33 EDT Xref: g2news2.google.com comp.lang.ada:4686 Date: 2006-06-05T14:30:39-04:00 List-Id: Jeffrey R. Carter wrote: > Yes, but it's good to be precise. Absolutely! I should have said "qualified expression" in my original post. Sorry for any confusion that I may have caused. >> Foo'(',',',',',' ... ) > > Clearly you have an evil mind :) Well, there is a good reason to consider this worst case scenario. I have seen quick and dirty Ada lexers that try to determine if a single quote starts a character literal by looking ahead 2 character. As this scenario shows, this approach is not guaranteed to work.