let rec list_of_str_item x acc = match x with | Ast.StNil _ -> acc | Ast.StSem (_, x, y) -> list_of_str_item x (list_of_str_item y acc) | x -> x :: acc