let rec list_of_module_expr x acc = match x with | Ast.MeApp (_, x, y) -> list_of_module_expr x (list_of_module_expr y acc) | x -> x :: acc