(**************************************************************************) (* *) (* SMTCoq *) (* Copyright (C) 2011 - 2022 *) (* *) (* See file "AUTHORS" for the list of authors *) (* *) (* This file is distributed under the terms of the CeCILL-C licence *) (* *) (**************************************************************************) type t = Atom of string | List of t list let rec print fmt = function | Atom s -> Format.pp_print_string fmt s | List l -> Format.fprintf fmt "(@["; List.iter (Format.fprintf fmt "%a " print) l; Format.fprintf fmt "@])"