[Oberon] Re (n): syntax in BB, CP, GPCP and V4 ...
hklaver at dds.nl
Wed Jul 26 00:46:00 CEST 2017
> Just to remind you, that there exists a nice prettyprinter written by G. Feldmann, running on ETHOberon Windows plugin.
Thanks for the reminder, Dieter. Very usefull program by Günther Feldmann. Opens the possibility to publish Oberon sources in the style of the early Wirthian books Systematic Programming and Algorithms + Data Structures = Programs, i.e. with keywords in lower case boldface. I always liked the typography of those books published by Prentice-Hall!
By the way: Günther Feldmann uses a fifth indentation style (besides the four that I mentioned), which nicely shows the block structure of Oberon source code. This style also is completely consistent with regard to indentation of scope levels:
MODULE M; (* G. Feldmann, 'Block Style' *)
VAR i, j: INTEGER;
VAR i: INTEGER;
PROCEDURE B(VAR i, j: INTEGER);
VAR k: INTEGER;
k := i; i := j; j := k
i := 2; B(i, j)
A; i := 2*j;
Out.Int(i, 5); Out.Int(j, 5); Out.Ln
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon