bug-marst
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: An unexpected MARST 2.2 behaviour


From: Andrew Makhorin
Subject: Re: An unexpected MARST 2.2 behaviour
Date: Tue, 30 Jan 2001 01:46:21 +0300

Yes, the keyword 'go to' is the only exception from the general rule
that keywords (as well as other syntactic units) can't contain white
space characters. The documentation says that "... the keyword 'go to'
... may contain zero or more *spaces* between 'go' and 'to' ...",
not white-space characters. It seems to be a common practice in computer
languages that a keyword should be placed completely on one text line,
that's why the marst translator does so. (Of course, this feature is
implementation specific and not defined in the modified report. However,
even the modified report defines keywords as indivisible symbols. I've
never seen Algol 60 programs written in the reference language with 'go'
on one line and 'to' on the next one.)

Regards,

Andrew Makhorin

P.S. Please in the future send all your messages related to GNU MARST to
<address@hidden> or <address@hidden> in order that other people
could see them. I'm on these mailing lists, so I also will receieve such
messages.

-----Original Message-----
From: Paulo S. L. M. Barreto <address@hidden>
To: Andrew Makhorin <address@hidden>
Subject: An unexpected MARST 2.2 behaviour


>Hi,
>
>I've stumbled on a quite unexpected behaviour in MARST, even the latest
version.
>
>The MARST documentation states that:
>
>"Any symbol can be surrounded by any number of white-space characters (i.e.
by
>spaces, HT, CR, LF, FF, and VT). However, any multi-character symbol should
>contain no white-space characters. Moreover, a letter sequence is
recognized as
>a keyword if and only if there is no letter or digit that immediately
precedes
>or follows the sequence (except the keyword `go to' that may contain zero
or
>more spaces between `go' and `to')."
>
>However, the attached file does not compile. There is a line break (LF)
between
>"go" and "to". The same behaviour happens if the LF is replaced by a HT or
any
>other white space character except 0x20.
>
>All the best,
>
>Paulo Barreto.
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]