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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c89a4b067758a6e1,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f47g2000hsd.googlegroups.com!not-for-mail From: Hibou57 Newsgroups: comp.lang.ada Subject: Is it really Ok to assert that the Ada syntax is a context-free grammar ? Date: Tue, 19 Feb 2008 16:47:52 -0800 (PST) Organization: http://groups.google.com Message-ID: <4a448c5c-a4ed-446f-bb8b-67c5ba99927a@f47g2000hsd.googlegroups.com> NNTP-Posting-Host: 86.75.149.240 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1203468473 24264 127.0.0.1 (20 Feb 2008 00:47:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 20 Feb 2008 00:47:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f47g2000hsd.googlegroups.com; posting-host=86.75.149.240; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.23 (Windows NT 5.1; U; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:19900 Date: 2008-02-19T16:47:52-08:00 List-Id: Hi peoples living here :p I got a doubt about [ARM 1.1.4-1] > The form of an Ada program is described by means of a context-free syntax together with context-dependent requirements expressed by narrative rules. 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. Am I wrong or is there really a so big mistake in the ARM ? Please, tell me :( I want to know Yannick