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,c89a4b067758a6e1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is it really Ok to assert that the Ada syntax is a context-free grammar ? References: <4a448c5c-a4ed-446f-bb8b-67c5ba99927a@f47g2000hsd.googlegroups.com> In-Reply-To: <4a448c5c-a4ed-446f-bb8b-67c5ba99927a@f47g2000hsd.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1203473189 12.201.97.213 (Wed, 20 Feb 2008 02:06:29 GMT) NNTP-Posting-Date: Wed, 20 Feb 2008 02:06:29 GMT Organization: AT&T ASP.att.net Date: Wed, 20 Feb 2008 02:06:29 GMT Xref: g2news1.google.com comp.lang.ada:19902 Date: 2008-02-20T02:06:29+00:00 List-Id: Hibou57 wrote: > > But as pointed by someone, the grammar is not LR(1), due to the fact > (which is common to many other languages), that as an exemple X(Y) can > stand for a type cast, a function call, an array access, or even an > array slice, and this cannot be decided without knowlegde of the > context. X (Y) cannot represent a type cast because Ada does not have anything called "type cast". -- Jeff Carter "Death awaits you all, with nasty, big, pointy teeth!" Monty Python & the Holy Grail 20