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.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to