From: EGarrulo <egarrulo@gmail.com>
Subject: Re: Ada reference manual rule for doubled parentheses around if_expression?
Date: Fri, 31 Jul 2015 13:07:19 -0700 (PDT)
Date: 2015-07-31T13:07:19-07:00 [thread overview]
Message-ID: <d5e2f229-5f3b-43eb-a220-24564b0394e0@googlegroups.com> (raw)
In-Reply-To: <864mkkz2hy.fsf@stephe-leake.org>
On Friday, July 31, 2015 at 7:00:13 PM UTC+2, Stephen Leake wrote:
> A question recently came up on the Emacs ada-mode list; my Emacs
> ada-mode parser rejects this if_expression in an association list:
>
> Tmp : Boolean := Id (if True then True else True);
>
> but accepts this:
>
> Tmp : Boolean := Id ((if True then True else True));
>
> I remember seeing some rule in the Ada reference manual that says the
> doubled parens are not needed here. But now I can't find the rule, and I
> don't want to edit my grammar without a reference.
>
> Anyone know where that rule is? or what to search for?
The Rationale says it in the "1.3.2 Expressions" chapter.
prev parent reply other threads:[~2015-07-31 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 17:00 Ada reference manual rule for doubled parentheses around if_expression? Stephen Leake
2015-07-31 18:29 ` Bob Duff
2015-08-01 7:36 ` Simon Wright
2015-08-01 9:11 ` Stephen Leake
2015-08-01 13:42 ` Bob Duff
2015-08-03 22:56 ` Randy Brukardt
2015-07-31 20:07 ` EGarrulo [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox