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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.20.17 with SMTP id j17mr10288089obe.24.1403821482988; Thu, 26 Jun 2014 15:24:42 -0700 (PDT) Path: border2.nntp.dca.giganews.com!nntp.giganews.com!uq10no12437973igb.0!news-out.google.com!q9ni1802qaj.0!nntp.google.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx26.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:32.0) Gecko/20100101 Thunderbird/32.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada platforms and pricing, was: Re: a new language, designed for safety ! References: <1402308235.2520.153.camel@pascal.home.net> <255b51cd-b23f-4413-805a-9fea3c70d8b2@googlegroups.com> <5ebe316d-cd84-40fb-a983-9f953f205fef@googlegroups.com> <2100734262424129975.133931laguest-archeia.com@nntp.aioe.org> <857442918424729589.090275laguest-archeia.com@nntp.aioe.org> <9j4b774g2gbz$.a22j8j4ai1l1$.dlg@40tude.net> In-Reply-To: Message-ID: X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Thu, 26 Jun 2014 22:24:42 UTC Organization: TeraNews.com Date: Thu, 26 Jun 2014 16:24:42 -0600 X-Received-Bytes: 2919 X-Received-Body-CRC: 1503459782 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Original-Bytes: 2934 Xref: number.nntp.dca.giganews.com comp.lang.ada:187264 Date: 2014-06-26T16:24:42-06:00 List-Id: On 25-Jun-14 20:04, Yannick Duchêne (Hibou57) wrote: > Le Thu, 19 Jun 2014 22:59:38 +0200, Randy Brukardt > a écrit: > >> "Peter Chapin" wrote in message >> news:tYmdnRDwdcBVTz_ORVn_vwA@giganews.com... >> ... >>> My understand is that parsing Ada requires name resolution to resolve >>> syntactic ambiguities. >> >> Definitely not. Janus/Ada uses a table-driver parser that has >> absolutely no >> semantic information. There has to be a bit of care in tokenizing (for >> the >> infamous T'('A') example) but parsing is completely normal. > > If “definitely not”, how do you make “F(A)” and “G(A)” distinct, when F > is a sub‑program and G an array? (the most famous example). Don't you > use name resolution there? Or else do you use an intermediate construct, > like array access temporarily seen as a function? If not this, how? You don't need to make them distinct, at least not at the tokenizer-level. Determining what Some_Name(Some_Parameter) is within the realm of the semantic-analysis as Some_Name could refer to: a type, a subprogram, an array... Some_Parameter could be a value or a subtype [if Some_Name is a range-subtype], and all of these permutations are semantic responsibility rather than syntactic.