12345678910111213141516171819202122232425(*****************************************************************************)(* *)(* Copyright (C) 2026 Yves Ndiaye *)(* *)(* This Source Code Form is subject to the terms of the Mozilla Public *)(* License, v. 2.0. If a copy of the MPL was not distributed with this *)(* file, You can obtain one at https://mozilla.org/MPL/2.0/. *)(* *)(*****************************************************************************)letarbitrary_prefix="%:"letsexp_escape_char=[' ';'\t';'(';')';'"']letto_sexps=s|>String.to_seq|>Seq.concat_map(func->matchList.memcsexp_escape_charwith|true->List.to_seq['\\';c]|false->Seq.returnc)|>String.of_seqletquote=Printf.sprintf"\"%s\""