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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6d9eb594a33cb947 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-26 08:50:09 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Robert Dewar Newsgroups: comp.lang.ada Subject: RE: very specific question on Ada syntax Date: Fri, 26 Jan 2001 16:38:33 GMT Organization: Deja.com Message-ID: <94s968$utk$1@nnrp1.deja.com> References: NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Fri Jan 26 16:38:33 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x51.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 X-MyDeja-Info: XMYDJUIDrobert_dewar Xref: supernews.google.com comp.lang.ada:4564 Date: 2001-01-26T16:38:33+00:00 List-Id: In article , comp.lang.ada@ada.eu.org wrote: > This was because I was wondering if a character literal could > be tokenized without context. I guess not. In > > A'B'C > > 'B' has the form of a character literal, but it is not it. I > could perhap rely on the fact (?) that there is no attribute > of only one letter, but that is twisted to say the least. And, as per my previous comment, wrong, for example, assuming you accept the brackets notation used for example in the ACATS tests, you should accept '["0041"]' as equivalent to 'A'. I strongly suggest reading scn.adb from the GNAT sources when you have questions about lexical scanning, it is easy reading! > > | |,| | | |RuaFranciscoTaborda24RcD 2815-249CharnecaCaparica 351+939354005 > |M|A|R|I|O| > |A|M|A|D|O|DepartmentoDeInformaticaFCT/UNL 2825-114 Caparica 351+212958536 > |A|L|V|E|S| fax 212948541 > | | | | | | maa@di.fct.unl.pt FCT 212948300 > > Sent via Deja.com http://www.deja.com/