comp.lang.ada
 help / color / mirror / Atom feed
From: Bob Duff <bobduff@theworld.com>
Subject: Re: Placement of pragmas in the grammar (language laywers required)
Date: Thu, 10 Dec 2015 12:12:28 -0500
Date: 2015-12-10T12:12:28-05:00	[thread overview]
Message-ID: <874mfqz0qr.fsf@theworld.com> (raw)
In-Reply-To: f3829f17-b212-447f-b130-f9d1f89c93f0@googlegroups.com

Lucretia <laguest9000@googlemail.com> writes:

> I'm looking at the 2012 grammar in the AARM/LRM and I just don't get why you
> designers don't include pragma's in their correct places instead of saying:

I agree pragma placement should have been part of the BNF.

>...
> and again inside the above *_declaration's? And then, e.g component_item:
>
> component_item ::= component_declaration | aspect_clause | pragma

That won't work without additional checks, because of the "not in place
of" wording.  This is syntactically illegal:

    type T is record
        pragma Listing(Off);
    end record;

- Bob


  parent reply	other threads:[~2015-12-10 17:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10  7:46 Placement of pragmas in the grammar (language laywers required) Lucretia
2015-12-10 14:39 ` Lucretia
2015-12-10 17:12 ` Bob Duff [this message]
2015-12-10 17:59   ` Lucretia
2015-12-10 18:19     ` Bob Duff
2015-12-10 23:47       ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox