let rec list_of_patt x acc = match x with | Ast.PaNil _ -> acc | Ast.PaCom (_, x, y) | Ast.PaSem (_, x, y) -> list_of_patt x (list_of_patt y acc) | x -> x :: acc