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-27 16:51:52 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.direct.ca!look.ca!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: Sun, 28 Jan 2001 00:36:24 GMT Organization: Deja.com Message-ID: <94vpi8$lrc$1@nnrp1.deja.com> References: <200101261211.NAA13016@bulgaria.otn.eurocopter.de> NNTP-Posting-Host: 205.232.38.14 X-Article-Creation-Date: Sun Jan 28 00:36:24 2001 GMT X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; U) X-Http-Proxy: 1.0 x59.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:4626 Date: 2001-01-28T00:36:24+00:00 List-Id: In article , comp.lang.ada@ada.eu.org wrote: > Conjecture: that restriction is necessary in order to > tokenize a character_literal without semantic or sintactical > analysis. Since the truth of this depends on your arbitrary definition of what is and what is not sintactical analysis (I leave the misspelling to emaphasize that in fact this is NOT a standard precisely defined technical term :-), this is not a well formed conjecture. In fact properly written lexical analyzers for Ada solve this in the manner I previously posted, WITHIN the lexical analyzer (this is perfectly possible either in a hand written lexer, or in an automatically built one). The method is simple and probably the only reason it is not used is simply a matter of not being aware of this standard technique which has been well known for 20 years (i.e. check previous token). > > Proof: (left as a home assignment ;-) > > Thanks. > > | |,| | | |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/