comp.lang.ada
 help / color / mirror / Atom feed
From: anon@anon.org (anon)
Subject: Re: Lack of formal syntax undermines Ada
Date: Sun, 13 Apr 2008 09:46:01 GMT
Date: 2008-04-13T09:46:01+00:00	[thread overview]
Message-ID: <tDkMj.181245$cQ1.7493@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: e99fb94d-da10-41d2-9f20-7a6ce78d4613@p25g2000hsf.googlegroups.com

        Ada was design in a similar concept a COBOL.  Where COBOL was 
design for business people to be able to read and understand what is 
happening, Ada was design for government scientist to be able to read and 
modify the algorithm. 

As for BNF for some language includind Ada-95, there is a web site, 
see:

http://cui.unige.ch/db-research/Enseignement/analyseinfo/BNFweb.html

and the direct link to "BNF of the Ada Programming Language":

http://cui.unige.ch/db-research/Enseignement/analyseinfo/Ada95/BNFindex.html

As for your code: YES, it is legal!



In <e99fb94d-da10-41d2-9f20-7a6ce78d4613@p25g2000hsf.googlegroups.com>, usenet@leapheap.co.uk writes:
>Ada does not have a formal syntax. The LRM provides "syntax rules"
>section by section, then collectively in Annex P. The resulting
>woolly grammar is well-known to be ambiguous (e.g. is X:=Y(Z) an
>assignment from a function call, array indexing or something
>else?). It mixes lexical and syntactical information. It cannot
>be used as the input to a parser generator. The interpretation
>necessary via other sections of the LRM risks making the language
>as a whole indefinite.
>
>Ada is designed for the construction of high-integrity software
>by validated compilers. Would it not be better to have formal
>Ada lexical and syntactic rules, expressed in regular expression
>and BNF format respectively, even if such rules turn out to be
>not particularly readable?
>
>As an example, my parser is having trouble with the fragment:
>task type TT is
>   pragma priority(12);
>end TT;
>Is this legal Ada95 syntax or not?
>
>Regards,
>Chris Noonan




  parent reply	other threads:[~2008-04-13  9:46 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11  9:41 Lack of formal syntax undermines Ada usenet
2008-04-11 11:20 ` Peter C. Chapin
2008-04-15 12:57   ` usenet
2008-04-16  2:26     ` Peter C. Chapin
2008-04-16  3:14       ` Eric Hughes
2008-04-17  6:37     ` Randy Brukardt
2008-04-11 17:27 ` Georg Bauhaus
2008-04-11 18:13   ` Adam Beneschan
2008-04-11 21:25 ` John McCabe
2008-04-11 21:45   ` Robert A Duff
2008-04-11 22:37     ` John McCabe
2008-04-11 23:08       ` Adam Beneschan
2008-04-12  7:16         ` Dirk Craeynest
2008-04-14  7:23         ` Jean-Pierre Rosen
2008-04-12 12:57       ` Robert A Duff
2008-04-12 15:06         ` (see below)
2008-04-12 16:25           ` John McCabe
2008-04-12 17:55             ` (see below)
2008-04-12 22:19               ` John McCabe
2008-04-13  1:13                 ` (see below)
2008-04-13 11:51                   ` John McCabe
2008-04-13 14:13                     ` (see below)
2008-04-13 19:34                       ` John McCabe
2008-04-13 20:51                         ` (see below)
2008-04-13 21:06                           ` John McCabe
2008-04-12 17:16         ` Gary Scott
2008-04-12 18:43           ` Peter C. Chapin
2008-04-12 19:16             ` Gary Scott
2008-04-12 20:04               ` Robert A Duff
2008-04-12 23:32                 ` Gary Scott
2008-04-13  1:16                   ` Robert A Duff
2008-04-12 20:02           ` Robert A Duff
2008-04-12 20:52             ` Pascal Obry
2008-04-13 22:01       ` Florian Weimer
2008-04-13  9:46 ` anon [this message]
2008-04-15 13:22   ` usenet
2008-04-15 16:08     ` Adam Beneschan
2008-04-13 22:04 ` Florian Weimer
replies disabled

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