raz / conform / err / Resync.raz

35 lines · 385 B · raw · history · last change 1d7484fe

1module Resync;
2
3import Out;
4
5proc a(x: I64);
6begin
7 if x = 1 then
8 x := 2;
9 Out.int(x);
10end a;
11
12proc b(x: I64);
13begin
14 while x > 0 do x := x - 1 end;
15 x := ) + 2;
16 match x
17 | 1: x := true;
18 end;
19end b;
20
21proc c(x: I64);
22begin
23 x := 1 +;
24
25proc d(x: I64);
26begin
27 x := false;
28end d;
29
30proc main*();
31begin
32 a(1); b(2); c(3); d(4);
33end main;
34
35end Resync.