[Oberon] Life without local procedures

Jörg joerg.straube at iaeth.ch
Fri Feb 23 13:03:36 CET 2018


>Wirth has stated that the Oberon Report is the definition of the language
>not the PO2013 compiler. The latter has a number of deviations,
>restrictions, exceptions and extensions.

True.
According to the report, the production "case" may be empty!
  CaseStatement = CASE expression OF case {"|" case} END. 
  case = [ CaseLabelList ":" StatementSequence ].

The compiler does not allow this
  CASE x
  | 1: i:=0
  END

I mean starting with a "|" is not accepted. Obviously, this can easily be
fixed.

Jörg




More information about the Oberon mailing list