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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Basics : many way to use a Procedure Date: Sat, 12 Dec 2015 15:33:35 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <6caaac83-bca4-4b75-a4b3-47189e281c1a@googlegroups.com> <360882c8-263e-42fd-b3ee-ef93cc11d8f4@googlegroups.com> <044e3f81-d3f6-4e84-8e2f-6452bcb76ea0@googlegroups.com> <8f72939a-6db8-4f24-a3ce-3d5313e48df1@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Sat, 12 Dec 2015 22:31:08 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="17775"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TRyg9ED9sF1uQXoTD/M7lY3lSFMzeyAE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <8f72939a-6db8-4f24-a3ce-3d5313e48df1@googlegroups.com> Cancel-Lock: sha1:fcFerXCZ/rjqA7g/LTLdsFFL8Jw= X-Enigmail-Draft-Status: N1110 Xref: news.eternal-september.org comp.lang.ada:28798 Date: 2015-12-12T15:33:35-07:00 List-Id: On 12/12/2015 03:15 PM, comicfanzine@gmail.com wrote: >>> In what way does the 4th example, >>> >>> Print_Header(128, Header => Title, Center => True); >>> >>> not match those forms? >>> >>> Perhaps you'd better post an example of what you think the ARM's syntax >>> is telling you to write. > > the 4th example look a little like = > > [formal_parameter_selector_name =>] explicit_actual_parameter > > but, there is no "[]" in the 4th example . > > Also the 4th example doesn't look like this other form , there is no "{}" = > > actual_parameter_part ::= > (parameter_association {, parameter_association}) > > Also , what this next form means ? What means the delimiter " | " ? > > explicit_actual_parameter ::= expression | variable_name The BNF used to define the syntax is given in ARM 1.1.4. http://www.adaic.org/resources/add_content/standards/12rm/html/RM-1-1-4.html You need to be familiar with the notation before you read the rest of the ARM. Brackets [] surround optional items; braces {} surround items that may appear zero or more times; the vertical bar | separates alternatives. So [formal_parameter_selector_name =>] explicit_actual_parameter means "formal_parameter_selector_name =>" is optional; the parameter 128 in the example has that part omitted. actual_parameter_part ::= (parameter_association {, parameter_association}) means there's at least 1 parameter_association in an actual_parameter_part, and if there are more than 1, the others are all preceded by a comma, explicit_actual_parameter ::= expression | variable_name means an explicit_actual_parameter is either an expression or a variable_name. -- Jeff Carter "English bed-wetting types." Monty Python & the Holy Grail 15