Add basic Easync support to heptagon/*

Warning: While the project compiles, async code is not yet generated.
This commit is contained in:
jeltz 2020-12-20 19:35:22 +01:00
parent df3238cd52
commit efd6bebf91
Signed by: jeltz
GPG key ID: 800882B66C0C3326
2 changed files with 3 additions and 1 deletions

View file

@ -287,6 +287,7 @@ and apply h app e_list =
let ty1 = typing h e1 in
let _ = typing h e2 in
itype ty1
(* FIXME(Arduino): voir si ajout nécessaire *)
| Enode _ ->
begin
(* for nodes, force all inputs to be initialized *)

View file

@ -69,7 +69,8 @@ let qualify_pervasive q =
let static_app_from_app app args =
match app.a_op with
| Efun q
| Enode q ->
| Enode q
| Easync (q, _) ->
let q = qualify_pervasive q in
q, (app.a_params @ args)
| _ -> raise Not_static