From 88fee2a2a269d9642aea94255dea3699def4896e Mon Sep 17 00:00:00 2001 From: VaclavT Date: Thu, 27 Jan 2022 00:00:18 +0100 Subject: [PATCH 1/2] typo fix --- ml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml.cpp b/ml.cpp index 3fa8a52..bae7d28 100644 --- a/ml.cpp +++ b/ml.cpp @@ -2225,7 +2225,7 @@ std::map builtin_funcs // Get the value associated with this name in this scope MlValue MlEnvironment::get(const std::string &name) const { // PERF, here can be a few of for fast access - if (name == "defe") return MlValue("def", builtin::define); + if (name == "def") return MlValue("def", builtin::define); if (name == "if") return MlValue("if", builtin::if_then_else); if (name == "lambda") return MlValue("lambda", builtin::lambda); From 198c4b2c4d5ebf34a9771559e8ef5be69eab7b7a Mon Sep 17 00:00:00 2001 From: VaclavT Date: Thu, 27 Jan 2022 00:01:45 +0100 Subject: [PATCH 2/2] nothing important --- .gitignore | 1 + tmp/html_scrap.lsp | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tmp/html_scrap.lsp diff --git a/.gitignore b/.gitignore index ab21d4a..f6b9e46 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ ml .DS_Store CMakeFiles Testing +.cache diff --git a/tmp/html_scrap.lsp b/tmp/html_scrap.lsp new file mode 100644 index 0000000..9b631ef --- /dev/null +++ b/tmp/html_scrap.lsp @@ -0,0 +1,15 @@ + +;read file +(define web (read-file "/tmp/finviz_quote_syf.html")) +(print "file read") + +; remove head section +(define pos (string-find web "((.|\r?\n)*?)" "")) + +; extract tables + +(print web3)