raz / conform / run / Names.raz

20 lines · 470 B · raw · history · last change b38de572

1(* Words that aren't reserved are names, and a predeclared name may be
2 declared again, which hides it in its scope. *)
3module Names;
4import Out;
5
6type U8 = I64;
7
8var static, check, off, volatile: INT;
9 big: U8;
10
11proc main*;
12var true: INT;
13begin
14 static := 1; check := 2; off := 3; volatile := 4; true := 5;
15 big := 300;
16 Out.int(static + check + off + volatile + true); Out.ln;
17 Out.int(big); Out.char(' '); Out.int(SIZE(U8)); Out.ln;
18end;
19
20end Names.