heptagon/test/good/auto.ept

22 lines
320 B
Plaintext
Raw Normal View History

node count() returns (o : int)
let
o = 0 fby (o + 1);
tel
2011-05-11 18:22:25 +02:00
node f() returns(x,y : bool)
let
(x,y) = (true,false)
tel
node main() returns (c,c1 : bool)
let
automaton
state One
2011-05-11 18:22:25 +02:00
do (c,c1) = f()
until count() = 5 then Two
state Two
2011-05-11 18:22:25 +02:00
do (c,c1) = f()
until count() = 3 then One
end
tel