[Oberon] erroneous hiding procedures in programmer's text editor v2.1
jan at verhoeven272.nl
Wed Dec 11 16:30:27 CET 2013
> Bug was detected in AOS revision 5406.
Not sure whether this is a bug.
> My question: is it syntactically OK to omit semicolon before procedure's
> BEGIN ?
Not according to the language definition.
It should be "VAR n : LONGINT; BEGIN" The semicolon is nt an end of line
statement. It is a Start-Of-Line statement. In this case it signals the
"BEGIN" coming up.
In the case of the END statement, things are different in that the END
is known to come up; a LOOP is always concluded by an END. So the last
statement in a LOOP/END does not need a ';' since the END was expected.
In your VAR case, the BEGIN cannot be predicted so the ';' is required.
-- Groetjes Jan Verhoeven
More information about the Oberon