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

Adriaan van Os adriaan at adriaan.biz
Sun Dec 17 10:30:30 CET 2023


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.

Regards,

Adriaan van Os


More information about the fpc-pascal mailing list