[fpc-pascal] More syntax questions (part 3)

Michael Van Canneyt michael at freepascal.org
Sun Dec 24 13:49:30 CET 2023



On Sun, 17 Dec 2023, Adriaan van Os via fpc-pascal wrote:

>
> On Sat, 16 Dec 2023, Adriaan van Os via fpc-pascal wrote:
>
>> 
>> More questions about the FreePascal Language Reference (version 3.2.0) 
>> part 3
>> 
>> 26. Am I correct to assume the following equivalents for rules that I 
>> couldn't find a definiton for:
>>
>> 	formal-parameter-list                  = parameter-declaration .
>> 	parameter-list                         = parameter-declaration .
>
> Having a better look, the <parameter-declaration> rule defines just one 
> parameter. So, we get instead
>
> 	formal-parameter-list = "(" [ parameter-declaration { ";" 
> parameter-declaration } ] [ "..." ] ")" .
> 	parameter-list = formal-parameter-list .
>
> comprising also the "ellipsis" parameter, which, according to Appendix D.6 of 
> the Programmer's Manual is functionally equal to the varargs
> keyword.

Added to the diagrams.

I changed the diagram to be more clear (hopefully).

Michael.


More information about the fpc-pascal mailing list