let rec list_of_ident x acc = match x with | Ast.IdAcc (_, x, y) | Ast.IdApp (_, x, y) -> list_of_ident x (list_of_ident y acc) | x -> x :: acc