lustrec-tests/tests/lusic/test1.lus @ f910b2ed
1 | 604d5b37 | ploc | #open "test2" |
---|---|---|---|
2 | |||
3 | type prod = struct { a : int; b : toto clock; }; |
||
4 | |||
5 | type sum = enum { One, Two, Three }; |
||
6 | |||
7 | node bool2float (x:bool) returns (y:float) |
||
8 | let
|
||
9 | y = if x then 0. else 1.; |
||
10 | tel
|
||
11 | |||
12 | node as_soon_as (x:bool) returns (y:bool) |
||
13 | let
|
||
14 | y = x || (false -> pre y); |
||
15 | tel
|