[Oberon] Oberon Wiki ; what happend with WITH
Frans-Pieter Vonck
fp at vonck.nl
Sun Jan 9 23:30:15 CET 2011
> The one behind the first 'END' as well.
> I guess it needs a 'BEGIN' somewhere?
Not really. From the EBNF
Module = MODULE ident ";" [ImportList] DeclSeq [BEGIN StatementSeq] END
ident "."
[BEGIN StatementSeq] can be left out in the declaration of the module.
However, the semicolon after the DelcSeq is part of the definition
TYPE {TypeDecl ";"}
Greets,
F.P.
> On Sunday 09 January 2011 22:26:26 Frans-Pieter Vonck wrote:
>> Is there anyone of the oberonlist maintaining the wiki page of
>> Oberon-2?
>> http://en.wikipedia.org/wiki/Oberon-2_%28programming_language%29
>>
>> I found the following flaw in the "Type binding" section
>>
>> MODULE Birds;
>> TYPE
>> Bird* = RECORD
>> sound* : ARRAY 10 OF CHAR;
>> END;
>> END Birds.
>>
>> The semicolon after CHAR is superfluous.
>
> The one behind the first 'END' as well.
>
>> Actually the Oberon07 compiler of Astrobe rendered the following error.
5 36: ident missing
>
> I guess it needs a 'BEGIN' somewhere?
>
> --
> Met vriendelijke groeten,
>
> Jan Verhoeven
> http://www.verhoeven272.nl
>
More information about the Oberon
mailing list