include path changes

This commit is contained in:
VaclavT 2021-02-26 09:49:01 +01:00
parent 25e5f85167
commit f7992b1eab
2 changed files with 9 additions and 6 deletions

11
ml.cpp
View File

@ -4,9 +4,9 @@
#include "ml_date.h"
#include "ml_string.h"
#include "csvparser.h"
#include "sslclient.h"
#include "json11.h"
#include "clib/csvparser.h"
#include "clib/sslclient.h"
#include "clib/json11.h"
#include <cmath>
@ -1519,6 +1519,8 @@ namespace builtin {
return MlValue::string(args[0].debug());
}
// >>> (map (lambda (x) (+ x 10)) '(1 2 3 4 5 6))
// => (11 12 13 14 15 16)
MlValue map_list(std::vector<MlValue> args, MlEnvironment &env) {
eval_args(args, env);
@ -1751,6 +1753,8 @@ int main(int argc, const char **argv) {
srand(time(NULL));
try {
load_std_lib(env);
// for xcode profiling
// run(read_file_contents("/Users/vaclavt/Development/mlisp/tests/test.lsp"), env);
if (argc == 1 || (argc == 2 && std::string(argv[1]) == "-i"))
repl(env);
@ -1767,4 +1771,3 @@ int main(int argc, const char **argv) {
return 0;
}

View File

@ -1,6 +1,6 @@
#pragma once
#include "../ml.h"
#include "ml.h"
#include <string>
#include <vector>
@ -21,4 +21,4 @@ int mk_path_dir(const std::string &path);
int rm_path_dir(const std::string &path);
MlValue exec_system_cmd(const std::string &path);
MlValue exec_system_cmd(const std::string &path);