comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Unary operator after binary operator: legal or not? => Illegal
Date: Wed, 01 Aug 2007 06:20:34 GMT
Date: 2007-08-01T06:20:34+00:00	[thread overview]
Message-ID: <SCVri.13136$ax1.1797@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: 1185927237.362545.195380@d30g2000prg.googlegroups.com

My Typo! Or was I too tied and hungry to see them!

The Final word comes from Ada LRM 4.5.1 ( 17 ). Examples that 
the Ada Committee gave us.

    Y**(-3)              --  parentheses are necessary

This is defined in 83, 95 and 2005 LRM. Which makes it LAW!


To most languages the parentheses are not required.  Actually some 
languages even define the -3 as a numeric_literal. But this difference 
is what makes Ada a pain for some and a delight for others.


But since the expression option is define as "(expression)"
instead of "( expression )" I chose to define the parentheses to 
denote to use the BNF expression instead of the definition found 
in LRM 4.4 ( 1 ).  

Now, If the clause was "( expression )" which this clearly denotes 
that you must have a left parenthese followed by the expression 
which is followed by a right parenthese. And I would have agree 
with you earlier!

But with the example stated in the LRM I can not argue. 

So, I Stand corrected!

As for why I go by "Anon" that my business!


In <1185927237.362545.195380@d30g2000prg.googlegroups.com>,  Adam Beneschan <adam@irvine.com> writes:
>On Jul 31, 4:22 pm, a...@anon.org (anon) wrote:
>
>> Ada LRM 4.4 ( 6 ) =>   factor ::= primary
>>
>>   +Right
>>   -7
>>
>> Ada LRM 4.4 ( 7 ) =>   primary ::= numeric_literal | .. | (expression)
>>
>>   +Right  => is defined as an expression
>>   -7      => is defined as an expression
>
>What happened to those nice parentheses around "expression" that the
>above syntax rule requires?  Did you think they were there in the RM
>just for decoration?
>
>No wonder you won't post using your real name.
>
>                      -- Adam
>




  reply	other threads:[~2007-08-01  6:20 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-30 22:52 Unary operator after binary operator: legal or not? Jeffrey R. Carter
2007-07-30 23:39 ` Markus E.L.
2007-07-31  0:22 ` Adam Beneschan
2007-07-31 21:52   ` Jeffrey R. Carter
2007-07-31  8:01 ` anon
2007-07-31  8:16   ` Unary operator after binary operator: legal or not? => Compiler Error anon
2007-07-31  8:38     ` AW: Unary operator after binary operator: legal or not? => CompilerError Grein, Christoph (Fa. ESG)
2007-07-31 15:05     ` Unary operator after binary operator: legal or not? => Compiler Error Robert A Duff
2007-07-31 15:39       ` Dmitry A. Kazakov
2007-07-31 15:53         ` Robert A Duff
2007-07-31 17:02           ` Georg Bauhaus
2007-07-31 19:17             ` Adam Beneschan
2007-08-01  7:16               ` Maciej Sobczak
2007-08-01 15:23                 ` Adam Beneschan
2007-07-31 20:59             ` Robert A Duff
2007-08-01  7:24               ` Georg Bauhaus
2007-08-01  8:02                 ` Dmitry A. Kazakov
2007-08-01  8:17                   ` AW: Unary operator after binary operator: legal or not? => CompilerError Grein, Christoph (Fa. ESG)
2007-08-01 10:10                     ` Ian Clifton
2007-08-01  9:34                   ` Unary operator after binary operator: legal or not? => Compiler Error Georg Bauhaus
2007-08-01 21:51                 ` Jeffrey R. Carter
2007-07-31 17:52           ` Dmitry A. Kazakov
2007-08-02 20:44           ` Charles Lindsey
2007-08-03  7:48             ` Stuart
2007-08-03  7:51             ` Dmitry A. Kazakov
2007-07-31 23:22     ` anon
2007-08-01  0:13       ` Adam Beneschan
2007-08-01  6:20         ` anon [this message]
2007-08-01  5:34       ` AW: Unary operator after binary operator: legal or not? => CompilerError Grein, Christoph (Fa. ESG)
2007-08-01  6:46         ` To := Grein, Christoph (Fa. ESG) anon
2007-08-01  7:11           ` AW: " Grein, Christoph (Fa. ESG)
2007-08-02  6:52             ` anon
2007-08-02  8:56               ` AW: " Grein, Christoph (Fa. ESG)
2007-08-02 22:29                 ` Markus E.L. 2
2007-08-02 23:02                   ` tmoran
2007-08-02 23:11                     ` Ed Falis
2007-08-02 23:34                     ` Markus E.L. 2
2007-08-03  4:42                   ` AW: " Grein, Christoph (Fa. ESG)
2007-08-02 22:28               ` Markus E.L. 2
replies disabled

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