raz / test / doc / Group.man

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

1.Ss Group
2.Bd -literal
3module Group;
4.Ed
5.Bd -filled -offset indent -compact
6Group: a comment before const, type or var heads its group.
7Doc's test of it.
8.Ed
9.Bd -filled -offset indent -compact
10Colours, one bit each.
11.Ed
12.Bd -literal
13const Red* = 1; (* the first *)
14const Green* = 2;
15const Blue* = 4; (* the last *)
16.Ed
17.Bd -filled -offset indent -compact
18Where it is.
19.Ed
20.Bd -literal
21type Point* = record x*, y*: INT; end; (* one place *)
22.Ed
23.Bd -filled -offset indent -compact
24A comment that stands alone.
25.Ed
26.Bd -literal
27var count*: INT;
28.Ed