@@ -851,11 +851,11 @@ event :
851
851
fun c -> let x = $3 c anon_event bind_event @@ at in fun () -> $4 c x at }
852
852
853
853
event_fields :
854
- | type_use event_types
854
+ | type_use func_type
855
855
{ fun c x at ->
856
856
let y = inline_type_explicit c ($1 c type_) $2 at in
857
857
[y], [], [] }
858
- | event_types /* Sugar */
858
+ | func_type /* Sugar */
859
859
{ fun c x at ->
860
860
let y = inline_type c $1 at in
861
861
[y], [], [] }
@@ -873,7 +873,7 @@ event_fields :
873
873
idesc = EventImport y @@ at } @@ at ], [] }
874
874
| inline_export event_fields /* Sugar */
875
875
{ fun c x at ->
876
- let fns , ims, exs = $2 c x at in fns , ims, $1 (EventExport x) c :: exs }
876
+ let evs , ims, exs = $2 c x at in evs , ims, $1 (EventExport x) c :: exs }
877
877
878
878
event_fields_import : /* Sugar */
879
879
| event_fields_import_result { $1 }
@@ -887,19 +887,6 @@ event_fields_import_result : /* Sugar */
887
887
| LPAR RESULT value_type_list RPAR event_fields_import_result
888
888
{ let FuncType (ins, out) = $5 in FuncType (ins, $3 @ out) }
889
889
890
- event_types :
891
- | event_result_types { $1 }
892
- | LPAR PARAM value_type_list RPAR event_types
893
- { let FuncType (ins, out) = $5 in FuncType ($3 @ ins, out) }
894
- | LPAR PARAM bind_var value_type RPAR event_types /* Sugar */
895
- { let FuncType (ins, out) = $6 in FuncType ($4 :: ins, out) }
896
-
897
- event_result_types :
898
- | /* empty */ { FuncType ([], []) }
899
- | LPAR RESULT value_type_list RPAR event_result_types
900
- { let FuncType (ins, out) = $5 in
901
- FuncType (ins, $3 @ out) }
902
-
903
890
global :
904
891
| LPAR GLOBAL bind_var_opt global_fields RPAR
905
892
{ let at = at () in
0 commit comments