From e0ec8843942d023d8de01a3bafb060aed746870c Mon Sep 17 00:00:00 2001 From: VaclavT Date: Sun, 7 Mar 2021 19:12:30 +0100 Subject: [PATCH] std lib load code reformat --- ml.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ml.cpp b/ml.cpp index 72f22a1..c3f6a0b 100644 --- a/ml.cpp +++ b/ml.cpp @@ -1633,16 +1633,17 @@ void repl(MlEnvironment &env) { } void load_std_lib(MlEnvironment &env) { - std::string loader = R"( (define ___lib_path '("/usr/local/var/mlisp")) - (for d ___lib_path - (if (is-dir? d) - (for f (ls-dir d) - (if (regex-search? f "^.*\.l(i)?sp$") - (include (+ d "/" f)) - '()) - ) - '())) - )"; + std::string loader = + R"( (define ___lib_path '("/usr/local/var/mlisp")) + (for d ___lib_path + (if (is-dir? d) + (for f (ls-dir d) + (if (regex-search? f "^.*\.l(i)?sp$") + (include (+ d "/" f)) + '()) + ) + '())) + )"; run(loader, env); }