From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Basics : many way to use a Procedure
Date: Sat, 12 Dec 2015 15:33:35 -0700
Date: 2015-12-12T15:33:35-07:00 [thread overview]
Message-ID: <n4i77a$hbf$1@dont-email.me> (raw)
In-Reply-To: <8f72939a-6db8-4f24-a3ce-3d5313e48df1@googlegroups.com>
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
next prev parent reply other threads:[~2015-12-12 22:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-11 22:19 Basics : many way to use a Procedure comicfanzine
2015-12-12 0:00 ` Jeffrey R. Carter
2015-12-12 3:25 ` comicfanzine
2015-12-12 8:01 ` Niklas Holsti
2015-12-12 10:59 ` mockturtle
2015-12-14 10:52 ` Mark Lorenzen
2015-12-12 10:47 ` Lucretia
2015-12-12 14:41 ` comicfanzine
2015-12-12 17:11 ` Jeffrey R. Carter
2015-12-12 19:28 ` Simon Wright
2015-12-12 19:59 ` comicfanzine
2015-12-12 20:06 ` comicfanzine
2015-12-12 20:31 ` Simon Wright
2015-12-12 21:54 ` comicfanzine
2015-12-12 22:15 ` comicfanzine
2015-12-12 22:33 ` Jeffrey R. Carter [this message]
2015-12-13 15:22 ` comicfanzine
2015-12-13 15:29 ` comicfanzine
2015-12-13 15:34 ` comicfanzine
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox