On 3 Jun 98 at 11:34, Miklos Cserzo wrote:
do
SYNTAX: for iteration_variable := initial_value to final_value do statement
or for iteration_variable := initial_value downto final_value do statement
or
while boolean_expression do statement
or
with list_element[,...] do statement
If we are going to supply syntax to Pascal constructs then I suggest that they are suppled as proper grammar i.e. the LALR(1) format. Nick.
Miklos Cserzo wrote:
SYNTAX: for iteration_variable := initial_value to final_value do statement [...]
Nick Burrett wrote:
If we are going to supply syntax to Pascal constructs then I suggest that they are suppled as proper grammar i.e. the LALR(1) format.
I am not convinced that a formal description helps programmers better to understand the syntax of Pascal constructs than an example-like description as Miklos provided. At least when I am trying to get into a new language, I look at the examples first and at the formal description last. Those who are interested in the exact grammar of GNU Pascal can look it up from the Bison source code of the parser, `parse.y'. In `info -f gpc -n "Language Definition"' I am trying to explain, how to do that. Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980511 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
`info -f gpc -n "Language Definition"' I am trying to explain, how to do that.
No: info -f gpc -n "Language definition" with a lower case ! Any way to make this case independant ? -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr
According to Maurice Lombardi:
`info -f gpc -n "Language Definition"' I am trying to explain, how to do that.
No: info -f gpc -n "Language definition" with a lower case ! Any way to make this case independant ?
No, AFAIK. :-( Peter -- Peter Gerwinski, Essen, Germany, http://home.pages.de/~Peter.Gerwinski/ Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - gpc-980511 PGP key on request - 6C 94 45 BE 28 A4 96 - 0E CC E9 12 47 25 82 75 Fight the SPAM and UBE! - http://spam.abuse.net/ - http://maps.vix.com/
participants (3)
-
Maurice Lombardi -
Nick Burrett -
Peter Gerwinski