let rec list_of_sig_item x acc = match x with | Ast.SgNil _ -> acc | Ast.SgSem (_, x, y) -> list_of_sig_item x (list_of_sig_item y acc) | x -> x :: acc