some comments and Readme changes

This commit is contained in:
VaclavT 2021-03-28 13:46:12 +02:00
parent 89dd5c6f07
commit c75a04a4f7
3 changed files with 6 additions and 18 deletions

View File

@ -4,27 +4,23 @@
- error: the expression `("/usr/local/var/mlisp")` with message "cannot cast" - should add to what is casting
- better error reporting..for example ls_dir on non existing dir should prind `pwd` dir
### TODO
- add total tuntime into -p
- add debug support, at least call stack
- documentation
- add url of source/inspiration to clib/*.cpp
- add stdtest - to test every functionality
- add -l option (no linenoise)
- add -sb option to remove sheebang line
- add instrumentation (time, nr of evals, num of atoms, debug info, debug environment etc)
- add -p (profile/performance option)
- multiline editting (kilo editor)
- multiline editing (kilo editor)
- execute system command should capture stderr
- add built in for and, or
- add some mem stats to benchmark
- support for (), nil, t, in lsp code replace 0 by nil in logicals
- file functions
- name it here
- string functions
- compare - needed for sorting
- uppper/lower case
- trim
- replace
- regexp functions
- date support
- decode-universal-time

View File

@ -44,5 +44,6 @@
;; (define fdx_list (parse-csv (read-file "tests/csv_data.csv")))
;; (print fdx_list)
(print (and (print "xx") (= 1 0) (print "yy")))
(sleep 1.5)

View File

@ -42,19 +42,10 @@
(second (system-cmd (+ "echo ${" var "} | tr -d \"\n\""))))
; return second element of list
(defun second (l) (index l 1))
; return third element of list
(defun third (l) (index l 2))
; return fourth element of list
(defun fourth (l) (index l 3))
; return fifth element of list
(defun fifth (l) (index l 4))
; return nth element of list, indexing from 0
(defun nth (i l) (index l i))
; return 1 when list contains item otherwise 0