small fixes

This commit is contained in:
2021-03-10 23:10:21 +01:00
parent 3f46ae9c94
commit 11ad7fc3bc
5 changed files with 31 additions and 35 deletions

View File

@@ -1,11 +1,10 @@
### BUGS
- (read-file "nonexisting/file.csv") shows only "could not open file"
### TODO
- test whether AIG,,,10 csv row is parsed
- support for (), nil, t, in lsp code replace 0 by nil in logicals
- some performance functionality (at least counting how many times symbol was evaluated)
- download 10 years of data from api.nasdaq.com into test dir
- documentation
- add url of source/inspiration to clib/*.cpp
- add stdtest - to test every functionality
@@ -27,6 +26,8 @@
- string functions
- compare - needed for sorting
- uppper/lower case
- trim
- replace
- regexp functions
- date support
- decode-universal-time
@@ -36,22 +37,23 @@
- add hash datatype
- conversion functions like parse-integer
- in test.lisp some explaining prints
- format (printf)
- format (sprintf)
- setq
- mapcar (funcall, apply)
#### Performance
- push_back - repeatedly without reserving size
- mini_sprintf - unnecesary copying between vector and list
#### Install
```
cp build/ml /usr/local/bin/ml
cp stdlib/stdlib.lsp /usr/local/var/mlisp/stdlib.lsp
cp stdlib/*.lsp /usr/local/var/mlisp/
```
#### Compile
```
gcc -o ml -I/usr/local/opt/openssl/include -Iclib -L/usr/local/lib -L/usr/local/opt/openssl/lib -lm -lstdc++ -lcrypto -lssl -Wl,-stack_size -Wl,0x1000000 --std=c++17 ml.cpp ml_io.cpp ml_date.cpp ml_string.cpp clib/json11.cpp clib/csvparser.cpp clib/sslclient.cpp
gcc -o ml -I/usr/local/opt/openssl/include -Iclib -L/usr/local/lib -L/usr/local/opt/openssl/lib -lm -lstdc++ -lcrypto -lssl -Wl,-stack_size -Wl,0x1000000 --std=c++17 ml.cpp ml_io.cpp ml_date.cpp ml_string.cpp clib/json11.cpp clib/csvparser.cpp clib/sslclient.cpp clib/printf.cpp
```
or
cmake