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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3b05f12bd7a2a871 X-Google-Attributes: gid103376,public From: "John Roberts-Jones" Subject: Re: Lexical Conundrum Date: 1998/02/24 Message-ID: <6cusgn$8bm$1@heliodor.xara.net>#1/1 X-Deja-AN: 328211397 References: <6cpkda$otl$1@plug.news.pipex.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3 Newsgroups: comp.lang.ada Date: 1998-02-24T00:00:00+00:00 List-Id: Robert Dewar wrote in message ... >I recommend reading the GNAT sources to get more knowledge in this area. >Here is a quote from the comments of the Scn package: > > -- Here is where we make the test to distinguish the cases. Treat > -- as apostrophe if previous token is an identifier, right paren > -- or the reserved word "all" (latter case as in A.all'Address) > -- Also treat it as apostrophe after a literal (wrong anyway, but > -- that's probably the better choice). > Does this cover the case that the prefix of an attribute is a subprogram overloading a standard operator such as rational."+" ' access ? It would, on a similar subject to the original post, be interesting to hear an authoritative view as to any probems associated with disambiguating a character string such as "+".