Should the info attempt to be a Pascal language tutor ? ie. Should it cover
FOR, WHILE, REPEAT etc.
Surely most people coming to GPC will do so knowing Pascal from elsewhere.
Since the world at
large seems to prefer C (or Cobol), it seems to me that we don't need to
worry too much about explaining
the standard contructs as only those who have already chosen Pascal will be
interested in GPC.
If we do want to include standard constructs, we might derive our
explanations from one of a number of existing
books eg. Programming in Pascal, by Peter Grogono. (Addison-Wesley
0-201-12070-4). This book explains the
FOR loop by its equivalent code using WHILE. I know this is copyright, but
it (or similar) should give an idea how
to explain these basic constructs.
I think LALR(1) is the algorithm used for parsing. The syntax definition
language is Backup-Naur Form,
known as BNF. The Grogono book I mentioned doesn't use it, it uses syntax
diagrams instead, but I'm sure
someone can provide BNF for GPC.
Whatever goes in should certainly be checked for English grammar and usage
by a native speaker, or one of the
German members of the list, who seem to write extremely good English.
Regards,
Richard.