raz / test / doc / Group.raz

28 lines · 493 B · raw · history · last change bfb011ac

1(* Group: a comment before const, type or var heads its group.
2 Doc's test of it. *)
3module Group;
4
5(* Colours, one bit each. *)
6const
7 Red* = 1; (* the first *)
8 Green* = 2;
9 Blue* = 4; (* the last *)
10
11(* A group of nothing exported, so no heading. *)
12const hidden = 0;
13
14(* Where it is. *)
15type
16 Point* = record x*, y*: INT; end; (* one place *)
17
18(* A comment that stands alone. *)
19
20var
21 count*: INT;
22
23proc main*;
24begin
25 count := Red + hidden;
26end;
27
28end Group.