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/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); 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)