Pascal-Standard Question

Eike Lange eike.lange at uni-essen.de
Tue Jun 4 17:21:59 CEST 2002


Hi!

On Tue, Jun 04, 2002 at 10:16:21AM -0400, CBFalconer wrote:
> > He told me, that stopping after the first "end." (after unit)
> > should stop the compiler. I don't know, why he has written the
> > program in the same file so far. :-/
> Put in those terms, he is absolutely right IMO.  Anything that
> follows the "end ." should be ignored, in fact not even read.  The
> period should be parsed and cause compilation to stop.  I think
> the syntax is something like:
>    program ::= 'program' progparms ';' declarations block '.'

Yes, but there might be a statement like this (not exactly BNF :-)
  part ::= program or unit
  file ::= part until EOF

Thank you all, for clearing this.

Eike




More information about the Gpc mailing list