Re: [fpc-pascal] Pascal grammar: Program heading can include parameters

2010-07-01 Thread Bart
On 7/1/10, Marco van de Voort wrote: > In original pascal you had to specify all opened files there, including > input/output. That is how I learned it (from a book about standard(?) pascal). I remember having several programs with long lists of files, before I discovered that this was not nece

Re: [fpc-pascal] Pascal grammar: Program heading can include parameters

2010-07-01 Thread Graeme Geldenhuys
Op 2010-07-01 12:14, Marco van de Voort het geskryf: > > In original pascal you had to specify all opened files there, including > input/output. Thanks for that history. :) >> Syntax is as follows: >> >> Program -> PROGRAM Ident ['(' IdentList ')'] ';' >> ProgramBlock '.' > > Str

Re: [fpc-pascal] Pascal grammar: Program heading can include parameters

2010-07-01 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: > I'm busy writing a Object Pascal grammar section for the Language Reference > doc. > > In the ref.pdf (page 144) it says that the PROGRAM line can contain > 'program parameters', but is ignored by the compiler. Can anybody explain > these "program

[fpc-pascal] Pascal grammar: Program heading can include parameters

2010-07-01 Thread Graeme Geldenhuys
Hi, I'm busy writing a Object Pascal grammar section for the Language Reference doc. In the ref.pdf (page 144) it says that the PROGRAM line can contain 'program parameters', but is ignored by the compiler. Can anybody explain these "program parameters" and when and how they were actually used? I