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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,1b6a1fe7038b5b8e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.224.78.209 with SMTP id m17mr842670qak.3.1349177595704; Tue, 02 Oct 2012 04:33:15 -0700 (PDT) Received: by 10.52.93.132 with SMTP id cu4mr1808053vdb.14.1349177595677; Tue, 02 Oct 2012 04:33:15 -0700 (PDT) Path: e10ni156544084qan.0!nntp.google.com!l8no21430038qao.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 2 Oct 2012 04:33:15 -0700 (PDT) In-Reply-To: <85obkl2lq1.fsf@stephe-leake.org> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=206.122.158.4; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 206.122.158.4 References: <85obkl2lq1.fsf@stephe-leake.org> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <05043e5a-fe68-41c3-ae9b-29de5c485e7f@googlegroups.com> Subject: Re: disambiguating 'begin' From: gautier_niouzes@hotmail.com Injection-Date: Tue, 02 Oct 2012 11:33:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-10-02T04:33:15-07:00 List-Id: Le mardi 2 octobre 2012 12:48:41 UTC+2, Stephen Leake a =E9crit=A0: > The problem is that "begin" is used in two ways: as the _start_ of a > block, and as the _divider_ between declarations and statements in a > block I'm afraid you are seeing things more complicated than they are - or is SMI= E perhaps forcing you to do so ? "begin" is always the start of a block's statements, and sometimes the star= t of the block itself. At level 0 it should appear at the same indentation column as "function"; a= t level 1 or more, at the same indentation column as other sibling statemen= ts. And don't forget the more general "declare..begin..exception..end;" form!..= . Is there kind of a grammar with SMIE ? ___________________________________________________________________________= ___ Gautier's Ada programming -- http://gautiersblog.blogspot.com/search/label/= Ada=20 NB: follow the above link for a valid e-mail address